The main account owner must complete the following steps to create a Role with administrative access and assign that Role to the Cloud9 instance.
In this step, you will create an IAM Role and assign it administrative access permissions (via a Policy), and then configure your Cloud9 to use that Role for the remainder of this workshop.
Open your Cloud9 environment, and click on the top edge of the content pane to show the Cloud9 menu if not visible.
Choose the gear icon in top right corner to open the Preferences tab.
In the Prefereneces tab, choose AWS SETTINGS.
Turn off AWS managed temporary credentials
Close the Preferences tab.
Remove any existing credentials file by copying, pasting and executing the following commands in a terminal on your Cloud9 instance.
rm -vf ${HOME}/.aws/credentials
export AWS_REGION=$(curl --silent http://169.254.169.254/latest/meta-data/placement/region)
aws configure set default.region ${AWS_REGION}
aws configure get default.region