templates/lab_template-old.yml [1233:1271]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                Resource: "*"
      Tags:
        - Key: Name
          Value: !If [ condEventEngine, !Sub "auroralab-support-${AWS::Region}", !Sub "${AWS::StackName}-support-${AWS::Region}" ]

## Create Lambda function to implement support operations
  funcLabSupport:
    Type: "AWS::Lambda::Function"
    DependsOn: [ c9ClientIDE ]
    Properties:
      FunctionName: !If [ condEventEngine, "auroralab-support", !Sub "${AWS::StackName}-support" ]
      Description: "Custom Resource to provide support operations for the Aurora MySQL labs."
      Handler: "index.handler"
      Role: !GetAtt roleLabSupport.Arn
      Runtime: "python3.8"
      Timeout: 600
      Tags:
        - Key: Name
          Value: !If [ condEventEngine, "auroralab-support", !Sub "${AWS::StackName}-support" ]
      Environment:
        Variables:
          REGION: !Ref "AWS::Region"
          ANALYTICSURI: "https://[[apigw]]/v1/track"
      Code:
        ZipFile: |
          # Dependencies
          from os import environ
          import cfnresponse
          import boto3
          import urllib3
          import json
          import datetime
          import time

          print("[INFO]", "Initialize function")
          session = boto3.session.Session(region_name=environ["REGION"])
          ide = session.resource('ec2')
          ec2 = session.client('ec2')
          ssm = session.client('ssm')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/lab_template.yml [1329:1367]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                Resource: "*"
      Tags:
        - Key: Name
          Value: !If [ condEventEngine, !Sub "auroralab-support-${AWS::Region}", !Sub "${AWS::StackName}-support-${AWS::Region}" ]

## Create Lambda function to implement support operations
  funcLabSupport:
    Type: "AWS::Lambda::Function"
    DependsOn: [ c9ClientIDE ]
    Properties:
      FunctionName: !If [ condEventEngine, "auroralab-support", !Sub "${AWS::StackName}-support" ]
      Description: "Custom Resource to provide support operations for the Aurora MySQL labs."
      Handler: "index.handler"
      Role: !GetAtt roleLabSupport.Arn
      Runtime: "python3.8"
      Timeout: 600
      Tags:
        - Key: Name
          Value: !If [ condEventEngine, "auroralab-support", !Sub "${AWS::StackName}-support" ]
      Environment:
        Variables:
          REGION: !Ref "AWS::Region"
          ANALYTICSURI: "https://[[apigw]]/v1/track"
      Code:
        ZipFile: |
          # Dependencies
          from os import environ
          import cfnresponse
          import boto3
          import urllib3
          import json
          import datetime
          import time

          print("[INFO]", "Initialize function")
          session = boto3.session.Session(region_name=environ["REGION"])
          ide = session.resource('ec2')
          ec2 = session.client('ec2')
          ssm = session.client('ssm')
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



