You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/cross_service/topics_and_queues/README.md
+24-6Lines changed: 24 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,16 +134,35 @@ When you are done posting messages, the application polls the queues and display
134
134
* We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege).
135
135
* This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services).
136
136
137
-
## Run the examples
137
+
## Prerequisites
138
138
139
-
### Prerequisites
139
+
For general prerequisites, see the [README](../../README.md#prerequisites) in the `python` folder.
140
140
141
-
Before using the code examples, first complete the installation and setup steps of [Getting started](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/getting-started.html) in the AWS SDK for
142
-
C++ Developer Guide.
141
+
### Install Python dependencies
143
142
143
+
The requirements for this example are listed in the accompanying `requirements.txt` file.
144
144
145
-
### Instructions
145
+
Install the requirements by running the following in a virtual environment:
146
146
147
+
```
148
+
python -m pip install -r requirements.txt
149
+
```
150
+
151
+
This installs the AWS SDK for Python (Boto3) and other required packages.
152
+
153
+
## Instructions
154
+
155
+
For general instructions to run the examples, see the
156
+
[README](../../README.md#run-the-examples) in the `python` folder.
157
+
158
+
Run this example by running the following command in the folder that contains this README:
159
+
160
+
```
161
+
python topics_and_queues_scenario.py
162
+
```
163
+
164
+
This starts an interactive scenario that walks you through creating topics and queues,
165
+
publishing messages with filters, and viewing the results.
147
166
148
167
Running this example requires AWS Identity and Access Management (IAM) permissions for both SNS and SQS.
149
168
@@ -153,4 +172,3 @@ Running this example requires AWS Identity and Access Management (IAM) permissio
153
172
*[Amazon SNS API Reference](https://docs.aws.amazon.com/sns/latest/api/welcome.html)
0 commit comments