@@ -128,27 +128,26 @@ console or by running `aws iot describe-endpoint` in the AWS CLI
128128
129129A 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
138137this might vary slightly between operating systems and runtime environments. But generally in standard Linux/Unix shells
139138it'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