AWSTemplateFormatVersion: 2010-09-09 Description: "Dummy master template for cfn-python-lint rule" Parameters: QSS3BucketName: AllowedPattern: ^[0-9a-zA-Z]+([0-9a-zA-Z-]*[0-9a-zA-Z])*$ ConstraintDescription: Quick Start bucket name can include numbers, lowercase letters, uppercase letters, and hyphens (-). It cannot start or end with a hyphen (-). Default: aws-quickstart Description: S3 bucket name for the Quick Start assets. Quick Start bucket name can include numbers, lowercase letters, uppercase letters, and hyphens (-). It cannot start or end with a hyphen (-). Type: String QSS3KeyPrefix: AllowedPattern: ^[0-9a-zA-Z-/]*$ ConstraintDescription: Quick Start key prefix can include numbers, lowercase letters, uppercase letters, hyphens (-), and forward slash (/). Default: quickstart-awx/ Description: S3 key prefix for the Quick Start assets. Quick Start key prefix an include numbers, lowercase letters, uppercase letters, hyphens (-), and forward slash (/). Type: String Bob: Type: String Conditions: GovCloudCondition: !Equals [!Ref 'AWS::Region', us-gov-west-1] BobCondition: !Equals [!Ref 'Bob', 'bob'] Resources: MyStack: Type: AWS::CloudFormation::Stack Properties: TemplateURL: !Sub ['https://${QSS3BucketName}.${QSS3Region}.amazonaws.com/${QSS3KeyPrefix}/templates/child.yml', {QSS3Region: !If [GovCloudCondition, s3-us-gov-west-1, s3]}] Parameters: TestParameter: "some value" NotDefinedInChild: "Abcdfoo" Bob: !Ref "Bob" QSS3BucketName: "ABC" MyStack2: Type: AWS::CloudFormation::Stack Properties: TemplateURL: !Sub ['https://${QSS3BucketName}.${QSS3Region}.amazonaws.com/${QSS3KeyPrefix}/child.yml', {QSS3Region: !If [GovCloudCondition, s3-us-gov-west-1, s3]}] Parameters: TestParam: "some value"