بنقرة واحدة
ipa-stack-ecr
Deploy an ECR repository for container image storage.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Deploy an ECR repository for container image storage.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | ipa-stack-ecr |
| description | Deploy an ECR repository for container image storage. |
Deploy an ECR container image repository. Provides repository URI and ARN outputs for downstream Lambda stacks and security policy scoping.
| Property | Value |
|---|---|
| Stack name | {APP_NAMESPACE}-{APP_ENV}-ecr |
| Template | infra/cfn/ecr/ecr.yml |
| Capabilities | none |
| Lifecycle | prepare (prerequisite stack) |
| Tier | ecr |
| Parameter | Type | Default | Validation | Error Message |
|---|---|---|---|---|
| Namespace | String | — | /^[a-z][a-z0-9-]{0,11}$/ | "Invalid namespace — 1-12 chars, lowercase alphanumeric + hyphens, starts with letter" |
| Environment | String | — | /^[a-z][a-z0-9-]{0,11}$/ | "Must be 1-12 chars, lowercase letters/digits/hyphens, starts with letter" |
All parameters are Configuration type — sourced from .env or defaults. No wirable parameters from other stacks.
| Output | Description | Export Convention | Used By |
|---|---|---|---|
| RepositoryUri | ECR repository URI for container images | {StackName}-RepositoryUri | ipa.stack.lambda-fn (ImageUri), ipa.stack.lambda-fn-stream (ImageUri) |
| RepositoryArn | ECR repository ARN for security policy scoping | {StackName}-RepositoryArn | Security policy scoping |
Required IAM actions: ecr:CreateRepository, DeleteRepository, DescribeRepositories, TagResource — scoped to arn:aws:ecr:{Region}:{AccountId}:repository/*. ecr:GetAuthorizationToken on * (AWS API limitation — this action does not support resource-level permissions)
Security controls: Encryption at rest (AES256), no public access, no automatic deletion on stack removal
Full advisory: See SECURITY.md
| Property | Value |
|---|---|
| Module path | infra/tf/ecr/ |
| State key | {namespace}-{env}/ecr/terraform.tfstate |
| Required version | >= 1.5.0 |
| Providers | hashicorp/aws >= 5.0 |
| Variable | Type | Default | Maps to CFN |
|---|---|---|---|
| namespace | string | — | Namespace |
| environment | string | — | Environment |
| region | string | — | (implicit) |
| state_bucket | string | — | (TF infrastructure) |
| Output | Maps to CFN |
|---|---|
| repository_uri | RepositoryUri |
| repository_arn | RepositoryArn |
Deploy a backend tier stack: Lambda + API Gateway v2 + DynamoDB (feature-flagged).
Compose a deployment from stack skills and generate executable artifacts (Makefiles, security disposition). Use when the user says 'compose', 'generate deployment', or invokes /ipa-compose.
Initialize IPA project configuration
Deploy a CodePipeline CI/CD pipeline with CodeBuild for automated build/test/deploy.
Deploy a Terraform state backend (S3 + DynamoDB) via CloudFormation.
Deploy a CodeCommit repository for source code management.