This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
generated from communitiesuk/funding-service-design-TEMPLATE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from communitiesuk/bau/assessment-import-queue
Allow store to write to assessment-import-queue
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
copilot/fsd-application-store/addons/assessment-import-queue.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
AssessmentImportQueuePolicy: | ||
Type: AWS::IAM::ManagedPolicy | ||
Properties: | ||
PolicyDocument: | ||
Version: "2012-10-17" | ||
Statement: | ||
- Sid: AssessmentImportQueuePolicy | ||
Effect: Allow | ||
Action: | ||
- sqs:SendMessage | ||
Resource: | ||
- Fn::ImportValue: !Sub ${App}-${Env}-AssessmentImportQueueArn | ||
|
||
Outputs: | ||
AssessmentImportQueuePolicyArn: | ||
Description: "The ARN of the ManagedPolicy to attach to the task role." | ||
Value: !Ref AssessmentImportQueuePolicy |
29 changes: 29 additions & 0 deletions
29
copilot/fsd-application-store/addons/notification-queue-policy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |