Skip to content

Commit

Permalink
chore(manifest): use COPILOT_QUEUE_URIS in worker svc manifest (aws#2772
Browse files Browse the repository at this point in the history
)

<!-- Provide summary of changes -->

<!-- Issue number, if available. E.g. "Fixes aws#31", "Addresses aws#42, 77" -->

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
  • Loading branch information
iamhopaul123 authored and thrau committed Dec 9, 2022
1 parent 0e3030a commit 3ff5a32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/pkg/manifest/testdata/worker-svc-nosubscribe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ memory: 512 # Amount of memory in MiB used by the task.
count: 1 # Number of tasks that should be running in your service.
exec: true # Enable running commands in your container.
# You can register to topics from other services.
# The events will be available in an SQS queue via the env var $COPILOT_SQS_QUEUE_ARN
# The events will be available in an SQS queue via the env var $COPILOT_QUEUE_URIS
# subscribe:
# topics:
# - name: topic-from-another-service
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/manifest/testdata/worker-svc-subscribe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cpu: 256 # Number of CPU units for the task.
memory: 512 # Amount of memory in MiB used by the task.
count: 1 # Number of tasks that should be running in your service.
exec: true # Enable running commands in your container.
# The events will be available in an SQS queue via the env var $COPILOT_SQS_QUEUE_ARN
# The events will be available in an SQS queue via the env var $COPILOT_QUEUE_URIS
subscribe:
topics:
- name: testTopic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ platform: {{.Platform}}
count: {{.Count.Value}} # Number of tasks that should be running in your service.
exec: true # Enable running commands in your container.
{{- if .Subscribe}}{{- if .Subscribe.Topics}}
# The events will be available in an SQS queue via the env var $COPILOT_SQS_QUEUE_ARN
# The events will be available in an SQS queue via the env var $COPILOT_QUEUE_URIS
subscribe:
topics:
{{- range $topic := .Subscribe.Topics}}
Expand All @@ -42,7 +42,7 @@ subscribe:
{{- end}}
{{- else}}
# You can register to topics from other services.
# The events will be available in an SQS queue via the env var $COPILOT_SQS_QUEUE_ARN
# The events will be available in an SQS queue via the env var $COPILOT_QUEUE_URIS
# subscribe:
# topics:
# - name: topic-from-another-service
Expand Down

0 comments on commit 3ff5a32

Please sign in to comment.