diff --git a/copilot/fsd-application-store/addons/assessment-import-queue.yml b/copilot/fsd-application-store/addons/assessment-import-queue.yml new file mode 100644 index 00000000..f5522a1f --- /dev/null +++ b/copilot/fsd-application-store/addons/assessment-import-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: + 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 diff --git a/copilot/fsd-application-store/addons/notification-queue-policy.yml b/copilot/fsd-application-store/addons/notification-queue-policy.yml new file mode 100644 index 00000000..b609e782 --- /dev/null +++ b/copilot/fsd-application-store/addons/notification-queue-policy.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