AgentStack
SKILL verified MIT-0 Self-run

Amplify Diagnostics

skill-aws-samples-sample-ai-agent-skills-amplify-troubleshooting · by aws-samples

>

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-aws-samples-sample-ai-agent-skills-amplify-troubleshooting

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Amplify Diagnostics? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

AWS Amplify Hosting Diagnostics

When to use

Any AWS Amplify Hosting investigation where the console alone is insufficient — build failures, deployment issues, custom domain configuration, SSR problems, backend integration, access control, or CDN performance troubleshooting.

Investigation workflow

Step 1 — Collect and triage

aws amplify list-apps --query 'apps[*].{Id:appId,Name:name,Platform:platform,Repository:repository}'
version: "1.0.0"
last_updated: "2025-04-12"
aws amplify get-app --app-id 
aws amplify list-branches --app-id  --query 'branches[*].{Name:branchName,Stage:stage,Status:activeJobSummary.status}'
version: "1.0.0"
last_updated: "2025-04-12"
aws amplify list-jobs --app-id  --branch-name  --max-results 10

Step 2 — Domain deep dive

aws amplify get-job --app-id  --branch-name  --job-id 
aws amplify get-branch --app-id  --branch-name 
aws amplify list-domain-associations --app-id 
aws amplify get-domain-association --app-id  --domain-name 

Step 3 — Detailed investigation

aws amplify list-backend-environments --app-id 
aws amplify get-backend-environment --app-id  --environment-name 
aws cloudfront list-distributions --query 'DistributionList.Items[?Comment==``]'
aws logs describe-log-groups --log-group-name-prefix /aws/amplify/

Read references/amplify-guardrails.md before concluding on any Amplify issue.

Tool quick reference

| Tool / API | When to use | |------------|-------------| | get-app | Check app configuration, platform, repository | | list-branches | Check branch configuration and deployment status | | get-job / list-jobs | Check build and deployment job details | | get-branch | Check branch-specific settings and environment variables | | list-domain-associations | Check custom domain configuration | | get-domain-association | Check domain DNS and SSL status | | list-backend-environments | Check backend environment configuration | | CloudWatch Logs | Check build logs and SSR runtime logs | | CloudFront | Check CDN distribution settings |

Gotchas: AWS Amplify Hosting

  • Build settings can come from amplify.yml OR console. The amplify.yml file in the repository root takes precedence over console build settings. If both exist, the file wins. This is a common source of confusion when console changes don't take effect.
  • Environment variables have scope. App-level variables apply to all branches. Branch-level variables override app-level. Some variables are reserved (e.g., LIVEUPDATES). Secrets are not exposed in build logs.
  • Custom domains require DNS verification. Amplify creates CNAME records for verification. DNS propagation can take up to 48 hours. SSL certificates are automatically provisioned via ACM. Subdomains and root domains have different configuration requirements.
  • SSR requires Amplify Hosting compute. SSR apps use Lambda@Edge or CloudFront Functions. Compute settings affect cold start and memory. Not all frameworks are supported for SSR. Build output must include server-side artifacts.
  • PR previews create temporary deployments. They use a subdomain pattern. They are automatically deleted when the PR is closed. They share the app's environment variables unless overridden. They can increase build minutes usage.
  • Rewrite and redirect rules have order precedence. Rules are evaluated top to bottom. The first matching rule wins. Trailing slashes matter. Regex patterns are supported but must be valid.
  • Branch auto-detection connects to the repository. It requires repository access permissions. New branches are automatically deployed. Pattern matching controls which branches are deployed. Disconnecting the repository stops auto-detection.
  • Basic auth protects the entire branch. It cannot be applied to specific paths. Credentials are branch-specific. It uses HTTP Basic Authentication. It is not a substitute for application-level auth.
  • Amplify uses CloudFront for CDN. Cache invalidation happens automatically on deploy. Custom cache headers can be set in custom headers configuration. CloudFront distribution settings are managed by Amplify.

Anti-hallucination rules

  1. Always cite specific app IDs, job IDs, or API responses as evidence.
  2. amplify.yml takes precedence over console build settings. Never assume console settings apply when the file exists.
  3. Custom domains require DNS verification. Never assume instant domain activation.
  4. SSR requires compute configuration. Never assume static hosting supports SSR.
  5. Environment variables have scope precedence. Never assume app-level vars override branch-level.
  6. Spend no more than 2 minutes on any single hypothesis. Pivot if inconclusive.

22 runbooks

| Category | IDs | Covers | |----------|-----|--------| | A — Build | A1-A3 | Build failures, build settings, environment variables | | B — Deploy | B1-B3 | Deployment failures, branch config, PR previews | | C — Domain | C1-C2 | Custom domain, SSL certificate | | D — Backend | D1-D2 | Backend environment, API integration | | E — SSR | E1-E2 | Server-side rendering, compute config | | F — Auth | F1-F2 | Access control, basic auth | | G — Performance | G1-G2 | CDN caching, rewrite rules | | Z — Catch-All | Z1 | General troubleshooting |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.