We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60a3e9 commit c3d6fd7Copy full SHA for c3d6fd7
main.tf
@@ -12,7 +12,7 @@ locals {
12
))}"
13
14
patterns = "${join(",", list(
15
- "amzn-ami-hvm-*-x86_64-gp2",
+ "amzn-ami-hvm-${var.ami_version_amazonlinux}-x86_64-gp2",
16
"amzn-ami-${var.ami_version_ecs}-amazon-ecs-optimized",
17
"ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"
18
variables.tf
@@ -10,6 +10,11 @@ variable "ami_owners" {
10
}
11
+variable "ami_version_amazonlinux" {
+ description = "Amazon Linux version to get"
+ default = "*"
+}
+
variable "ami_version_ecs" {
19
description = "Amazon ECS Optimized version to get"
20
default = "*"
0 commit comments