/ipa.codepipeline
Deploy a CI/CD pipeline that automates the same build, test, and deploy workflow that runs locally via Makefiles. Creates a CodeCommit repository and a CodePipeline with CodeBuild.
Invocation
/ipa.codepipeline
Parameters
/ipa.codepipeline prompts for configuration interactively.
| Parameter | Default | Description |
|---|---|---|
| Repository name | {namespace}-{env}-repo | CodeCommit repository name |
| Branch | main | Source branch that triggers the pipeline |
Prerequisites from .env:
| Variable | Source |
|---|---|
APP_NAMESPACE | /ipa.init |
APP_ENV | /ipa.init |
AWS_ACCOUNT_ID | /ipa.init |
AWS_REGION | /ipa.init |
APP_CODEBUILD_ROLE_ARN | /ipa.security |
Composed Makefiles in scripts/ | /ipa.compose |
What It Does
-
Pre-flight checks — Verifies
.envhas init, security, and compose prerequisites. Detects any existing pipeline. -
Source configuration — Prompts for repository name and branch.
-
Query prepare stacks — Fetches ECR and Cognito stack outputs to inject as CodeBuild environment variables.
-
Confirmation summary — Displays the full configuration table before deployment.
-
Deploy CodeCommit stack — Creates
{namespace}-{env}-codecommitwith the source repository. -
Deploy CodePipeline stack — Creates
{namespace}-{env}-codepipelinewith a four-stage pipeline:- Test — Runs
make -f scripts/test.mk test - Build — Runs
make -f scripts/build.mk build - Deploy — Runs
make -f scripts/deploy.mk deploy - PostDeploy — Runs
make -f scripts/post-deploy.mk post-deploy
- Test — Runs
-
Write
.envpipeline block — Stores pipeline configuration variables. -
Completion report — Displays pipeline URL, clone instructions, and buildspec details.
Update Flow
When an existing pipeline is detected, the skill displays the current configuration and offers to re-query prepare stack outputs and update the pipeline.
Outputs
| Artifact | Description |
|---|---|
| CodeCommit stack | {APP_NAMESPACE}-{APP_ENV}-codecommit |
| CodePipeline stack | {APP_NAMESPACE}-{APP_ENV}-codepipeline |
.env variables | PIPELINE_STACK_NAME, PIPELINE_NAME, CODEBUILD_PROJECT_NAME, CODECOMMIT_STACK_NAME, CODECOMMIT_REPO_NAME, CODECOMMIT_CLONE_URL |
Examples
Set up CI/CD for the first time:
/ipa.codepipeline
Provide a repository name and branch. The skill deploys CodeCommit and CodePipeline stacks, then displays the clone URL and pipeline URL.
Update an existing pipeline:
/ipa.codepipeline
The skill detects the existing pipeline configuration and offers to update it with current prepare stack outputs.
Related Skills
- /ipa.init — Provides base
.envvariables - /ipa.security — Provides the CodeBuild execution role
- /ipa.compose — Generates the Makefiles that the pipeline executes
- /ipa.stack.codecommit — CodeCommit stack reference
- /ipa.stack.codepipeline — CodePipeline stack reference