Skip to content

Instantly share code, notes, and snippets.

@mpstein
Created June 30, 2020 15:39
Show Gist options
  • Save mpstein/9710da891dbd2795ac1f935553d1cd06 to your computer and use it in GitHub Desktop.
Save mpstein/9710da891dbd2795ac1f935553d1cd06 to your computer and use it in GitHub Desktop.
Cloudformation Test Template - No Resources
---
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}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment