Skip to content

Add support for AWS_SESSION_TOKEN #13

Open

Description

@dmuth

The environment I am currently in uses temporary credentials, which makes use of a third environment variable: AWS_SESSION_TOKEN.

Is there any chance that support for that could be added in? (I would be happy to test :-)

Thanks,

-- Doug

Activity

  1. evu commented on Jan 10, 2019

    @evu

    Just pass it in to the container with the other variables:

    docker run --rm -t $(tty &>/dev/null && echo "-i") -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}" -e "AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}" -v "$(pwd):/project" mesosphere/aws-cli
    

    Full example script is here, if you're trying to run this on an ec2 using the IAM role:

    https://gist.github.com/evu/136633f81262bb205d0253fd2c2ff38a

  2. jess-belliveau commented on Nov 4, 2020

    @jess-belliveau

    Thanks @evu - confirmed this works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions