CloudFormation/Windows/cascading-images-with-dotnet-web-application/windows-baseline-stack.yml [132:158]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Tags:
        Purpose: ImageBuilderSample
      WorkingDirectory: 'C:\'

  # A CloudWatch LogGroup that maps to where the image creation logs will be published.
  # This ensures the retention is configured, and that the group is removed on stack deletion.
  RecipeLogGroup:
    Type: AWS::Logs::LogGroup
    Properties:
      LogGroupName: !Sub '/aws/imagebuilder/${ResourceName}'
      RetentionInDays: 7

  # The Distribution Configuration allows you to specify naming conventions and the account and region distributions of a successful image build.
  # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-distributionconfiguration.html
  Distribution:
    Type: AWS::ImageBuilder::DistributionConfiguration
    Properties:
      Name: !Ref ResourceName
      Description: !Sub 'Deploys the ${ResourceName} AMI to all desired regions.'
      Distributions:
        - Region: !Ref 'AWS::Region'
          AmiDistributionConfiguration:
            Name: !Sub '${ResourceName}-{{ imagebuilder:buildDate }}'
            AmiTags:
              Name: !Ref ResourceName
      Tags:
        Purpose: ImageBuilderSample
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



CloudFormation/Windows/cascading-images-with-dotnet-web-application/windows-dotnet-application-stack.yml [392:418]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Tags:
        Purpose: ImageBuilderSample
      WorkingDirectory: 'C:\'

  # A CloudWatch LogGroup that maps to where the image creation logs will be published.
  # This ensures the retention is configured, and that the group is removed on stack deletion.
  RecipeLogGroup:
    Type: AWS::Logs::LogGroup
    Properties:
      LogGroupName: !Sub '/aws/imagebuilder/${ResourceName}'
      RetentionInDays: 7

  # The Distribution Configuration allows you to specify naming conventions and the account and region distributions of a successful image build.
  # https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-imagebuilder-distributionconfiguration.html
  Distribution:
    Type: AWS::ImageBuilder::DistributionConfiguration
    Properties:
      Name: !Ref ResourceName
      Description: !Sub 'Deploys the ${ResourceName} AMI to all desired regions.'
      Distributions:
        - Region: !Ref 'AWS::Region'
          AmiDistributionConfiguration:
            Name: !Sub '${ResourceName}-{{ imagebuilder:buildDate }}'
            AmiTags:
              Name: !Ref ResourceName
      Tags:
        Purpose: ImageBuilderSample
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



