Last active
June 5, 2021 09:06
-
-
Save yogesh174/b573f39ef8f9609118cead80d6180a54 to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################# | |
######## Fetch amazon linux 2 ami id ######## | |
############################################# | |
data "aws_ami" "amazon_linux_2" { | |
owners = ["amazon"] | |
most_recent = true | |
filter { | |
name = "name" | |
values = ["amzn2-ami-hvm*"] | |
} | |
filter { | |
name = "virtualization-type" | |
values = ["hvm"] | |
} | |
filter { | |
name = "architecture" | |
values = ["x86_64"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment