Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 867 Bytes

README.md

File metadata and controls

49 lines (28 loc) · 867 Bytes

terraform-aws-ecr

Terraform module to create AWS ECR with customized policy

Requirement variables:

  • ecr_repo : Name of repository to create
  • mantainer: mantainer operator
  • project: Name or code project

Default parameters (not required to set):

  • scan_on_push: Scan image on push before ecr upload (default true)
  • expire_days: Expire images older than X days (default 3)
  • keep_days: Keep last X images (default 10)

Usage

module "ecr" {
  source  = "mrexojo/ecr/aws"
  version = "0.0.1"
  # insert the 3 required variables here
}

or

module "terraform-module-ecr" {
  source    = "git::ssh://[email protected]/mrexojo/terraform-aws-ecr?ref=v0.0.1"
  ecr_repo  = var.env_ecr_repo
  mantainer = var.env_mantainer
  project   = var.env_project
}
  • note: This module assume that you has configured aws and region properly