Use AWS on the command line
- Access to the GOV.UK AWS Accounts (If you haven’t done so before, set up your AWS access)
- Installed the AWS Command Line Interface
- You can find the
role_arnin the “Role ARN” table
- You can find your
mfa_serialunder “Assigned MFA device” in your user profile in the AWS Console, under the IAM service:
[profile govuk-<environment>] source_profile = gds role_arn = <Role ARN> mfa_serial = <MFA ARN> [profile gds] region = eu-west-1 mfa_serial = <MFA ARN>
First, create a pair of access keys.
[gds] aws_access_key_id = <access key id> aws_secret_access_key = <secret access key>
3. Test it! 🚀
To test your configuration run:
aws --profile govuk-integration s3 ls
You should be prompted for an MFA token. If successful, you should receive some output.