added support for sqs sample ripper when creating new products (#167)

This commit is contained in:
Arwid Thornström
2024-10-10 14:34:29 +02:00
committed by GitHub
parent 3101e04b66
commit 549046096c
8 changed files with 54 additions and 22 deletions
+10
View File
@@ -30,6 +30,10 @@ Parameters:
Type: String
Description: For policy connection the Bernard queue arn is required
SampleRipperQueueArn:
Type: String
Description: For policy connection the Sample Ripper queue arn is required
# CPU
# 256 (.25 vCPU) - Available memory values: 0.5GB, 1GB, 2GB
# 512 (.5 vCPU) - Available memory values: 1GB, 2GB, 3GB, 4GB
@@ -155,6 +159,8 @@ Resources:
ValueFrom: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${EnvironmentName}/INTERIORS_TOKEN'
- Name: 'BERNARD_QUEUE_URL'
ValueFrom: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${EnvironmentName}/sqs/PHOTOWALL_BERNARD_TASKS_QUEUE_URL'
- Name: 'SAMPLE_SQS_QUEUE_URL'
ValueFrom: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/${EnvironmentName}/SAMPLE_RIPPER_QUEUE'
- Name: 'NEW_RELIC_LICENSE_KEY'
ValueFrom: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/newrelic/LICENSE_KEY'
# Send logs to CloudWatch Logs
@@ -213,6 +219,10 @@ Resources:
Action:
- 'sqs:SendMessage'
Resource: !Sub ${BernardQueueArn}
- Effect: Allow
Action:
- 'sqs:SendMessage'
Resource: !Sub ${SampleRipperQueueArn}
# A role for the containers
TaskRole: