Skip to content

Commit a21797f

Browse files
committed
Updates to instructions.
1 parent 8b09218 commit a21797f

1 file changed

Lines changed: 24 additions & 6 deletions

File tree

  • python/cross_service/topics_and_queues

python/cross_service/topics_and_queues/README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,35 @@ When you are done posting messages, the application polls the queues and display
134134
* 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).
135135
* 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).
136136

137-
## Run the examples
137+
## Prerequisites
138138

139-
### Prerequisites
139+
For general prerequisites, see the [README](../../README.md#prerequisites) in the `python` folder.
140140

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
143142

143+
The requirements for this example are listed in the accompanying `requirements.txt` file.
144144

145-
### Instructions
145+
Install the requirements by running the following in a virtual environment:
146146

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.
147166

148167
Running this example requires AWS Identity and Access Management (IAM) permissions for both SNS and SQS.
149168

@@ -153,4 +172,3 @@ Running this example requires AWS Identity and Access Management (IAM) permissio
153172
* [Amazon SNS API Reference](https://docs.aws.amazon.com/sns/latest/api/welcome.html)
154173
* [Amazon SQS Developer Guide](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html)
155174
* [Amazon SQS API Reference](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html)
156-

0 commit comments

Comments
 (0)