Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
remove COST and customer tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hoegertn committed Jan 3, 2017
1 parent 27e0347 commit 05c86a2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 90 deletions.
8 changes: 0 additions & 8 deletions generators/docker/index.js
Expand Up @@ -22,14 +22,6 @@ module.exports = Generator.extend({
name: 'range',
message: 'The second byte of the VPC CIDR range?',
default: '0'
}, {
type: 'input',
name: 'cost',
message: 'The cost reference (for tagging)?'
}, {
type: 'input',
name: 'customer',
message: 'The customer of the service (for tagging)?'
}, {
type: 'input',
name: 'port',
Expand Down
54 changes: 0 additions & 54 deletions generators/docker/templates/cfn.yaml
Expand Up @@ -17,10 +17,6 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
SubnetA:
Type: 'AWS::EC2::Subnet'
Properties:
Expand All @@ -31,10 +27,6 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>A
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
SubnetB:
Type: 'AWS::EC2::Subnet'
Properties:
Expand All @@ -45,20 +37,12 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>B
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
InternetGateway:
Type: 'AWS::EC2::InternetGateway'
Properties:
Tags:
- Key: Name
Value: <%= name %>IGW
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
GatewayToInternet:
Type: 'AWS::EC2::VPCGatewayAttachment'
Properties:
Expand All @@ -71,10 +55,6 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>Routing
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
PublicRoute:
Type: 'AWS::EC2::Route'
DependsOn: GatewayToInternet
Expand All @@ -100,10 +80,6 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>-ELB
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: '80'
Expand All @@ -125,10 +101,6 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>-Instance
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: '22'
Expand Down Expand Up @@ -210,11 +182,6 @@ Resources:
DomainValidationOptions:
- DomainName: '<%= hostname %>'
ValidationDomain: '<%= domain %>'
Tags:
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
LoadBalancer:
Type: 'AWS::ElasticLoadBalancingV2::LoadBalancer'
Properties:
Expand All @@ -224,11 +191,6 @@ Resources:
- !Ref SubnetB
SecurityGroups:
- !Ref ELBSecurityGroup
Tags:
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
HTTPTargetGroup:
Type: 'AWS::ElasticLoadBalancingV2::TargetGroup'
Properties:
Expand All @@ -242,11 +204,6 @@ Resources:
Port: 80
Protocol: HTTP
VpcId: !Ref VPC
Tags:
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
HTTPSTargetGroup:
Type: 'AWS::ElasticLoadBalancingV2::TargetGroup'
Properties:
Expand All @@ -261,11 +218,6 @@ Resources:
Protocol: HTTP
UnhealthyThresholdCount: 3
VpcId: !Ref VPC
Tags:
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
HTTPListener:
Type : 'AWS::ElasticLoadBalancingV2::Listener'
Properties:
Expand Down Expand Up @@ -419,12 +371,6 @@ Resources:
- !Ref HTTPTargetGroup
- !Ref HTTPSTargetGroup
Tags:
- Key: COST
Value: <%= cost %>
PropagateAtLaunch: 'true'
- Key: Customer
Value: <%= customer %>
PropagateAtLaunch: 'true'
- Key: Name
Value: <%= name %>Server
PropagateAtLaunch: 'true'
Expand Down
8 changes: 0 additions & 8 deletions generators/vpc/index.js
Expand Up @@ -22,14 +22,6 @@ module.exports = Generator.extend({
name: 'range',
message: 'The second byte of the VPC CIDR range?',
default: '0'
}, {
type: 'input',
name: 'cost',
message: 'The cost reference (for tagging)?'
}, {
type: 'input',
name: 'customer',
message: 'The customer of the environment (for tagging)?'
}];

return this.prompt(prompts).then(function (props) {
Expand Down
20 changes: 0 additions & 20 deletions generators/vpc/templates/cfn.yaml
Expand Up @@ -11,10 +11,6 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
SubnetA:
Type: 'AWS::EC2::Subnet'
Properties:
Expand All @@ -25,10 +21,6 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>A
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
SubnetB:
Type: 'AWS::EC2::Subnet'
Properties:
Expand All @@ -39,20 +31,12 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>B
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
InternetGateway:
Type: 'AWS::EC2::InternetGateway'
Properties:
Tags:
- Key: Name
Value: <%= name %>IGW
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
GatewayToInternet:
Type: 'AWS::EC2::VPCGatewayAttachment'
Properties:
Expand All @@ -65,10 +49,6 @@ Resources:
Tags:
- Key: Name
Value: <%= name %>Routing
- Key: COST
Value: <%= cost %>
- Key: Customer
Value: <%= customer %>
PublicRoute:
Type: 'AWS::EC2::Route'
DependsOn: GatewayToInternet
Expand Down

0 comments on commit 05c86a2

Please sign in to comment.