File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -276,11 +276,11 @@ resource "aws_launch_template" "default" {
276
276
user_data = base64encode (var. user_data )
277
277
278
278
monitoring {
279
- enabled = true
279
+ enabled = var . detailed_monitoring
280
280
}
281
281
282
282
network_interfaces {
283
- associate_public_ip_address = false
283
+ associate_public_ip_address = var . associate_public_ip_address
284
284
delete_on_termination = true
285
285
security_groups = concat (var. additional_security_group_ids , [aws_security_group . default . id ])
286
286
}
Original file line number Diff line number Diff line change @@ -62,6 +62,19 @@ variable "additional_security_group_ids" {
62
62
default = []
63
63
}
64
64
65
+ variable "detailed_monitoring" {
66
+ description = " Enable detailed monitoring of instance"
67
+ type = bool
68
+ default = true
69
+ }
70
+
71
+ variable "associate_public_ip_address" {
72
+ description = " Associate public IP address"
73
+ type = bool
74
+ # default should fall back to subnet setting
75
+ default = null
76
+ }
77
+
65
78
# #####################
66
79
# # SESSION LOGGING ##
67
80
# ###################
You can’t perform that action at this time.
0 commit comments