Skip to content

Commit 51adbe5

Browse files
author
Ryan Jiang
authored
Update main.tf
1 parent 5e58b9a commit 51adbe5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

modules/aws_ecs_ec2/main.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@ resource "aws_ecs_cluster" "this" {
2222

2323
data "aws_ami" "this" {
2424
most_recent = true # get the latest version
25-
26-
filter {
27-
name = "name"
28-
values = [
29-
"amzn2-ami-ecs-*" # ECS optimized image
30-
]
31-
}
25+
name_regex = "^amzn2-ami-ecs-hvm-\\d\\.\\d\\.\\d{8}-x86_64-ebs$"
3226

3327
filter {
3428
name = "virtualization-type"

0 commit comments

Comments
 (0)