-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add the option to one line of multiple tags (#403)
- Loading branch information
Showing
4 changed files
with
91 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "This Template will create VPC Peering Connection", | ||
"Parameters": { | ||
"EDHPrivateSubnetAAZ": { | ||
"Description": "Availability Zone of the instance", | ||
"Type": "String", | ||
"AllowedPattern": ".+" | ||
}, | ||
"SecurityGroupID": { | ||
"Description": "Security Group ID", | ||
"Type": "String", | ||
"AllowedPattern": ".+" | ||
}, | ||
"SubnetID": { | ||
"Description": "Subnet ID", | ||
"Type": "String", | ||
"AllowedPattern": ".+" | ||
} | ||
}, | ||
"Resources": { | ||
"Peer" : { | ||
"Type" : "AWS::EC2::VPCPeeringConnection", | ||
"Properties" : { | ||
"PeerVpcId" : "vpc-6da4bb14", | ||
"Tags" : [{"Key" : "Name", "Value" : "Dev-Uat-Peering-Connection"},{"Key" : "gafg:billing", "Value" : "edh"}], | ||
"VpcId" : "vpc-1993c37f", | ||
"PeerOwnerId" : "950826683103" | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
tests/cloudformation/resources/single_line/multiTag_expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"AWSTemplateFormatVersion": "2010-09-09", | ||
"Description": "This Template will create VPC Peering Connection", | ||
"Parameters": { | ||
"EDHPrivateSubnetAAZ": { | ||
"Description": "Availability Zone of the instance", | ||
"Type": "String", | ||
"AllowedPattern": ".+" | ||
}, | ||
"SecurityGroupID": { | ||
"Description": "Security Group ID", | ||
"Type": "String", | ||
"AllowedPattern": ".+" | ||
}, | ||
"SubnetID": { | ||
"Description": "Subnet ID", | ||
"Type": "String", | ||
"AllowedPattern": ".+" | ||
} | ||
}, | ||
"Resources": { | ||
"Peer" : { | ||
"Type" : "AWS::EC2::VPCPeeringConnection", | ||
"Properties" : { | ||
"PeerVpcId" : "vpc-6da4bb14", | ||
"Tags" : [{"Key" : "Name", "Value" : "Dev-Uat-Peering-Connection"},{"Key" : "gafg:billing", "Value" : "edh"},{"Key":"new_tag","Value":"new_value"},{"Key":"another_tag","Value":"another_val"}], | ||
"VpcId" : "vpc-1993c37f", | ||
"PeerOwnerId" : "950826683103" | ||
} | ||
} | ||
} | ||
} |