mirror of
https://github.com/mr-vercetti/tf-aws-demo.git
synced 2026-11-28 22:25:50 +01:00
Add autoscaling policy and create ami_data module
This commit is contained in:
1 parent
9cef061162
commit
92afe542a3
7 files changed
+110
-67
No files matched your search
Executable
+20
@@ -0,0 +1,20 @@
|
||||
data "aws_ami" "amazon_linux" {
|
||||
most_recent = true
|
||||
|
||||
filter {
|
||||
name = "name"
|
||||
values = ["amzn2-ami-*-gp2"]
|
||||
}
|
||||
|
||||
filter {
|
||||
name = "architecture"
|
||||
values = ["x86_64"]
|
||||
}
|
||||
|
||||
filter {
|
||||
name = "virtualization-type"
|
||||
values = ["hvm"]
|
||||
}
|
||||
|
||||
owners = ["amazon"]
|
||||
}
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
output "amazon_linux" {
|
||||
value = data.aws_ami.amazon_linux
|
||||
}
|
||||
Reference in new issue
Block a user