Configuring AWS IoT Greengrass on the Snow device
The AWS IoT Greengrass agent can technically run from any computer. It doesn’t matter if it’s a physical or virtual machine, and Greengrass supports a wide range of operating systems. That said, for this exercise, we will be using the AWS IoT Greengrass-validated AMI that you selected to be installed when you ordered the device.
Step 1 – Creating an EC2 keypair on the Snow device
The very first task before launching any EC2 instance is to create a key pair. In this case, we will do it from the CLI and output its contents to a local file. We also want to set the permissions to 600
on the my-keypair.pem
file or SSH will fail later:
aws ec2 create-key-pair \ --key-name my-keypair \ --key-type rsa \ --key-format pem \ --query "KeyMaterial" \ --output text > my-keypair.pem \ &...