Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add role assumption utils in path #2

Open
shortjared opened this issue Nov 2, 2016 · 1 comment
Open

Add role assumption utils in path #2

shortjared opened this issue Nov 2, 2016 · 1 comment

Comments

@shortjared
Copy link
Contributor

This is a script we have to use currently in a CI script. Gross.

    if [ -n "${MFA_TOKEN}" ]
    then
      AWS_ACCESS_KEY_ID='${PROD_DEPLOY_ACCESS_KEY_ID}'
      AWS_SECRET_ACCESS_KEY='${PROD_DEPLOY_SECRET_ACCESS_KEY}'
    
      CREDS=(`aws sts assume-role --role-arn "$ARN" --role-session-name "ci-role-assumption" --duration-seconds 1800 --serial-number $PROD_DEPLOY_TOKEN_SERIAL --token-code $MFA_TOKEN --query '[Credentials.AccessKeyId,Credentials.SecretAccessKey,Credentials.SessionToken]' --output text`)
    
      AWS_DEFAULT_REGION='us-east-1'
      AWS_ACCESS_KEY_ID='${CREDS[0]}'
      AWS_SECRET_ACCESS_KEY='${CREDS[1]}'
      AWS_SESSION_TOKEN='${CREDS[2]}'  
    fi
@hauboldj
Copy link
Contributor

So I'm thinking that we update awsume to include this functionality and then include awsume

@lpearson-trek10 lpearson-trek10 added this to the v9.0 milestone Dec 17, 2020
@lpearson-trek10 lpearson-trek10 removed this from the v9.0 milestone Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants