templates/lab_template-old.yml [1:140]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---
## Amazon Aurora Labs for MySQL
## Infrastructure template with an Aurora cluster for lab exercises
##
## Dependencies:
## none
##
## License:
## This sample code is made available under the MIT-0 license. See the LICENSE file.

AWSTemplateFormatVersion: 2010-09-09
Description: Amazon Aurora Labs for MySQL


## Parameters
Parameters:
  deployCluster:
    Default: "Yes"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: Choose 'Yes' if you prefer to have the DB cluster created automatically (instead of creating it manually yourself).
  deployML:
    Default: "No"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: If you plan to run the Aurora ML labs, choose 'Yes', to deploy the required resources.
  deployGDB:
    Default: "No"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: If you plan to run the Aurora Global Database labs, choose 'Yes', to deploy the required resources.
  deployBacktrack:
    Default: "Yes"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: If you plan to run the Backtrack lab, choose 'Yes', to deploy a cluster with Backtrack enabled.
  agreeTracking:
    Default: "Yes"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: Help us improve our labs by agreeing to the collection of anonymous usage statistics for our labs.
  isSecondary:
    Default: "No"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: Please leave default value, reserved for internal use.
  EEEventId:
    Type: String
    Description: Please leave blank, reserved for internal use.
  EETeamId:
    Type: String
    Description: Please leave blank, reserved for internal use.
  EEModuleId:
    Type: String
    Description: Please leave blank, reserved for internal use.
  EEModuleVersion:
    Type: String
    Description: Please leave blank, reserved for internal use.
  LatestAmiId:
    Type: 'AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>'
    Default: '/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-ebs'
    Description: Please leave as-is, reserved for internal use.


## Metadata
Metadata:
  AWS::CloudFormation::Interface:
    ParameterGroups:
      - Label:
          default: "Lab Features"
        Parameters:
          - deployCluster
          - deployGDB
          - deployML
          - deployBacktrack
      - Label:
          default: "Help Us Improve Our Labs!"
        Parameters:
          - agreeTracking
      - Label:
          default: "Reserved for Internal Use (Do Not Change)"
        Parameters:
          - isSecondary
          - EEEventId
          - EETeamId
          - EEModuleId
          - EEModuleVersion
          - LatestAmiId
    ParameterLabels:
      deployCluster:
        default: "Create DB Cluster Automatically?"
      deployGDB:
        default: "Enable Aurora Global Database Labs?"
      deployML:
        default: "Enable Aurora ML Labs?"
      deployBacktrack:
        default: "Enable Backtrack?"
      agreeTracking:
        default: "Collect Usage Data?"
      isSecondary:
        default: "Secondary Region Only"
      EEEventId:
        default: "EventEngine Event"
      EETeamId:
        default: "EventEngine Team"
      EEModuleId:
        default: "EventEngine Module"
      EEModuleVersion:
        default: "EventEngine Version"
      LatestAmiId:
        default: "Reference Linux AMI"


## Conditions
Conditions:
  # are we running in EE? - used to hardcode resource name prefixes when deployed in EE among other things, use the stack name otherwise
  condEventEngine: !Not [ !Equals [ !Ref EEEventId, "" ] ]
  # EE doesn't allow us to customize parameters, so different EE modules launch different features
  # the cluster is deployed only if parameter is yes, and the EE module doesn't match the 'base-only' module id
  condDeployDBCluster: !And [ !Equals [ !Ref deployCluster, "Yes" ], !Not [ !Equals [ !Ref EEModuleId, "6ccc4506e8f04b81bc138bae806abe67" ] ] ]
  # the ML resources are only deployed if parameter is yes, or EE module matches the 'all-features' module id
  condDeployMLResources: !Or [ !Equals [ !Ref deployML, "Yes" ], !Equals [ !Ref EEModuleId, "fbae3faaf87d4062b5dc7986cf93cc84" ] ]
  # the GDB resources are only deployed if parameter is yes, or EE module matches the 'global-cluster' or 'all-features' module id
  condDeployGDBResources: !Or [ !Equals [ !Ref deployGDB, "Yes" ], !Equals [ !Ref EEModuleId, "df00a2bc0f5a498b88157da8ec40c0be" ], !Equals [ !Ref EEModuleId, "fbae3faaf87d4062b5dc7986cf93cc84" ] ]
  # the bug fix for secondary region KMS is only deployed if parameter is yes
  condIsSecondary: !Equals [ !Ref isSecondary, "Yes" ]
  # GDB and Backtrack are currently incompatible, don't enable backtrack if deployBacktrack = No, or EE module matches the 'global-cluster' or 'all-features' module id
  condEnableBacktrack: !And [ !Equals [ !Ref deployBacktrack, "Yes" ], !Not [ !Or [ !Equals [ !Ref EEModuleId, "df00a2bc0f5a498b88157da8ec40c0be" ], !Equals [ !Ref EEModuleId, "fbae3faaf87d4062b5dc7986cf93cc84" ] ] ] ]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/lab_template.yml [1:140]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---
## Amazon Aurora Labs for MySQL
## Infrastructure template with an Aurora cluster for lab exercises
##
## Dependencies:
## none
##
## License:
## This sample code is made available under the MIT-0 license. See the LICENSE file.

AWSTemplateFormatVersion: 2010-09-09
Description: Amazon Aurora Labs for MySQL


## Parameters
Parameters:
  deployCluster:
    Default: "Yes"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: Choose 'Yes' if you prefer to have the DB cluster created automatically (instead of creating it manually yourself).
  deployML:
    Default: "No"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: If you plan to run the Aurora ML labs, choose 'Yes', to deploy the required resources.
  deployGDB:
    Default: "No"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: If you plan to run the Aurora Global Database labs, choose 'Yes', to deploy the required resources.
  deployBacktrack:
    Default: "Yes"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: If you plan to run the Backtrack lab, choose 'Yes', to deploy a cluster with Backtrack enabled.
  agreeTracking:
    Default: "Yes"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: Help us improve our labs by agreeing to the collection of anonymous usage statistics for our labs.
  isSecondary:
    Default: "No"
    Type: String
    AllowedValues:
      - "Yes"
      - "No"
    Description: Please leave default value, reserved for internal use.
  EEEventId:
    Type: String
    Description: Please leave blank, reserved for internal use.
  EETeamId:
    Type: String
    Description: Please leave blank, reserved for internal use.
  EEModuleId:
    Type: String
    Description: Please leave blank, reserved for internal use.
  EEModuleVersion:
    Type: String
    Description: Please leave blank, reserved for internal use.
  LatestAmiId:
    Type: 'AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>'
    Default: '/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-ebs'
    Description: Please leave as-is, reserved for internal use.


## Metadata
Metadata:
  AWS::CloudFormation::Interface:
    ParameterGroups:
      - Label:
          default: "Lab Features"
        Parameters:
          - deployCluster
          - deployGDB
          - deployML
          - deployBacktrack
      - Label:
          default: "Help Us Improve Our Labs!"
        Parameters:
          - agreeTracking
      - Label:
          default: "Reserved for Internal Use (Do Not Change)"
        Parameters:
          - isSecondary
          - EEEventId
          - EETeamId
          - EEModuleId
          - EEModuleVersion
          - LatestAmiId
    ParameterLabels:
      deployCluster:
        default: "Create DB Cluster Automatically?"
      deployGDB:
        default: "Enable Aurora Global Database Labs?"
      deployML:
        default: "Enable Aurora ML Labs?"
      deployBacktrack:
        default: "Enable Backtrack?"
      agreeTracking:
        default: "Collect Usage Data?"
      isSecondary:
        default: "Secondary Region Only"
      EEEventId:
        default: "EventEngine Event"
      EETeamId:
        default: "EventEngine Team"
      EEModuleId:
        default: "EventEngine Module"
      EEModuleVersion:
        default: "EventEngine Version"
      LatestAmiId:
        default: "Reference Linux AMI"


## Conditions
Conditions:
  # are we running in EE? - used to hardcode resource name prefixes when deployed in EE among other things, use the stack name otherwise
  condEventEngine: !Not [ !Equals [ !Ref EEEventId, "" ] ]
  # EE doesn't allow us to customize parameters, so different EE modules launch different features
  # the cluster is deployed only if parameter is yes, and the EE module doesn't match the 'base-only' module id
  condDeployDBCluster: !And [ !Equals [ !Ref deployCluster, "Yes" ], !Not [ !Equals [ !Ref EEModuleId, "6ccc4506e8f04b81bc138bae806abe67" ] ] ]
  # the ML resources are only deployed if parameter is yes, or EE module matches the 'all-features' module id
  condDeployMLResources: !Or [ !Equals [ !Ref deployML, "Yes" ], !Equals [ !Ref EEModuleId, "fbae3faaf87d4062b5dc7986cf93cc84" ] ]
  # the GDB resources are only deployed if parameter is yes, or EE module matches the 'global-cluster' or 'all-features' module id
  condDeployGDBResources: !Or [ !Equals [ !Ref deployGDB, "Yes" ], !Equals [ !Ref EEModuleId, "df00a2bc0f5a498b88157da8ec40c0be" ], !Equals [ !Ref EEModuleId, "fbae3faaf87d4062b5dc7986cf93cc84" ] ]
  # the bug fix for secondary region KMS is only deployed if parameter is yes
  condIsSecondary: !Equals [ !Ref isSecondary, "Yes" ]
  # GDB and Backtrack are currently incompatible, don't enable backtrack if deployBacktrack = No, or EE module matches the 'global-cluster' or 'all-features' module id
  condEnableBacktrack: !And [ !Equals [ !Ref deployBacktrack, "Yes" ], !Not [ !Or [ !Equals [ !Ref EEModuleId, "df00a2bc0f5a498b88157da8ec40c0be" ], !Equals [ !Ref EEModuleId, "fbae3faaf87d4062b5dc7986cf93cc84" ] ] ] ]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



