lib/terraforming/template/tf/ec2.erb in terraforming-0.3.0 vs lib/terraforming/template/tf/ec2.erb in terraforming-0.3.1
- old
+ new
@@ -2,9 +2,10 @@
resource "aws_instance" "<%= module_name_of(instance) %>" {
ami = "<%= instance.image_id %>"
availability_zone = "<%= instance.placement.availability_zone %>"
ebs_optimized = <%= instance.ebs_optimized %>
instance_type = "<%= instance.instance_type %>"
+ monitoring = <%= monitoring_state(instance) %>
key_name = "<%= instance.key_name %>"
<%- if in_vpc?(instance) -%>
subnet_id = "<%= instance.subnet_id %>"
vpc_security_group_ids = <%= instance.security_groups.map { |sg| sg.group_id }.inspect %>
<%- else -%>