step-scaling/step-scaling.yaml [28:77]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  MaxKPUs:
    Type: String
    Description: Max KPUs
    Default: 32
  KDAParallelism:
    Type: String
    Description: Initial parallelism
    Default: 1


Resources:

  CustomApplicationAutoScalingServiceRole:
    DependsOn: ScalerApi
    Type: 'AWS::IAM::Role'
    Properties: 
      AssumeRolePolicyDocument: 
        Version: '2012-10-17'
        Statement: 
          - 
            Effect: 'Allow'
            Principal: 
              Service: 
                - 'custom-resource.application-autoscaling.amazonaws.com'
            Action: 
              - 'sts:AssumeRole'
      Path: "/"
      Policies: 
        - 
          PolicyName: 'root'
          PolicyDocument: 
            Version: "2012-10-17"
            Statement: 
              - 
                Effect: 'Allow'
                Action:
                  - 'execute-api:Invoke*'
                  - 'cloudwatch:PutMetricAlarm'
                  - 'cloudwatch:DescribeAlarms'
                  - 'cloudwatch:DeleteAlarms'
                Resource: '*'

  LambdaScaler:
    Type: 'AWS::Serverless::Function'
    Properties:
      Handler: index.lambda_handler
      Runtime: python3.6
      Timeout: 10
      CodeUri: 
        Bucket: !Ref S3BucketLambda
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



targettracking-scaling/targettracking-scaling.yaml [16:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  MaxKPUs:
    Type: String
    Description: Max KPUs
    Default: 32
  KDAParallelism:
    Type: String
    Description: Initial parallelism
    Default: 1


Resources:

  CustomApplicationAutoScalingServiceRole:
    DependsOn: ScalerApi
    Type: 'AWS::IAM::Role'
    Properties: 
      AssumeRolePolicyDocument: 
        Version: '2012-10-17'
        Statement: 
          - 
            Effect: 'Allow'
            Principal: 
              Service: 
                - 'custom-resource.application-autoscaling.amazonaws.com'
            Action: 
              - 'sts:AssumeRole'
      Path: "/"
      Policies: 
        - 
          PolicyName: 'root'
          PolicyDocument: 
            Version: "2012-10-17"
            Statement: 
              - 
                Effect: 'Allow'
                Action:
                  - 'execute-api:Invoke*'
                  - 'cloudwatch:PutMetricAlarm'
                  - 'cloudwatch:DescribeAlarms'
                  - 'cloudwatch:DeleteAlarms'
                Resource: '*'

  LambdaScaler:
    Type: 'AWS::Serverless::Function'
    Properties:
      Handler: index.lambda_handler
      Runtime: python3.6
      Timeout: 10
      CodeUri: 
        Bucket: !Ref S3BucketLambda
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



