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

Is it possible to use this container if the profile that I want to use locally has MFA enabled? #238

Open
gillespied opened this issue Mar 30, 2023 · 0 comments

Comments

@gillespied
Copy link

I've very modified the example to use a profile from my local config:

    environment:
      # define the home folder; credentials will be read from $HOME/.aws
      HOME: "/home"
      # You can change which AWS CLI Profile is used
      AWS_PROFILE: "assumed-profile"

To authenticate as assumed profile at the command line I would need to provide an MFA code. My config looks something like:

[profile assumed_profile]
role_arn = arn:aws:iam::etc
mfa_serial = arn:aws:iam::etc
source_profile = default
region = eu-west-2
output = json

Running my docker compose file now I get the error:

Failed to create Credentials Service: AssumeRoleTokenProviderNotSetError: assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.

How do i tell the local endpoint the MFA code so that it can assume the role?

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

1 participant