Skip to content

benniemosher-dev/terraform-aws-ecr

Repository files navigation

terraform-aws-ecr

CI Terraform

πŸ“¦ A TF module for AWS ECR. πŸ“¦

πŸ“œ Usage:

  • To install dependencies needed run:
    brew bundle install
  • To initialize Terraform in this folder:
    task infra:init
  • To update modules and providers in this folder:
    task init -- -upgrade
  • To validate the module in this folder:
    task infra:validate
  • To plan the infrastructure in this folder:
    task infra:plan
  • To plan specific resources of infrastructure in this folder:
    task infra:plan -- -target='cloudflare_record.this'

πŸ†’ Extras:

  • To find all the automation available in this folder:
    task --list-all
  • To estimate the cost of the infrastructure in this folder:
    task infra:cost
  • To update the documentation in this folder:
    task infra:docs
  • To lint the Terraform in this folder:
    task infra:lint
  • To validate security in this folder:
    task infra:sec

πŸ“‹ Documentation

Requirements

Name Version
terraform ~> 1.3
aws ~> 4.40

Providers

Name Version
aws 4.46.0

Modules

No modules.

Resources

Name Type
aws_ecr_repository.this resource

Inputs

Name Description Type Default Required
config The config to create ECR with.
object({
kms-key-arn = optional(string, null)
repository-name = string
scan-images-on-push = optional(bool, true)
})
n/a yes

Outputs

Name Description
url The URL of the repository (in the form aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName).