123456789101112131415161718192021222324252627282930313233343536 |
- ###############################################
- # DO NOT EDIT THIS FILE
- #
- # This file is generated through 'make all'.
- # If you need to make changes, make your changes
- # to the corresponding .j file and then rerun
- # make all
- ###############################################
- #############
- # New method: Search for it!
- data "aws_ami" "ubuntu" {
- most_recent = true
- filter {
- name = "name"
- values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
- }
- filter {
- name = "virtualization-type"
- values = ["hvm"]
- }
- owners = ["099720109477"] # Canonical
- }
- # Use via: ami = "${data.aws_ami.ubuntu.id}"
- #############
- # Old fashioned method, manual mapping:
- variable "ubuntu_amis" {
- type = "map"
- default = {
- us-east-1 = "ami-40d28157"
- us-east-2 = "ami-153e6470"
- }
- }
- # Use with: ami = "${lookup(var.ubuntu_amis, var.region)}"
|