Skip to content

Commit

Permalink
wip resources for queues and lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
TobySaundersGDS committed Jan 26, 2023
1 parent 04a3a21 commit 93fb346
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions deploy-delete-user-data/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ Resources:
#DeliveryPolicy:
Endpoint: !GetAtt DeleteUserDataFunction.Arn
Protocol: lambda
#RedrivePolicy: !Sub | #https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-dead-letter-queue-redrive.html
# { "deadLetterTargetArn": "!Ref DeleteAccountSNSDeadLetterQueue" }
RedrivePolicy: !Sub "{ \"deadLetterTargetArn\": \"arn:aws:sqs:${AWS::Region}:${AWS::AccountId}:DeleteAccountSNSDLQ\" }"

TopicArn:
!If
- IsBuild
Expand All @@ -108,8 +108,16 @@ Resources:
Properties:
TopicName: !Sub BuildOnlyDeleteAccountSNSTopic-${Environment}

#
#DLQ for SNS Subsciption
#DLQ for SNS Subsciption
DeleteAccountSNSDLQ:
Type: AWS::SQS::Queue
Properties:
MessageRetentionPeriod: 1209600
#RedriveAllowPolicy:
# redrivePermission : byQueue
# sourceQueueArns : !Ref DeleteAccountSNSSubscription
QueueName: DeleteAccountSNSDLQ

#DLQ for Lambda
#Alarm for DLQ
#Alarm for other DLQ
Expand Down

0 comments on commit 93fb346

Please sign in to comment.