Panfactum LogoPanfactum
Infrastructure ModulesDirect ModulesAWSaws_ecr_public_repos
aws_ecr_public_repos
Stable
Direct
Source Code Link

Public AWS ECR Repositories

Differences from Private ECR Repositories

  • All public ECR repositories are created in us-east-1.

  • Once published, image tags are immutable.

  • There is no automatic lifecycle management for images published to public repositories.

Custom Registry Alias

Once you deploy public ECR repos, you should request a custom alias. This may take a few days to be approved.

Deployment Notes

  • This module should be deployed in the global region.

Providers

The following providers are needed by this module:

Required Inputs

The following input variables are required:

ecr_repositories

Description: Mapping of names to the repositories to create.

Type:

map(object({
    about_text                  = optional(string, null)       # A detailed description of the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The text must be in markdown format.
    architectures               = optional(list(string), null) #  On the Amazon ECR Public Gallery, the following supported architectures will appear as badges on the repository and are used as search filters: ARM, ARM 64, x86, x86-64
    description                 = optional(string, null)       # A short description of the contents of the repository. This text appears in both the image details and also when searching for repositories on the Amazon ECR Public Gallery.
    logo_image_blob             = optional(string, null)       # The base64-encoded repository logo payload. (Only visible for verified accounts) Note that drift detection is disabled for this attribute.
    operating_systems           = optional(list(string), null) # On the Amazon ECR Public Gallery, the following supported operating systems will appear as badges on the repository and are used as search filters: Linux, Windows
    usage_text                  = optional(string, null)       # Detailed information on how to use the contents of the repository. It is publicly visible in the Amazon ECR Public Gallery. The usage text provides context, support information, and additional usage details for users of the repository. The text must be in markdown format.
    additional_push_account_ids = optional(list(string), [])   # The ids of the additional AWS accounts that have push access to the repository
    additional_pull_account_ids = optional(list(string), [])   # The ids of the additional AWS accounts that have pull access to the repository
  }))

Optional Inputs

The following input variables are optional (have default values):

Outputs

The following outputs are exported:

aws_account_id

Description: n/a

aws_region

Description: n/a

ecr_repositories

Description: n/a

registry

Description: n/a

Usage

No notes