Skip to content

Commit df965a8

Browse files
authored
docs: Remove lifecycle policy references from public ECR examples (#43)
update docs and example
1 parent 9daab07 commit df965a8

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,6 @@ module "public_ecr" {
5050
repository_type = "public"
5151
5252
repository_read_write_access_arns = ["arn:aws:iam::012345678901:role/terraform"]
53-
repository_lifecycle_policy = jsonencode({
54-
rules = [
55-
{
56-
rulePriority = 1,
57-
description = "Keep last 30 images",
58-
selection = {
59-
tagStatus = "tagged",
60-
tagPrefixList = ["v"],
61-
countType = "imageCountMoreThan",
62-
countNumber = 30
63-
},
64-
action = {
65-
type = "expire"
66-
}
67-
}
68-
]
69-
})
7053
7154
public_repository_catalog_data = {
7255
description = "Docker container for some things"

examples/complete/main.tf

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,6 @@ module "public_ecr" {
6464
repository_type = "public"
6565

6666
repository_read_write_access_arns = [data.aws_caller_identity.current.arn]
67-
repository_lifecycle_policy = jsonencode({
68-
rules = [
69-
{
70-
rulePriority = 1,
71-
description = "Keep last 30 images",
72-
selection = {
73-
tagStatus = "tagged",
74-
tagPrefixList = ["v"],
75-
countType = "imageCountMoreThan",
76-
countNumber = 30
77-
},
78-
action = {
79-
type = "expire"
80-
}
81-
}
82-
]
83-
})
8467

8568
public_repository_catalog_data = {
8669
description = "Docker container for some things"

0 commit comments

Comments
 (0)