/ipa.prepare
Deploy one-time prerequisite infrastructure (ECR repositories, Cognito User Pool) by executing scripts/prepare.mk.
Invocation
/ipa.prepare
Parameters
/ipa.prepare takes no arguments. It reads configuration from .env and executes scripts/prepare.mk.
Prerequisites:
| Requirement | Source |
|---|---|
.env with IPA variables | /ipa.init |
| Security stack deployed | /ipa.security |
scripts/prepare.mk | /ipa.compose |
| AWS credentials valid | AWS CLI configuration |
| GNU Make installed | System dependency |
What It Does
-
Pre-flight validation — Confirms
.envexists, required variables are present,prepare.mkexists, AWS credentials are valid, and Make is installed. -
Display prepare plan — Runs
make -n -f scripts/prepare.mk prepareto show the dry-run plan without executing anything. -
Confirmation — Waits for user confirmation before proceeding. When auto-triggered by
/ipa.deploy, this step is skipped. -
Execute — Runs
make -f scripts/prepare.mk prepareto deploy prerequisite stacks. -
Post-prepare verification — Confirms all prepare stacks reach a
*_COMPLETEstatus via CloudFormation. -
Completion report — Displays stack status and next steps.
Outputs
| Artifact | Description |
|---|---|
| ECR stack | {APP_NAMESPACE}-{APP_ENV}-ecr — Container image repository |
| Cognito stack | {APP_NAMESPACE}-{APP_ENV}-cognito — User Pool with OAuth 2.0 |
Prepare stacks are not removed by /ipa.destroy. To tear them down manually, run:
make -f scripts/prepare.mk teardown-prepare
Examples
Deploy prerequisites before first deployment:
/ipa.prepare
Review the dry-run plan and confirm to deploy ECR and Cognito stacks.
Related Skills
- /ipa.compose — Generates
scripts/prepare.mk - /ipa.deploy — Auto-triggers
/ipa.prepareif prepare stacks are missing - /ipa.destroy — Does not remove prepare stacks