Commit 12be8b82 authored by Daisuke Fujita's avatar Daisuke Fujita

Merge pull request #59 from dtan4/quoted-tag-name

Quote tag name
parents 58691b78 7035bee4
......@@ -19,7 +19,7 @@ resource "aws_instance" "<%= module_name_of(instance) %>" {
<% end -%>
tags {
<% instance.tags.each do |tag| -%>
<%= tag.key %> = "<%= tag.value %>"
"<%= tag.key %>" = "<%= tag.value %>"
<% end -%>
}
}
......
......@@ -26,7 +26,7 @@ resource "aws_network_acl" "<%= module_name_of(network_acl) %>" {
<% end -%>
tags {
<% network_acl.tags.each do |tag| -%>
<%= tag.key %> = "<%= tag.value %>"
"<%= tag.key %>" = "<%= tag.value %>"
<% end -%>
}
}
......
......@@ -4,7 +4,7 @@ resource "aws_route53_zone" "<%= module_name_of(hosted_zone) %>" {
tags {
<% tags_of(hosted_zone).each do |tag| -%>
<%= tag.key %> = "<%= tag.value %>"
"<%= tag.key %>" = "<%= tag.value %>"
<% end -%>
}
}
......
......@@ -36,7 +36,7 @@ resource "aws_security_group" "<%= module_name_of(security_group) %>" {
<% if security_group.tags.length > 0 -%>
tags {
<% security_group.tags.each do |tag| -%>
<%= tag.key %> = "<%= tag.value %>"
"<%= tag.key %>" = "<%= tag.value %>"
<% end -%>
}
<% end -%>
......
......@@ -7,7 +7,7 @@ resource "aws_subnet" "<%= module_name_of(subnet) %>" {
tags {
<% subnet.tags.each do |tag| -%>
<%= tag.key %> = "<%= tag.value %>"
"<%= tag.key %>" = "<%= tag.value %>"
<% end -%>
}
}
......
......@@ -7,7 +7,7 @@ resource "aws_vpc" "<%= module_name_of(vpc) %>" {
tags {
<% vpc.tags.each do |tag| -%>
<%= tag.key %> = "<%= tag.value %>"
"<%= tag.key %>" = "<%= tag.value %>"
<% end -%>
}
}
......
......@@ -129,7 +129,7 @@ resource "aws_instance" "hoge" {
}
tags {
Name = "hoge"
"Name" = "hoge"
}
}
......
......@@ -114,7 +114,7 @@ resource "aws_network_acl" "hoge" {
}
tags {
Name = "hoge"
"Name" = "hoge"
}
}
......@@ -131,7 +131,7 @@ resource "aws_network_acl" "fuga" {
}
tags {
Name = "fuga"
"Name" = "fuga"
}
}
......
......@@ -77,7 +77,7 @@ resource "aws_route53_zone" "hoge-net" {
name = "hoge.net"
tags {
Environment = "dev"
"Environment" = "dev"
}
}
......@@ -85,7 +85,7 @@ resource "aws_route53_zone" "fuga-net" {
name = "fuga.net"
tags {
Environment = "dev"
"Environment" = "dev"
}
}
......
......@@ -125,7 +125,7 @@ resource "aws_security_group" "sg-5678efgh-fuga" {
tags {
Name = "fuga"
"Name" = "fuga"
}
}
......
......@@ -52,7 +52,7 @@ resource "aws_subnet" "hoge" {
map_public_ip_on_launch = false
tags {
Name = "hoge"
"Name" = "hoge"
}
}
......@@ -63,7 +63,7 @@ resource "aws_subnet" "fuga" {
map_public_ip_on_launch = false
tags {
Name = "fuga"
"Name" = "fuga"
}
}
......
......@@ -64,7 +64,7 @@ resource "aws_vpc" "hoge" {
instance_tenancy = "default"
tags {
Name = "hoge"
"Name" = "hoge"
}
}
......@@ -75,7 +75,7 @@ resource "aws_vpc" "fuga" {
instance_tenancy = "default"
tags {
Name = "fuga"
"Name" = "fuga"
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment