-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
35 lines (24 loc) · 814 Bytes
/
main.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
28
29
30
31
32
33
34
35
module "launch_template" {
source = "modules/launch-template"
name = "launch-template-kyunam-${uuid()}"
iam_instance_profile = "ec2-aws-service"
# block_device_mappigs
block_device_mappings_device_name = "/dev/xvda"
block_device_mappings_volume_size = 100
block_device_mappings_volume_type = "gp2"
# monitoring
monitoring_enabled = true
# ami image id
image_id = "ami-0bb01e989e36b8ab5"
instance_type = "t2.micro"
key_name = "sre-kyunam-test"
# placement
placement_availability_zone = "ap-northeast-2"
# security group ids
vpc_security_group_ids = ["sg-7a16b512","sg-da3c9fb2"]
# ec2 instance tag_specifications
instance_tag_name = "kyunam-ec2"
instance_tag_env = "test"
# launch template tag info
launch_template_tag_name = "launch-template-kyunam"
}