mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Update formatting of all Terraform configuration files per `terraform fmt` Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
15 lines
532 B
HCL
15 lines
532 B
HCL
# Launch a cluster of instances
|
|
resource "aws_instance" "instance" {
|
|
count = "${var.cluster_size}"
|
|
ami = "${var.ami}"
|
|
instance_type = "${var.type}"
|
|
subnet_id = "${element(var.subnet_list, count.index)}"
|
|
key_name = "${var.ssh_key}"
|
|
associate_public_ip_address = "${var.assign_pub_ip}"
|
|
vpc_security_group_ids = ["${var.sec_group_list}"]
|
|
|
|
tags {
|
|
Name = "${var.name}-${count.index}"
|
|
Role = "${var.role}"
|
|
}
|
|
}
|