amplify-env-vars

Manage AWS Amplify environment variables and deployments via Buildpad MCP tools.

Updated May 27, 2026
One-click install
npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill amplify-env-vars-rkaaaa404
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: amplify-env-vars
Source: https://github.com/Rkaaaa404/cyberhack-SYDT/tree/main/.agents/skills/amplify-env-vars
Command: npx skills add https://github.com/Rkaaaa404/cyberhack-SYDT --skill amplify-env-vars-rkaaaa404

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Configuring AWS Amplify environment variables and debugging failed builds normally requires manual work in the Amplify Console. This Skill lets an AI agent set, update, or remove env vars, trigger redeploys, poll build status, and fetch build, access, and compute logs directly through Buildpad platform MCP tools. ## Core Features & Use Cases - Env Var Management: Read existing key names, then atomically set, update, or remove variables with amplify_set_env_vars, which merges changes into the full env var map. - Deployment Lifecycle: Trigger redeploys on the main branch, poll job status every 30-60 seconds, and retrieve per-phase build step details with pre-signed log URLs. - Build & Runtime Diagnostics: Fetch CI build logs (pnpm/next output), HTTP access logs filtered by status code, and CloudWatch Lambda compute logs with case-sensitive filter patterns. - Next.js Runtime Exposure: Write Amplify env vars to .env.production during the build phase via amplify.yml echo commands so API routes can read them at runtime. - Use Case: A Next.js API route fails because EXTERNAL_BUCKET_NAME is missing at runtime. The agent sets the var, updates amplify.yml, redeploys, polls the job, and pulls the CI build log when the build fails. ## Quick Start Ask the agent to list the current Amplify environment variables, add a new variable, redeploy the app, and report the build result.

Frequently Asked Questions about amplify-env-vars

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set AWS Amplify environment variables programmatically?▼

Use the amplify_set_env_vars MCP tool with a vars object for additions or updates and removeKeys for deletions. It reads the current variables, merges your changes, and writes the full map back atomically, but does not trigger a redeploy.

How do I expose Amplify env vars to Next.js API routes at runtime?▼

Amplify env vars are build-time only by default. Add echo commands in amplify.yml to append each variable to .env.production during the build phase, then redeploy so API routes can read them via process.env.

Why does my Amplify build log show Lambda metrics instead of pnpm output?▼

The CI step logUrl expires roughly 10 minutes after a build completes. When expired, amplify_get_build_log returns logSource "cloudwatch" with Lambda execution metrics instead of real pnpm output, so fetch logs immediately after a FAILED status.

Can I see the values of Amplify environment variables?▼

No. The amplify_get_env_vars tool returns only key names and a total count, never values. All MCP calls are project-scoped and audit-logged on the Buildpad platform for security.

What filters work for searching Amplify Lambda compute logs?▼

CloudWatch filter patterns are case-sensitive. Use "Error" for app errors, "Task timed out" for timeouts, "REPORT" for execution summaries, or an exact string your code logs. The filter parameter is required to avoid thousands of noise lines.