From 783e128151f5ded3f09413dc62112a8f5b5ae635 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Tue, 3 Dec 2024 10:25:38 +0000 Subject: [PATCH] Allow assessment-store to write to notification queue --- .../addons/notificatio-queue.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 copilot/fsd-assessment-store/addons/notificatio-queue.yml diff --git a/copilot/fsd-assessment-store/addons/notificatio-queue.yml b/copilot/fsd-assessment-store/addons/notificatio-queue.yml new file mode 100644 index 00000000..b609e782 --- /dev/null +++ b/copilot/fsd-assessment-store/addons/notificatio-queue.yml @@ -0,0 +1,29 @@ +Parameters: + App: + Type: String + Description: Your application's name. + Env: + Type: String + Description: The environment name your service, job, or workflow is being deployed to. + Name: + Type: String + Description: The name of the service, job, or workflow being deployed. + +Resources: + NotificationQueuePolicy: + Type: AWS::IAM::ManagedPolicy + Properties: + PolicyDocument: + Version: "2012-10-17" + Statement: + - Sid: NotificationQueuePolicy + Effect: Allow + Action: + - sqs:SendMessage + Resource: + - Fn::ImportValue: !Sub ${App}-${Env}-NotificationQueueArn + +Outputs: + NotificationQueuePolicyArn: + Description: "The ARN of the ManagedPolicy to attach to the task role." + Value: !Ref NotificationQueuePolicy