ipa-prepare

Deploys AWS prerequisite stacks via make after validating .env and credentials.

1|1|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/aws-samples/sample-innovation-patterns --skill ipa-prepare
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ipa-prepare
Source: https://github.com/aws-samples/sample-innovation-patterns/tree/main/.claude/skills/ipa-prepare
Command: npx skills add https://github.com/aws-samples/sample-innovation-patterns --skill ipa-prepare

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the manual, error-prone setup work needed to create prerequisite AWS infrastructure before you can build and deploy an innovation-pattern application.

Core Features & Use Cases

  • Validates project readiness: checks that .env exists and contains required variables, confirms scripts/prepare.mk has a prepare target, and verifies AWS credentials.
  • Plans then executes infrastructure provisioning: shows a dry-run plan via make -n -f scripts/prepare.mk prepare, asks for confirmation, then runs the real make -f scripts/prepare.mk prepare.
  • Verifies completion and writes OIDC config: polls CloudFormation stack status until each prerequisite stack reaches CREATE_COMPLETE/UPDATE_COMPLETE, and writes OIDC-related environment variables to .env when Cognito is deployed.

Quick Start

Run /ipa-prepare after /ipa-init and /ipa-compose to deploy ECR, Cognito, and other prerequisite stacks.

Frequently Asked Questions about ipa-prepare

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

FAQPage Schema
How do I deploy prerequisite AWS infrastructure for an application?

To deploy prerequisite AWS infrastructure, you can use an automated approach that validates your `.env` file and AWS credentials, generates a dry-run plan, and executes provisioning for ECR, Cognito, and related resources.

What is the best way to automate CloudFormation stack creation for ECR and Cognito?

Automating CloudFormation stack creation for ECR and Cognito involves running a Makefile target that plans the deployment, executes it, and polls each stack until it reaches a complete status, reducing manual setup errors.

How do I validate AWS credentials and `.env` before running a deployment?

Validating AWS credentials and `.env` before deployment requires checking that required environment variables exist and confirming your AWS credentials are authorized to provision the necessary cloud resources.

Does deploying Cognito automatically update OIDC configuration in `.env`?

Yes, deploying Cognito automatically updates OIDC configuration by writing the related environment variables directly to your `.env` file after the prerequisite CloudFormation stack reaches a complete status.

Can I re-run infrastructure provisioning when new prerequisite stacks are introduced?

Yes, you can re-run infrastructure provisioning when new prerequisite stacks are introduced, making it suitable for both initial project bootstrapping and ongoing updates to ECR and Cognito resources.

Why does my Makefile deployment plan fail before execution?

A Makefile deployment plan may fail before execution if the `prepare` target is missing from `scripts/prepare.mk`, required `.env` variables are absent, or AWS credentials are invalid.