diff --git a/README.md b/README.md index 088d554..767fd77 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ Here is an example of how you can use this module in your inventory structure: application = "clouddrove" environment = "test" protocol = "tcp" - label_order = ["environment", "name", "application"] + label_order = ["environment", "application", "name"] vpc_id = "vpc-xxxxxxxxx" allowed_ip = ["172.16.0.0/16", "10.0.0.0/16"] allowed_ports = [22, 27017] diff --git a/README.yaml b/README.yaml index e671997..28aabff 100644 --- a/README.yaml +++ b/README.yaml @@ -41,7 +41,7 @@ usage : |- application = "clouddrove" environment = "test" protocol = "tcp" - label_order = ["environment", "name", "application"] + label_order = ["environment", "application", "name"] vpc_id = "vpc-xxxxxxxxx" allowed_ip = ["172.16.0.0/16", "10.0.0.0/16"] allowed_ports = [22, 27017] diff --git a/_example/example.tf b/_example/example.tf index f0c2839..efccad8 100644 --- a/_example/example.tf +++ b/_example/example.tf @@ -8,7 +8,7 @@ module "vpc" { name = "vpc" application = "clouddrove" environment = "test" - label_order = ["environment", "name", "application"] + label_order = ["environment", "application", "name"] cidr_block = "10.0.0.0/16" } @@ -19,7 +19,7 @@ module "security_group" { name = "security-group" application = "clouddrove" environment = "test" - label_order = ["environment", "name", "application"] + label_order = ["environment", "application", "name"] vpc_id = module.vpc.vpc_id protocol = "tcp" diff --git a/_test/securitygroup_test.go b/_test/securitygroup_test.go index d12c9c9..71e10c7 100644 --- a/_test/securitygroup_test.go +++ b/_test/securitygroup_test.go @@ -29,6 +29,6 @@ func Test(t *testing.T) { Tags := terraform.OutputMap(t, terraformOptions, "tags") // Check that we get back the outputs that we expect - assert.Equal(t, "test-security-group-clouddrove", Tags["Name"]) + assert.Equal(t, "test-clouddrove-security-group", Tags["Name"]) assert.Contains(t, Id, "sg-") } \ No newline at end of file