cloudformation/function-sep-acc.yaml [15:47]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Resources:
  # ----------
  # DynamoDB
  # ----------
  rScanCodePipelineRulesDynamoDB:
    Type: AWS::DynamoDB::Table
    Properties:
      AttributeDefinitions:
        - AttributeName: RuleNumber
          AttributeType: S
      KeySchema:
        - AttributeName: RuleNumber
          KeyType: HASH
      BillingMode: PAY_PER_REQUEST
      TableName: Scan_CodePipeline_Rules

  # ---------
  # IAM Role
  # ---------
  rScanCodePipelineRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: ScanCodePipeline
      Path: "/"
      AssumeRolePolicyDocument:
        Version: 2012-10-17
        Statement:
          - Effect: Allow
            Principal:
              Service:
                - lambda.amazonaws.com
            Action:
              - sts:AssumeRole
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



cloudformation/function.yaml [7:39]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Resources:
  # ----------
  # DynamoDB
  # ----------
  rScanCodePipelineRulesDynamoDB:
    Type: AWS::DynamoDB::Table
    Properties:
      AttributeDefinitions:
        - AttributeName: RuleNumber
          AttributeType: S
      KeySchema:
        - AttributeName: RuleNumber
          KeyType: HASH
      BillingMode: PAY_PER_REQUEST
      TableName: Scan_CodePipeline_Rules

  # ---------
  # IAM Role
  # ---------
  rScanCodePipelineRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: ScanCodePipeline
      Path: "/"
      AssumeRolePolicyDocument:
        Version: 2012-10-17
        Statement:
          - Effect: Allow
            Principal:
              Service:
                - lambda.amazonaws.com
            Action:
              - sts:AssumeRole
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



