Skip to content

QUESTION - Logging through Granted using a centralised account #796

Closed Answered by chrnorm
EloyTolosaDev asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @EloyTolosaDev, yes this is certainly possible with Granted.

To achieve this, you can set your AWS config file up as follows:

# ~/.aws/config
[profile login]
mfa_serial = arn:aws:iam::123456789012:mfa/user

[profile prod]
source_profile = login
role_arn = arn:aws:iam::123456789012:role/prod
# ~/.aws/credentials
[login]
aws_access_key_id=ASIAIOSFODNN7EXAMPLE
aws_secret_access_key=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY

Run granted credentials import login (docs here) to store the access and secret key securely within Granted.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EloyTolosaDev
Comment options

Answer selected by chrnorm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #791 on November 06, 2024 12:26.