In this chapter, we will create an IAM user that will allow us to interact from an administrative point of view with the message queue. To avoid friction with this process, let's use the following script: http://bit.ly/2P3Rj6y.
Make sure to download the trust policy file, trust-policy-for-sqs.json, in the same path where you executed the previous shell from: http://bit.ly/2nDrUnM.
It is assumed that the key pair has been configured for the AWS CLI and that you have administrator access to create IAM users. Execute the following command:
chmod +x && ./create-sqs-user-and-role.sh
The script will perform the following tasks:
- Create the sqs-user
- Create a key pair for the sqs-user
- Configure the [sqs-user] profile in ~/.aws/credentials
- Create a service role for EC2
- Create an instance profile for EC2