automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/step_3_stepfunctions_reinvent_workshop.yml [192:215]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: "AWS::Lambda::Function"
    Properties:
      Handler: index.lambda_handler
      Role: !GetAtt LambdaExecutionRole.Arn
      Runtime: python3.6
      Timeout: 25
      VpcConfig:
        SubnetIds: 
          - 
            Fn::ImportValue:
              !Sub "${ESStackName}-PrivateSubnetA" 
          - 
            Fn::ImportValue:
              !Sub "${ESStackName}-PrivateSubnetB" 
        SecurityGroupIds:
          - 
            Fn::ImportValue:
              !Sub "${ESStackName}-ESLambdaSecurityGroup" 
      Code:
        ZipFile: |
          import boto3
          cfnclient = boto3.client('cloudformation')
          def lambda_handler(event, context):
              stackname = event['ResourceStack']['StackName']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



automated-actions/AWS_EBS_VOLUME_LOST/stepbystep/step_3_stepfunctions_reinvent_workshop.yml [349:372]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Type: "AWS::Lambda::Function"
    Properties:
      Handler: index.lambda_handler
      Role: !GetAtt LambdaExecutionRole.Arn
      Runtime: python3.6
      Timeout: 25
      VpcConfig:
        SubnetIds: 
          - 
            Fn::ImportValue:
              !Sub "${ESStackName}-PrivateSubnetA" 
          - 
            Fn::ImportValue:
              !Sub "${ESStackName}-PrivateSubnetB" 
        SecurityGroupIds:
          - 
            Fn::ImportValue:
              !Sub "${ESStackName}-ESLambdaSecurityGroup" 
      Code:
        ZipFile: |
          import boto3
          cfnclient = boto3.client('cloudformation')
          def lambda_handler(event, context):
              stackname = event['ResourceStack']['StackName']
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



