Skip to content

Commit

Permalink
Add StackName to Outputs. Useful when used as nested stack. (widdix#100)
Browse files Browse the repository at this point in the history
Add StackName to Outputs everywhere. Useful when used as nested stack.
  • Loading branch information
guizmaii authored and michaelwittig committed Aug 2, 2017
1 parent 854c80d commit 16f80f9
Show file tree
Hide file tree
Showing 25 changed files with 75 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ec2/ec2-auto-recovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'ec2/ec2-auto-recovery'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
IPAddress:
Description: 'The public IP address of the EC2 instance.'
Value: !Ref ElasticIP
Expand Down
3 changes: 3 additions & 0 deletions ecs/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'ecs/cluster'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
Cluster:
Description: 'ECS cluster.'
Value: !Ref Cluster
Expand Down
3 changes: 3 additions & 0 deletions ecs/service-cluster-alb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'ecs/service-cluster-alb'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
DNSName:
Description: 'The DNS name for the ECS cluster/service load balancer.'
Value:
Expand Down
3 changes: 3 additions & 0 deletions ecs/service-dedicated-alb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'ecs/service-dedicated-alb'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
DNSName:
Description: 'The DNS name for the ECS cluster/service load balancer.'
Value: !GetAtt 'LoadBalancer.DNSName'
Expand Down
3 changes: 3 additions & 0 deletions jenkins/jenkins2-ha-agents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1732,6 +1732,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'jenkins/jenkins2-ha-agents'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
AdminUsername:
Description: 'User name for the Jenkins admin.'
Value: admin
Expand Down
3 changes: 3 additions & 0 deletions jenkins/jenkins2-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'jenkins/jenkins2-ha'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
AdminUsername:
Description: 'User name for the Jenkins admin.'
Value: admin
Expand Down
3 changes: 3 additions & 0 deletions operations/alert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'operations/alert'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
TopicARN:
Description: 'The ARN of the alert topic.'
Value: !Ref Topic
Expand Down
3 changes: 3 additions & 0 deletions security/account-password-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,6 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'security/account-password-policy'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
3 changes: 3 additions & 0 deletions security/auth-proxy-ha-github-orga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'security/auth-proxy-ha-github-orga'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
SecurityGroup:
Description: 'Use this Security Group to reference incoming traffic from the auth proxy.'
Value: !Ref SecurityGroup
Expand Down
3 changes: 3 additions & 0 deletions security/cloudtrail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,6 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'security/cloudtrail'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
3 changes: 3 additions & 0 deletions security/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'security/config'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
3 changes: 3 additions & 0 deletions static-website/static-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'static-website/static-website'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
URL:
Description: 'URL to static website.'
Value: !Sub 'https://${DomainName}'
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-2azs-legacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-2azs-legacy'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
AZs:
Description: 'AZs'
Value: 2
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-2azs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-2azs'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
AZs:
Description: 'AZs'
Value: 2
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-3azs-legacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-3azs-legacy'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
AZs:
Description: 'AZs'
Value: 3
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-3azs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-3azs'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
AZs:
Description: 'AZs'
Value: 3
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-4azs-legacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-4azs-legacy'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
AZs:
Description: 'AZs'
Value: 4
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-4azs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-4azs'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
AZs:
Description: 'AZs'
Value: 4
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-endpoint-s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-endpoint-s3'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
Endpoint:
Description: 'The VPC endpoint to S3.'
Value: !Ref EndpointS3
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-flow-logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id.'
Value: 'vpc/vpc-flowlog'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
LogGroupName:
Description: 'The name of the CloudWatch Logs log group where Amazon EC2 publishes your flow logs.'
Value: !Ref LogGroup
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-nat-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-nat-gateway'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
IPAddress:
Description: 'The public IP address of the NAT gateway.'
Value: !Ref EIP
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-nat-instance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-nat-instance'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
IPAddress:
Description: 'The public IP address of the NAT instance.'
Value: !Ref EIP
Expand Down
3 changes: 3 additions & 0 deletions vpc/vpc-ssh-bastion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'vpc/vpc-ssh-bastion'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
SecurityGroup:
Description: 'Use this Security Group to reference incoming traffic from the SSH bastion host/instance.'
Value: !Ref SecurityGroup
Expand Down
3 changes: 3 additions & 0 deletions wordpress/wordpress-ha-aurora.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'wordpress/wordpress-ha'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
CloudFrontID:
Description: 'The ID of the CloudFront distribution.'
Value: !Ref CloudFrontDistribution
Expand Down
3 changes: 3 additions & 0 deletions wordpress/wordpress-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,9 @@ Outputs:
TemplateID:
Description: 'cloudonaut.io template id'
Value: 'wordpress/wordpress-ha'
StackName:
Description: 'Stack name'
Value: !Sub '${AWS::StackName}'
CloudFrontID:
Description: 'The ID of the CloudFront distribution.'
Value: !Ref CloudFrontDistribution
Expand Down

0 comments on commit 16f80f9

Please sign in to comment.