Skip to content

Commit b5d1255

Browse files
authored
Filter for x86_64 architecture
Make sure we're getting AMI for the correct architecture. Otherwise you can get AMI for arm
1 parent 240b2b2 commit b5d1255

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

data.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@ data "aws_ami" "amazon-linux-2" {
1010
name = "name"
1111
values = ["amzn2-ami-hvm*"]
1212
}
13+
14+
filter {
15+
name = "architecture"
16+
values = ["x86_64"]
17+
}
1318
}

0 commit comments

Comments
 (0)