Skip to content

Instantly share code, notes, and snippets.

@breenie
Created February 12, 2020 12:17
Show Gist options
  • Save breenie/36013de3b342417e3514f78ca61e4748 to your computer and use it in GitHub Desktop.
Save breenie/36013de3b342417e3514f78ca61e4748 to your computer and use it in GitHub Desktop.
Empty AWS Cloudformation stack
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'CloudFormation exports'
Conditions:
HasNot: !Equals [ 'true', 'false' ]
# dummy (null) resource, never created
Resources:
NullResource:
Type: 'Custom::NullResource'
Condition: HasNot
Outputs:
ExportsStackName:
Value: !Ref 'AWS::StackName'
Export:
Name: !Sub 'ExportsStackName-${AWS::StackName}'
@breenie
Copy link
Author

breenie commented Feb 12, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment