Skip to content

Instantly share code, notes, and snippets.

@toshke
Created November 30, 2020 09:48
Show Gist options
  • Select an option

  • Save toshke/5546406ddb888872fba574c2bc1b4879 to your computer and use it in GitHub Desktop.

Select an option

Save toshke/5546406ddb888872fba574c2bc1b4879 to your computer and use it in GitHub Desktop.

Revisions

  1. toshke renamed this gist Nov 30, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. toshke created this gist Nov 30, 2020.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    Parameters:
    DeployCustomResource:
    Type: String
    Default: false
    AllowedValues: [true, false]
    Conditions:
    DeployCustomResource: !Equals [ !Ref DeployCustomResource, 'true' ]
    Resources:
    # .. other definitions including backing lambda
    MyCustomResource:
    Condition: DeployCustomResource
    Properties:
    Token: !GetAtt CustomResourceLambda.Arn
    #.. other properties