@@ -2917,7 +2917,7 @@ Resources:
29172917 cfn_nag :
29182918 rules_to_suppress :
29192919 - id : W11
2920- reason : " Role requires * resource access for CloudWatch Metrics and Logs"
2920+ reason : " Role requires * resource access for CloudWatch Metrics and Logs, and MarketPlace Subscriptions "
29212921 - id : W89
29222922 reason : " Function does not require VPC access as it only interacts with AWS services via APIs"
29232923 - id : W92
@@ -2998,6 +2998,13 @@ Resources:
29982998 Resource :
29992999 - !Sub " arn:${AWS::Partition}:bedrock:*::foundation-model/*"
30003000 - !Sub " arn:${AWS::Partition}:bedrock:${AWS::Region}:${AWS::AccountId}:inference-profile/*"
3001+ - Effect : Allow
3002+ Action :
3003+ - aws-marketplace:Subscribe
3004+ - aws-marketplace:Unsubscribe
3005+ - aws-marketplace:ViewSubscriptions
3006+ Resource : " *"
3007+
30013008
30023009 EvaluationFunctionLogGroup :
30033010 Type : AWS::Logs::LogGroup
@@ -3614,6 +3621,21 @@ Resources:
36143621 # Lambda function for agent chat resolver
36153622 AgentChatResolverFunction :
36163623 Type : AWS::Serverless::Function
3624+ Metadata :
3625+ cfn_nag :
3626+ rules_to_suppress :
3627+ - id : W89
3628+ reason : " Function does not require VPC access as it only interacts with AWS services via APIs"
3629+ - id : W92
3630+ reason : " Function does not require reserved concurrency as it scales based on demand"
3631+ - id : W58
3632+ reason : " DLQ not required for AppSeync Resolver function"
3633+ - id : W11
3634+ reason : " Role requires * resource access for Marketplace, CloudWatch Metrics and Logs"
3635+ # checkov:skip=CKV_AWS_116: "DLQ not required for analytics processor as it's invoked asynchronously by request handler with error handling and job status tracking in DynamoDB"
3636+ # checkov:skip=CKV_AWS_117: "Function does not require VPC access as it only interacts with AWS services via APIs"
3637+ # checkov:skip=CKV_AWS_115: "Function does not require reserved concurrency as it scales based on demand"
3638+ # checkov:skip=CKV_AWS_173: "Environment variables do not contain sensitive data - only configuration values like feature flags and non-sensitive settings"
36173639 Properties :
36183640 PermissionsBoundary :
36193641 !If [
@@ -3770,6 +3792,12 @@ Resources:
37703792 Resource :
37713793 - !Sub " arn:${AWS::Partition}:bedrock:*::foundation-model/*"
37723794 - !Sub " arn:${AWS::Partition}:bedrock:${AWS::Region}:${AWS::AccountId}:inference-profile/*"
3795+ - Effect : Allow
3796+ Action :
3797+ - aws-marketplace:Subscribe
3798+ - aws-marketplace:Unsubscribe
3799+ - aws-marketplace:ViewSubscriptions
3800+ Resource : " *"
37733801 - !If
37743802 - HasGuardrailConfig
37753803 - Effect : Allow
@@ -4422,6 +4450,12 @@ Resources:
44224450 Resource :
44234451 - !Sub " arn:${AWS::Partition}:bedrock:*::foundation-model/*"
44244452 - !Sub " arn:${AWS::Partition}:bedrock:${AWS::Region}:${AWS::AccountId}:inference-profile/*"
4453+ - Effect : Allow
4454+ Action :
4455+ - aws-marketplace:Subscribe
4456+ - aws-marketplace:Unsubscribe
4457+ - aws-marketplace:ViewSubscriptions
4458+ Resource : " *"
44254459 - !If
44264460 - HasGuardrailConfig
44274461 - Effect : Allow
@@ -6661,6 +6695,12 @@ Resources:
66616695 Resource :
66626696 - !Sub " arn:${AWS::Partition}:bedrock:*::foundation-model/*"
66636697 - !Sub " arn:${AWS::Partition}:bedrock:${AWS::Region}:${AWS::AccountId}:inference-profile/*"
6698+ - Effect : Allow
6699+ Action :
6700+ - aws-marketplace:Subscribe
6701+ - aws-marketplace:Unsubscribe
6702+ - aws-marketplace:ViewSubscriptions
6703+ Resource : " *"
66646704
66656705 DiscoveryProcessorFunctionLogGroup :
66666706 Type : AWS::Logs::LogGroup
@@ -6683,6 +6723,8 @@ Resources:
66836723 reason : " Function does not require reserved concurrency as it scales based on demand"
66846724 - id : W12
66856725 reason : " Lambda requires CloudWatch logs permissions"
6726+ - id : W11
6727+ reason : " Role requires * resource access for Marketplace and CloudWatch Metrics and Logs"
66866728 # checkov:skip=CKV_AWS_116: "DLQ not required for AppSync resolver function"
66876729 # checkov:skip=CKV_AWS_117: "Function does not require VPC access as it only interacts with AWS services via APIs"
66886730 # checkov:skip=CKV_AWS_115: "Function does not require reserved concurrency as it scales based on demand"
@@ -6739,6 +6781,12 @@ Resources:
67396781 - " bedrock:GetInferenceProfile"
67406782 Resource :
67416783 - !Sub " arn:${AWS::Partition}:bedrock:${AWS::Region}:${AWS::AccountId}:inference-profile/*"
6784+ - Effect : Allow
6785+ Action :
6786+ - aws-marketplace:Subscribe
6787+ - aws-marketplace:Unsubscribe
6788+ - aws-marketplace:ViewSubscriptions
6789+ Resource : " *"
67426790 - !If
67436791 - HasGuardrailConfig
67446792 - Effect : Allow
@@ -6852,6 +6900,12 @@ Resources:
68526900 Resource :
68536901 - !Sub " arn:${AWS::Partition}:bedrock:*::foundation-model/*"
68546902 - !Sub " arn:${AWS::Partition}:bedrock:${AWS::Region}:${AWS::AccountId}:inference-profile/*"
6903+ - Effect : Allow
6904+ Action :
6905+ - aws-marketplace:Subscribe
6906+ - aws-marketplace:Unsubscribe
6907+ - aws-marketplace:ViewSubscriptions
6908+ Resource : " *"
68556909 - Effect : Allow
68566910 Action :
68576911 - cloudwatch:PutMetricData
0 commit comments