How to access the AWS console¶
Some of our products make use of AWS resources. If they have been configured according to the AWS
guide then they will have a file named .aws-helper.yaml
in the root of
the repository. This guide covers how to access the AWS console for such products.
If you're interested in the rationale and background for how we integrate with AWS, there is a dedicated explainer guide.
Requirements and deliverables¶
Before you start you will need:
- an existing terraform deployment using Google Cloud based on our template,
- AWS configuration for that deployment as per the relevant guide, and
- the ability to access the Google Cloud console for your project with "editor" rights through a gcloudadmin account.
At the end of the process you will have the ability to access the AWS console for each environment.
Install the aws-helper
tool¶
AWS-enabled deployments will have an .aws-helper.yaml
file in the root of the repository which
configures a related aws-helper
tool.
Install pipx
as described in the
guidebook.
Install the most recent version of the aws-helper
tool:
pipx install \
--index-url https://gitlab.developers.cam.ac.uk/api/v4/groups/5/-/packages/pypi/simple \
--pip-args=--upgrade \
aws-helper
Authenticate to Google¶
Authenticate using the same ...@gcloudadmin.g.apps.cam.ac.uk
account which you use to sign in to
the Google Cloud console:
gcloud auth application-default login
Access the AWS console¶
Within the repository you should now be able to open a new browser tab for the AWS console in the "development" environment via:
aws-helper console
Tip
If you are already signed in to the AWS console for a different product or different environment, you need to sign out first.
If you want to access the AWS console for a different environment, use the -e
flag. For example,
to access the "staging" environment:
aws-helper -e staging console
Within the console you can check which environment you are accessing at the top right.
Summary¶
In this guide we covered how to sign in to the AWS console in appropriately configured deployments.