Skip to content

Can't find credentials when using role_arn in INI #733

@Octogonapus

Description

@Octogonapus

I'll have time to work on this later but filing this for now.

# ~/.aws/credentials
[default]
role_arn=arn:aws:iam::foo:bar:baz
source_profile=jump

[jump]
aws_access_key_id=xxx
aws_secret_access_key=xxx

# ~/.aws/credentials
[default]
region = xxx

The AWS CLI correctly uses jump to assume the role in default, but this package throws an error:

julia> aws_config = AWS.AWSConfig()
ERROR: Can't find AWS credentials!

Stacktrace:
 [1] AWSCredentials(; profile::Nothing, throw_cred_error::Bool)
   @ AWS ~/.julia/packages/AWS/ZEOyZ/src/AWSCredentials.jl:145
 [2] AWSCredentials
   @ ~/.julia/packages/AWS/ZEOyZ/src/AWSCredentials.jl:113 [inlined]
 [3] AWSConfig()
   @ AWS ~/.julia/packages/AWS/ZEOyZ/src/AWSConfig.jl:32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions