Meet OPSd. The unique and effortless way of managing cloud infrastructure.
This module provides an Elastic Container Registry Repository.
module "example" {
source = "github.com/opsd-io/terraform-module-aws-ecr-repository"
name = "foobar-service"
image_tag_mutable = true
scan_on_push = true
}
IMPORTANT: Make sure not to pin to master because there may be breaking changes between releases.
Name | Version |
---|---|
terraform | >= 1.5.5 |
aws | ~> 5.0 |
Name | Version |
---|---|
aws | ~> 5.0 |
No modules.
Name | Type |
---|---|
aws_ecr_lifecycle_policy.main | resource |
aws_ecr_repository.main | resource |
aws_ecr_repository_policy.main | resource |
aws_iam_policy_document.repository_policy | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
common_tags | A map of tags to assign to every resource in this module. | map(string) |
{} |
no |
encryption_kms_key | The ARN of the KMS key to use for the repository encryption. | string |
null |
no |
image_tag_mutable | The tag mutability setting for the repository. | bool |
true |
no |
lifecycle_rules | List of lifecycle policy rules. | list(object({ |
"untagged" | "any" tag_patterns = optional(list(string)) tag_prefixes = optional(list(string)) count_type = string # "imageCountMoreThan" |
name | Name of the repository. | string |
n/a | yes |
policy_documents | List of IAM policy documents that are merged together for the repository policy. | list(string) |
[] |
no |
scan_on_push | Indicates whether images are scanned after being pushed to the repository. | bool |
true |
no |
Name | Description |
---|---|
arn | Full ARN of the repository. |
registry_id | The registry ID where the repository was created. |
repository_url | The URL of the repository. |
Do you want to see how the module works? See all the usage examples.
The list of related modules (if present).
If you are interested in contributing to the project, see see our guide.
If you have a problem with the module or want to propose a new feature, you can report it via the project's (Github) issue tracker.
If you want to discuss something in person, you can join our community on Slack.