diff --git a/internal/pkg/manifest/testdata/worker-svc-nosubscribe.yml b/internal/pkg/manifest/testdata/worker-svc-nosubscribe.yml index 9ab9989c1e8..092fdba720c 100644 --- a/internal/pkg/manifest/testdata/worker-svc-nosubscribe.yml +++ b/internal/pkg/manifest/testdata/worker-svc-nosubscribe.yml @@ -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 diff --git a/internal/pkg/manifest/testdata/worker-svc-subscribe.yml b/internal/pkg/manifest/testdata/worker-svc-subscribe.yml index df82c8b1d48..4be4e5622b4 100644 --- a/internal/pkg/manifest/testdata/worker-svc-subscribe.yml +++ b/internal/pkg/manifest/testdata/worker-svc-subscribe.yml @@ -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 diff --git a/internal/pkg/template/templates/workloads/services/worker/manifest.yml b/internal/pkg/template/templates/workloads/services/worker/manifest.yml index 5b85dc092f0..dae01f2ec18 100644 --- a/internal/pkg/template/templates/workloads/services/worker/manifest.yml +++ b/internal/pkg/template/templates/workloads/services/worker/manifest.yml @@ -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}} @@ -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