@@ -412,6 +412,14 @@ Resources:
412
412
Action :
413
413
- ' sts:AssumeRole'
414
414
Policies :
415
+ - PolicyName : !Sub '${pSRASolutionName}-DLQAccess'
416
+ PolicyDocument :
417
+ Version : " 2012-10-17"
418
+ Statement :
419
+ - Effect : Allow
420
+ Action :
421
+ - sqs:SendMessage
422
+ Resource : !GetAtt rBedrockOrgDLQ.Arn
415
423
- PolicyDocument :
416
424
Version : ' 2012-10-17'
417
425
Statement :
@@ -615,6 +623,11 @@ Resources:
615
623
616
624
rBedrockOrgLambdaFunction :
617
625
Type : AWS::Lambda::Function
626
+ Metadata :
627
+ checkov :
628
+ skip :
629
+ - id : CKV_AWS_117
630
+ comment : " This Lambda does not require VPC access as it only interacts with public AWS services."
618
631
Properties :
619
632
FunctionName : !Ref pSRASolutionName
620
633
Runtime : python3.12
@@ -628,7 +641,10 @@ Resources:
628
641
S3Key : !Sub ${pSRASolutionName}/lambda_code/${pSRASolutionName}.zip
629
642
Timeout : 900
630
643
MemorySize : 512
631
-
644
+ ReservedConcurrentExecutions : 10
645
+ DeadLetterConfig :
646
+ TargetArn : !GetAtt rBedrockOrgDLQ.Arn
647
+
632
648
rBedrockOrgLambdaCustomResource :
633
649
Type : Custom::LambdaCustomResource
634
650
Properties :
@@ -667,6 +683,16 @@ Resources:
667
683
Principal : cloudformation.amazonaws.com
668
684
SourceArn : !Sub 'arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:stackSet/${AWS::StackName}/*'
669
685
686
+ rBedrockOrgDLQ :
687
+ Type : AWS::SQS::Queue
688
+ DeletionPolicy : Delete
689
+ UpdateReplacePolicy : Delete
690
+ Properties :
691
+ QueueName : !Sub "${pSRASolutionName}-DLQ"
692
+ KmsMasterKeyId : alias/aws/sqs
693
+ MessageRetentionPeriod : 1209600 # 14 days
694
+
695
+
670
696
Outputs :
671
697
BedrockOrgLambdaFunctionArn :
672
698
Description : ARN of the Lambda function
0 commit comments