Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update manifest env var to COPILOT_QUEUE_URI #2779

Merged
merged 1 commit into from
Aug 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion internal/pkg/manifest/testdata/worker-svc-nosubscribe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ 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.

# You can register to topics from other services.
# The events will be available in an SQS queue via the env var $COPILOT_QUEUE_URIS
# The events can be be received from an SQS queue via the env var $COPILOT_QUEUE_URI.
# subscribe:
# topics:
# - name: topic-from-another-service
Expand Down
3 changes: 2 additions & 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,8 @@ 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_QUEUE_URIS

# The events can be be received from an SQS queue via the env var $COPILOT_QUEUE_URI.
subscribe:
topics:
- name: testTopic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ platform: {{.Platform}}
{{- end}}
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_QUEUE_URIS
{{if .Subscribe}}{{- if .Subscribe.Topics}}
# The events can be be received from an SQS queue via the env var $COPILOT_QUEUE_URI.
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_QUEUE_URIS
# The events can be be received from an SQS queue via the env var $COPILOT_QUEUE_URI.
# subscribe:
# topics:
# - name: topic-from-another-service
Expand Down