aws-auditmanager-conformancepack/cft/aws-auditmanager-confpack.yml [26:75]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    MinLength: '1'
    MaxLength: '255'

Resources:

#---------------------------------------------------------------------------------------------------
#
#  1- Create Custom Audit Manager Control Sets based on AWS Config Conformance Pack checks
#  2- Create Custom Audit Manager Framework based on custom Audit Manager control set
# --------------------------------------------------------------------------------------------------

#Custom Lambda backed Resource for creating the Custom Audit Manager Framework
  CreateCustomAuditManagerFramework:
    Type: 'Custom::CreateCustomAuditManagerFramework'
    DependsOn:
      - CustomAuditManagerFrameworkExecutePermission
    Properties:
      ServiceToken: !GetAtt 'CustomAuditManagerFrameworkLambda.Arn'
      SourceAccountId: !Ref 'AWS::AccountId'

#Permission for CFN to invoke custom lambda backed resource
  CustomAuditManagerFrameworkExecutePermission:
    Type: 'AWS::Lambda::Permission'
    Properties:
      Action: 'lambda:InvokeFunction'
      FunctionName: !GetAtt 'CustomAuditManagerFrameworkLambda.Arn'
      Principal: 'cloudformation.amazonaws.com'
      SourceAccount: !Ref 'AWS::AccountId'

#Lambda Function that creates the custom Audit Manager framework
  CustomAuditManagerFrameworkLambda:
    Type: 'AWS::Lambda::Function'
    Properties:
      FunctionName: !Join
        - ''
        - - CustomAuditManagerFramework_
          - Lambda
      Role: !GetAtt CustomAuditManagerFrameworkLambdaRole.Arn
      Code:
        S3Bucket: !Ref SourceBucket
        S3Key: !Join
          - ''
          - - CustomAuditManagerFramework_Lambda
            - /
            - CustomAuditManagerFramework_Lambda
            - .zip
      Description: CustomAuditManagerFrameworkLambda
      Handler: CustomAuditManagerFramework_Lambda.lambda_handler
      MemorySize: '256'
      Runtime: python3.7
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-auditmanager-securityhub/cft/aws-auditmanager-securityhub.yml [19:69]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    MinLength: '1'
    MaxLength: '255'

Resources:

#---------------------------------------------------------------------------------------------------
#  
#  1- Create Custom Audit Manager Control Sets for IAM, API and Network Monitoring 
#     based on Security Hub checks across PCI,CIS and FSBP frameworks
#  2- Create Custom Audit Manager Framework based on custom Audit Manager control set
# --------------------------------------------------------------------------------------------------

#Custom Lambda backed Resource for creating the Custom Audit Manager Framework 
  CreateCustomAuditManagerFramework:
    Type: 'Custom::CreateCustomAuditManagerFramework'
    DependsOn:
      - CustomAuditManagerFrameworkExecutePermission
    Properties:
      ServiceToken: !GetAtt 'CustomAuditManagerFrameworkLambda.Arn'
      SourceAccountId: !Ref 'AWS::AccountId'

#Permission for CFN to invoke custom lambda backed resource
  CustomAuditManagerFrameworkExecutePermission:
    Type: 'AWS::Lambda::Permission'
    Properties:
      Action: 'lambda:InvokeFunction'
      FunctionName: !GetAtt 'CustomAuditManagerFrameworkLambda.Arn'
      Principal: 'cloudformation.amazonaws.com'
      SourceAccount: !Ref 'AWS::AccountId'

#Lambda Function that creates the custom Audit Manager framework
  CustomAuditManagerFrameworkLambda:
    Type: 'AWS::Lambda::Function'
    Properties:
      FunctionName: !Join 
        - ''
        - - CustomAuditManagerFramework_
          - Lambda
      Role: !GetAtt CustomAuditManagerFrameworkLambdaRole.Arn
      Code:
        S3Bucket: !Ref SourceBucket
        S3Key: !Join 
          - ''
          - - CustomAuditManagerFramework_Lambda
            - /
            - CustomAuditManagerFramework_Lambda
            - .zip
      Description: CustomAuditManagerFrameworkLambda
      Handler: CustomAuditManagerFramework_Lambda.lambda_handler
      MemorySize: '256'
      Runtime: python3.7
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



