Your AWS Cloud9 Environment should be ready. We will now get familiar with it, introduce you the AWS CLI then create an Amazon S3 bucket with the AWS CLI. This bucket will be used at the next stage.
The AWS Cloud9 IDE is similar to a traditional IDE you can find on virtually any system. It is composed of a file browser, listing the files located on your instances. A series of tabs with opened files is located at the top and terminal tabs at the bottom. Tabs can be maximized to the internet browser windows size if necessary.
Before going to the next steps we will update the AWS CLI. AWS Cloud9 should be coming with the latest version but it it always a good practice to verify you are at the latest version.. The AWS CLI allow you to manage services using the command line and, should you want it, control them through scripts. Most users will conduct some level of automation with the AWS CLI.
Each code section contains a copy button. Use it to your advantage to quickly copy the command(s) to your clipboard.
Go to a Terminal page and type the command below to update the AWS CLI should update itself if necessary. You will see a warning message asking you to upgrade PIP, we won’t bother to address it.
pip-3.6 install awscli -U --user
Then use the commands below to display the general AWS CLI help, the help related to Amazon EC2 commands, the list of your existing instances with their key characteristics and the list of your registered SSH key-pairs. Type q to exit the help pages.
aws ec2 help
aws ec2 describe-instances
aws ec2 describe-key-pairs
Next we will use the AWS CLI to interact with S3.
If you are seeing a message telling you to upgrade PIP, just ignore it.