mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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>
14 lines
552 B
HCL
14 lines
552 B
HCL
# Launch an instance to serve as target for Ansible playbook
|
|
resource "aws_instance" "xenial" {
|
|
ami = "${data.aws_ami.xenial_ami.id}"
|
|
instance_type = "${var.instance_type}"
|
|
key_name = "${var.key_pair}"
|
|
vpc_security_group_ids = ["${var.sec_grp}"]
|
|
subnet_id = "${var.dest_subnet}"
|
|
tags {
|
|
Name = "xenial"
|
|
demo = "ansible-bootstrap"
|
|
owner = "Scott Lowe"
|
|
tool = "terraform"
|
|
}
|
|
}
|