!Equals [!Ref CreatePublicSubnets, "true"]
AssertDescription: To enable NAT gateways you must have both CreatePrivateSubnets and CreatePublicSubnets set to 'true'
Subnets:
Assertions:
Assert: !Or
!Equals [!Ref CreatePrivateSubnets, "true"]
!Equals [!Ref CreatePublicSubnets, "true"]
AssertDescription: At least one of CreatePublicSubnets or CreatePrivateSubnets m
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Adding additional parameters, relevant rules and conditions. Added and consolidated testing tasks
Parameters: CreatePublicSubnets - default value: True CreateNATGateways - default value: True
Rules: NAT: RuleCondition: !Equals [!Ref CreateNATGateways, "true"] Assertions:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.