Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
FS-3089 - Add SQS and amendments to environment
Browse files Browse the repository at this point in the history
  • Loading branch information
robk-dluhc committed Sep 13, 2023
1 parent 44c61af commit 8e8f3b4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
12 changes: 11 additions & 1 deletion copilot/environments/addons/assessment-import-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Resources:
AssessmentImportQueue:
Type: AWS::SQS::Queue
Properties:
QueueName: !Sub ${FifoQueueName}.fifo
QueueName: !Sub ${FifoQueueName}-${Env}.fifo
FifoQueue: true
RedrivePolicy:
deadLetterTargetArn: !GetAtt DeadLetterQueue.Arn
Expand All @@ -23,18 +23,28 @@ Resources:
Type: AWS::SQS::Queue
Properties:
FifoQueue: true
QueueName: !Sub ${FifoQueueName}-${Env}-deadletter.fifo



Outputs:
AssessmentImportQueueURL:
Description: Queue URL for Fifo queue
Value: !Ref AssessmentImportQueue
Export:
Name: !Sub ${App}-${Env}-AssessmentImportQueueURL
AssessmentImportQueueArn:
Description: Queue Arn for FIFO queue
Value: !GetAtt AssessmentImportQueue.Arn
Export:
Name: !Sub ${App}-${Env}-AssessmentImportQueueArn
DeadLetterQueueURL:
Description: "URL of dead-letter queue"
Value: !Ref DeadLetterQueue
Export:
Name: !Sub ${App}-${Env}-DeadLetterQueueURL
DeadLetterQueueARN:
Description: "ARN of dead-letter queue"
Value: !GetAtt DeadLetterQueue.Arn
Export:
Name: !Sub ${App}-${Env}-DeadLetterQueueARN
3 changes: 2 additions & 1 deletion copilot/environments/addons/form-uploads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Resources:
Type: AWS::S3::Bucket
Properties:
AccessControl: Private
BucketName: !Sub fsd-form-uploads-${Env}
BucketEncryption:
ServerSideEncryptionConfiguration:
- ServerSideEncryptionByDefault:
Expand Down Expand Up @@ -52,7 +53,7 @@ Outputs:
Description: "The name of a user-defined bucket."
Value: !Ref FormUploadsBucket
Export:
Name: !Sub fsd-form-uploads-${Env}
Name: !Sub ${App}-${Env}-FormUploadsBucket
FormUploadsBucketARN:
Description: "The ARN of the form-uploads bucket."
Value: !GetAtt FormUploadsBucket.Arn
Expand Down
4 changes: 4 additions & 0 deletions copilot/environments/addons/funding-service-magic-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ Outputs:
RedisEndpoint:
Description: The endpoint of the redis cluster
Value: !GetAtt 'Redis.RedisEndpoint.Address'
Export:
Name: !Sub ${App}-${Env}-RedisEndpoint
RedisInstanceURI:
Description: "The URI of the redis cluster."
Value:
Expand All @@ -91,3 +93,5 @@ Outputs:
- PASSWORD: !Join [ "", [ '{{resolve:secretsmanager:', !Ref 'RedisSecret', ":SecretString:password}}" ]]
HOSTNAME: !GetAtt 'Redis.RedisEndpoint.Address'
PORT: !GetAtt 'Redis.RedisEndpoint.Port'
Export:
Name: !Sub ${App}-${Env}-RedisInstanceURI

0 comments on commit 8e8f3b4

Please sign in to comment.