Storing the Access Key on Educative and Adding Permissions
Explore how to securely save AWS IAM user access keys on Educative and verify them with AWS CLI commands. Understand the process of assigning necessary permissions to a user group for managing EC2, S3, and SSM services securely. This lesson helps you configure user credentials and permissions to enable AWS resource management using the CLI.
In the last lesson, we created an IAM user and learned how to retrieve the access key and secret access key for it. Now, we need them again to store them on Educative for future use.
Save the access key on Educative
Please retrieve the access key and secret access key for your IAM user. You should have stored them on your computer during the last lesson.
Click the “Edit” button below and enter the access key ID into the “AWS_ACCESS_KEY_ID” field and the secret access key into “AWS_SECRET_ACCESS_KEY.” Leave the “AWS_DEFAULT_REGION” as it is.
It should look like this:
Note that your access key ID and secret access key will look different than the ones in the screenshot.
Now, click the “Save” button.
Click “Click to connect…” to start the terminal.
Type in aws configure list to see if the values you added earlier are being used by the AWS CLI. You should see something like this:
Congratulations, you have used the AWS CLI for the first time!
Update the code widget
While we’re at it, let’s also make sure that the code widget has the environment variables set as well.
Please follow the same steps (by clicking the “Edit” button), and check if the environment variables are set. ...