Skip to content

Commit 0e32c1c

Browse files
authored
docs: minor error on SNS subscription policy v 1.16 blog (#3689)
Filter policy acts at the topic level not queue level https://aws.github.io/copilot-cli/docs/manifest/worker-service/#topic-filter-policy By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
1 parent 7aaef5c commit 0e32c1c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

site/content/blogs/release-v116.en.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,18 @@ subscribe:
154154
topics:
155155
- name: ordersTopic
156156
service: api
157-
queue:
158-
dead_letter:
159-
tries: 5
160-
filter_policy:
157+
filter_policy:
161158
store:
162159
- example_corp
163160
event:
164-
- anything-but: order_canceled
161+
- order_canceled
165162
price_usd:
166163
- numeric:
167164
- ">="
168165
- 100
166+
queue:
167+
dead_letter:
168+
tries: 5
169169
```
170170
171171
With this filter policy in place, Amazon SNS will filter all messages by matching those attributes.

site/content/blogs/release-v116.ja.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,18 @@ subscribe:
157157
topics:
158158
- name: ordersTopic
159159
service: api
160-
queue:
161-
dead_letter:
162-
tries: 5
163-
filter_policy:
160+
filter_policy:
164161
store:
165162
- example_corp
166163
event:
167-
- anything-but: order_canceled
164+
- order_canceled
168165
price_usd:
169166
- numeric:
170167
- ">="
171168
- 100
169+
queue:
170+
dead_letter:
171+
tries: 5
172172
```
173173
174174
このフィルターポリシーを設定すると、Amazon SNS はこれらの属性とのマッチングにより全てのメッセージをフィルターします。

0 commit comments

Comments
 (0)