Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version used in template and by CLI to latest release #98

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading