scottslowe-learning-tools/ansible/bootstrap/datasources.tf
Scott Lowe 2fca12122a
Add files to show how to bootstrap Ubuntu 16.04 for Ansible
Add Terraform configurations to launch an Ubuntu 16.04 AWS instance. Add Ansible playbook to bootstrap the instance for use with Ansible.

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
2017-09-18 21:40:05 -06:00

16 lines
441 B
HCL

data "aws_ami" "xenial_ami" {
most_recent = true
owners = ["099720109477"]
filter {
name = "name"
values = ["*ubuntu-xenial-16.04*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
filter {
name = "root-device-type"
values = ["ebs"]
}
}