Skip to content

Commit

Permalink
Merge pull request #98 from ministryofjustice/bump-example-version
Browse files Browse the repository at this point in the history
Bump version used in template and by CLI to latest release
  • Loading branch information
jakemulley authored Oct 31, 2023
2 parents cdea41e + ea14f01 commit 8c35a8c
Showing 1 changed file with 5 additions and 66 deletions.
71 changes: 5 additions & 66 deletions examples/ecr.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,77 +5,16 @@
*
*/
module "ecr" {
source = "github.com/ministryofjustice/cloud-platform-terraform-ecr-credentials?ref=6.0.0"
source = "github.com/ministryofjustice/cloud-platform-terraform-ecr-credentials?ref=6.1.0"

# REQUIRED: Repository configuration
# Repository configuration
repo_name = var.namespace

# REQUIRED: OIDC providers to configure, either "github", "circleci", or both
oidc_providers = ["github"]

# REQUIRED: GitHub repositories that push to this container repository
# OpenID Connect configuration
oidc_providers = ["github"]
github_repositories = ["example-repository"]

# OPTIONAL: GitHub environments, to create variables as actions variables in your environments
# github_environments = ["production"]

# Lifecycle policies
# Uncomment the below to automatically tidy up old Docker images
/*
lifecycle_policy = <<EOF
{
"rules": [
{
"rulePriority": 1,
"description": "Expire untagged images older than 14 days",
"selection": {
"tagStatus": "untagged",
"countType": "sinceImagePushed",
"countUnit": "days",
"countNumber": 14
},
"action": {
"type": "expire"
}
},
{
"rulePriority": 2,
"description": "Keep last 30 dev and staging images",
"selection": {
"tagStatus": "tagged",
"tagPrefixList": ["dev", "staging"],
"countType": "imageCountMoreThan",
"countNumber": 30
},
"action": {
"type": "expire"
}
},
{
"rulePriority": 3,
"description": "Keep the newest 100 images and mark the rest for expiration",
"selection": {
"tagStatus": "any",
"countType": "imageCountMoreThan",
"countNumber": 100
},
"action": {
"type": "expire"
}
}
]
}
EOF
*/

# OPTIONAL: Add deletion_protection = false parameter if you are planning on either deleting your environment namespace or ECR resource.
# IMPORTANT: It is the PR owners responsibility to ensure that no other environments are sharing this ECR registry.
# This flag will allow a non-empty ECR to be deleted.
# Defaults to true

# deletion_protection = false

# Tags (commented out until release)
# Tags
business_unit = var.business_unit
application = var.application
is_production = var.is_production
Expand Down

0 comments on commit 8c35a8c

Please sign in to comment.