-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharm_launch_template.tf
More file actions
49 lines (40 loc) · 898 Bytes
/
arm_launch_template.tf
File metadata and controls
49 lines (40 loc) · 898 Bytes
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
resource "aws_launch_template" "arm_template" {
name = "graviton_template"
image_id = var.ami_image_id
instance_type = var.instance_type
key_name = var.key_pair
block_device_mappings {
device_name = "/dev/sda1"
ebs {
volume_size = 32
}
}
capacity_reservation_specification {
capacity_reservation_preference = "open"
}
cpu_options {
core_count = 2
threads_per_core = 1
}
metadata_options {
http_endpoint = "enabled"
http_tokens = "required"
http_put_response_hop_limit = 1
instance_metadata_tags = "enabled"
}
monitoring {
enabled = true
}
network_interfaces {
associate_public_ip_address = true
}
tag_specifications {
resource_type = "instance"
tags = {
Name = "arm-instance"
}
}
tags = {
user = "pchandaliya"
}
}