-
Notifications
You must be signed in to change notification settings - Fork 0
/
lc.tf
27 lines (23 loc) · 848 Bytes
/
lc.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
resource "aws_launch_configuration" "lc" {
name_prefix = "vault_"
image_id = "${ var.ami_id }"
instance_type = "${ var.instance_type }"
key_name = "${ var.ssh_key_name }"
iam_instance_profile = "${ aws_iam_instance_profile.vault_ec2_instance_profile.id }"
user_data = "${ data.template_file.userdata.rendered }"
ebs_optimized = false
enable_monitoring = false
associate_public_ip_address = "${var.alb_internal == "true" ? "false" : "true"}"
security_groups = [
"${ aws_security_group.vault_sg_in_ec2.id }",
"${ aws_security_group.vault_sg_in_cluster.id }",
]
root_block_device {
volume_type = "gp2"
volume_size = "100"
delete_on_termination = true
}
lifecycle {
create_before_destroy = true
}
}