(Optional) Save the microSD card image - Amazon IoT Core
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

(Optional) Save the microSD card image

At this point, your Raspberry Pi's microSD card has an updated OS, the basic application software, and the Amazon IoT Device Client.

If you want to come back to try these exercises and tutorials again, you can skip the preceding procedures by writing the microSD card image that you save with this procedure to a new microSD card and continue the tutorials from Step 2: Provision your Raspberry Pi in Amazon IoT.

To save the microSD card image to a file:

In the terminal window on your local host computer that's connected to your Raspberry Pi:

  1. Confirm that your Amazon Web Services account credentials have not been stored.

    1. Run the Amazon configure app with this command:

      aws configure
    2. If your credentials have been stored (if they are displayed in the prompt), then enter the XYXYXYXYX string when prompted as shown here. Leave Default region name and Default output format blank.

      AWS Access Key ID [****************YXYX]: XYXYXYXYX AWS Secret Access Key [****************YXYX]: XYXYXYXYX Default region name: Default output format:
  2. Enter this command to shutdown the Raspberry Pi.

    sudo shutdown -h 0
  3. After the Raspberry Pi shuts down completely, remove its power connector.

  4. Remove the microSD card from your device.

  5. On your local host computer:

    1. Insert the microSD card.

    2. Using your SD card imaging tool, save the microSD card’s image to a file.

    3. After the microSD card’s image has been saved, eject the card from the local host computer.

You can continue with this microSD card in Step 2: Provision your Raspberry Pi in Amazon IoT.