Skip to content

Instantly share code, notes, and snippets.

@mbarneyjr
Created April 24, 2021 00:03
Show Gist options
  • Save mbarneyjr/78c060804c727ca0009e646987e547a8 to your computer and use it in GitHub Desktop.
Save mbarneyjr/78c060804c727ca0009e646987e547a8 to your computer and use it in GitHub Desktop.
A template that could manage no resources (assuming `CreateBucket` is set to something other than `'yes'`)
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
CreateBucket:
Type: String
Conditions:
ShouldCreateBucket: !Equals [ !Ref CreateBucket, 'yes' ]
Resources:
Bucket:
Condition: ShouldCreateBucket
Type: AWS::S3::Bucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment