AWS credentials for CLIas an environment variable. Execute the given commands in the terminal with correct values (use text editor to populate these field and paste them into terminal) as these values will be used by Greengrass installer later on.
IAM user using AWS IAM Console by going to Cloud9 dashboard and selecting IAM service.
Add userand give User name such as
workshop_user_delete_later, Programmatic access would be sufficient enough.
Attach existing policies
Create policy(this should open up new tab)
Create policyscreen select JSON tab and delete lines 1-4
Add userscreen search for policy name
workshop_policy_delete_laterto attach the policy and create user (If you don’t see above created policy click refresh button)
Here we will set AWS credentials using
aws configure as well as enviroment variable which Greengrass v2 installer will use during install.
On terminal window type
aws configure and populate all the given fields i.e.
> aws configure AWS Access Key ID [None]: xxxxxxxxxxxxxx AWS Secret Access Key [None]: xxxxxxxxxxxxxxxxxxxxxxxxxx Default region name [None]: eu-west-1 Default output format [None]: json
Switching back to Cloud9 window (terminal), Using the details from above populate each parameter i.e. as below
export AWS_DEFAULT_REGION="Region you want to use, e.g.for Ireland: eu-west-1" export AWS_ACCESS_KEY_ID="The AccessKeyId value of the result above" export AWS_SECRET_ACCESS_KEY="The SecretAccessKey value of the result above"
Let’s just check these are all set correctly (you should see values you have set above echoed back):
echo $AWS_DEFAULT_REGION echo $AWS_ACCESS_KEY_ID echo $AWS_SECRET_ACCESS_KEY
You will see parameters being set from what you defined as above.
If you encounter any issues during the workshop, first see if you can find your solution in Troubleshooting section