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

Commit

Permalink
Merge pull request #541 from communitiesuk/fix/notification-queue
Browse files Browse the repository at this point in the history
Allow assessment-store to write to notification queue
  • Loading branch information
samuelhwilliams authored Dec 3, 2024
2 parents 93c0d67 + 783e128 commit 84f9efe
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions copilot/fsd-assessment-store/addons/notificatio-queue.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 84f9efe

Please sign in to comment.