The aws-ecr is a generic Terraform module within the pippi.io family, maintained by Tech Chapter. The pippi.io modules are build to support common use cases often seen at Tech Chapters clients. They are created with best practices in mind and battle tested at scale. All modules are free and open-source under the Mozilla Public License Version 2.0.
The aws-ecr module is made to deploying AWS ECR resources on amazon.
module "ecr" {
source = "github.com/pippiio/aws-ecr.git"
global_pull_accounts = ["123456789"]
global_push_accounts = ["987654321"]
private_repositories = {
"app" = {
pull_accounts = ["657453672"]
},
"app2" = {
pull_accounts = ["657453672"]
}
}
public_repositories = {
"app3" = {
push_accounts = ["657453672"]
about = "App3 about"
architectures = ["ARM"]
description = "App3 description"
logo_image_blob = filebase64("img.png")
operating_systems = ["Linux"]
usage_text = "pull"
}
}
}
| Name | Description | Type | Default | Required |
|---|
| default_tags | A map of default tags, that will be applied to all resources applicable. | map(string) | {} | no |
| global_pull_accounts | List of accounts that can pull from all the private repositories | list(string) | [] | no |
| global_push_accounts | List of accounts that can push to all the repositories | list(string) | [] | no |
| name_prefix | A prefix that will be used on all named resources. | string | "pippi-" | no |
| private_repositories | List of private repositories that should be created | map(object({ image_tag_mutability = optional(string) pull_accounts = optional(list(string), []) pull_role_arns = optional(list(string), []) push_accounts = optional(list(string), []) push_role_arns = optional(list(string), []) create_iam_user = optional(bool, false) })) | {} | no |
| public_repositories | List of public repositories that should be created | map(object({ about = optional(string) architectures = optional(list(string)) description = optional(string) logo_image_blob = optional(string) operating_systems = optional(list(string)) usage_text = optional(string) push_accounts = optional(list(string), []) push_role_arns = optional(list(string), []) create_iam_user = optional(bool, false) })) | {} | no |