Created
November 30, 2020 09:48
-
-
Save toshke/5546406ddb888872fba574c2bc1b4879 to your computer and use it in GitHub Desktop.
Conditional Custom Resource
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment