Skip to content

Commit 51f81e8

Browse files
Update README
1 parent a024e42 commit 51f81e8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,27 +128,26 @@ console or by running `aws iot describe-endpoint` in the AWS CLI
128128

129129
A sample Docker environment file has been included if you choose to run the client in Docker.
130130

131-
Finally, you'll need to download the Amazon Root CA server certificate from [here](https://www.amazontrust.com/repository/AmazonRootCA1.pem).
132-
Make sure to store it in the same directory as the IoT Client. It's especially important to make sure to do this *before*
133-
you build your Docker image if that's the runtime you choose to use.
134-
135131
#### Option A - Running natively in Python:
136132

137-
You'll need to make sure the correct environment variables mentioned above are configured. The exact commands to do
133+
1. Download the AWS IoT CA server certificate from [here](https://www.amazontrust.com/repository/AmazonRootCA1.pem) and
134+
store it in `client` directory. This will be used by the IoT client to trust the AWS IoT Core Device Gateway.
135+
136+
2. Make sure the correct environment variables mentioned above are configured. The exact commands to do
138137
this might vary slightly between operating systems and runtime environments. But generally in standard Linux/Unix shells
139138
it's accomplished by running `$ export <KEY>=<VALUE>` for each environment variable.
140139

141-
With environment variables set, you're ready to start the client. The Python client requires no arguments passed to it.
140+
3. With environment variables set, you're ready to start the client. The Python client requires no arguments passed to it.
142141

143142
`python iot_client.py`
144143

145144
#### Option B - Running in Docker
146145

147-
For running with docker, you'll need to build the container locally using the included Dockerfile.
146+
1. For running with docker, you'll need to build the container locally using the included Dockerfile.
148147

149148
`docker build -t <use any image tag name here> .`
150149

151-
Make sure the previously mentioned environment file has the correct values set and then `docker run` with the following command:
150+
2. Make sure the previously mentioned environment file has the correct values set and then `docker run` with the following command:
152151

153152
`docker run -p 5000:5000 --env-file docker.env -it <image tag>`
154153

0 commit comments

Comments
 (0)