All Modules
AWSContainers
ECR
Elastic Container Registry with lifecycle policies and vulnerability scanning
Usage
module "ecr" {
source = "github.com/fencepencil/fencepencil-aws-modules//ecr"
repository_names = ["<value>"]
tags = var.tags
}Inputs (6)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
repository_names | list(string) | List of ECR repository names | — | yes |
image_tag_mutability | string | Tag mutability (MUTABLE or IMMUTABLE) | IMMUTABLE | no |
scan_on_push | bool | Enable vulnerability scanning on push | true | no |
enable_lifecycle_policy | bool | Enable lifecycle policy to limit images | true | no |
max_image_count | number | Maximum images to retain per repo | 30 | no |
tags | map(string) | Tags to apply to all resources | {} | no |
Outputs (2)
| Name | Description |
|---|---|
repository_urls | Map of repository names to URLs |
repository_arns | Map of repository names to ARNs |