Skip to content

Commit

Permalink
docs: Remove lifecycle policy references from public ECR examples (#43)
Browse files Browse the repository at this point in the history
update docs and example
  • Loading branch information
zahorniak authored May 28, 2024
1 parent 9daab07 commit df965a8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,6 @@ module "public_ecr" {
repository_type = "public"
repository_read_write_access_arns = ["arn:aws:iam::012345678901:role/terraform"]
repository_lifecycle_policy = jsonencode({
rules = [
{
rulePriority = 1,
description = "Keep last 30 images",
selection = {
tagStatus = "tagged",
tagPrefixList = ["v"],
countType = "imageCountMoreThan",
countNumber = 30
},
action = {
type = "expire"
}
}
]
})
public_repository_catalog_data = {
description = "Docker container for some things"
Expand Down
17 changes: 0 additions & 17 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,6 @@ module "public_ecr" {
repository_type = "public"

repository_read_write_access_arns = [data.aws_caller_identity.current.arn]
repository_lifecycle_policy = jsonencode({
rules = [
{
rulePriority = 1,
description = "Keep last 30 images",
selection = {
tagStatus = "tagged",
tagPrefixList = ["v"],
countType = "imageCountMoreThan",
countNumber = 30
},
action = {
type = "expire"
}
}
]
})

public_repository_catalog_data = {
description = "Docker container for some things"
Expand Down

0 comments on commit df965a8

Please sign in to comment.