Skip to content

Instantly share code, notes, and snippets.

@yogesh174
Last active June 5, 2021 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yogesh174/b573f39ef8f9609118cead80d6180a54 to your computer and use it in GitHub Desktop.
Save yogesh174/b573f39ef8f9609118cead80d6180a54 to your computer and use it in GitHub Desktop.
Multi-cloud K8s cluster with Terraform and Ansible
#############################################
######## 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