Skip to content

Commit 30bcfdf

Browse files
committed
fix(tf): ecr-life-policy
1 parent 844f825 commit 30bcfdf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The service is behind a load balancer which means it is exposed. A HTTP healthch
5151
| cpu | CPU reservation for the task | `number` | `256` | no |
5252
| deregistration\_delay | n/a | `number` | `30` | no |
5353
| ecr\_tag\_prefix\_list | n/a | `list` | `["!latest"]` | no |
54-
| ecr\_ecr_number\_of\_newest_tags | n/a | `number` | `90` | no |
54+
| ecr_number\_of\_newest_tags | n/a | `number` | `90` | no |
5555
| ecr\_untagged\_lifetime | n/a | `number` | `1` | no |
5656
| environment | n/a | `list` | `[]` | no |
5757
| healthcheck\_grace | n/a | `number` | `0` | no |

ecr.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resource "aws_ecr_repository" "application" {
1111

1212
resource "aws_ecr_lifecycle_policy" "application" {
1313
count = var.image == "" ? 1 : 0
14-
repository = aws_ecr_repository.application.*.name
14+
repository = aws_ecr_repository.application[0].name
1515

1616
policy = jsonencode({
1717
rules = [
@@ -48,5 +48,5 @@ depends_on = [ aws_ecr_repository.application ]
4848
}
4949

5050
output "ecr_repository" {
51-
value = aws_ecr_repository.application.*.repository_url
51+
value = aws_ecr_repository.application[0].repository_url
5252
}

0 commit comments

Comments
 (0)