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

python aws.Provider wrong key name role_arn #5271

Open
kirillrdy opened this issue Mar 5, 2025 · 1 comment
Open

python aws.Provider wrong key name role_arn #5271

kirillrdy opened this issue Mar 5, 2025 · 1 comment
Labels
awaiting/core Blocked on a missing bug or feature in pulumi/pulumi (except codegen) awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/bug Some behavior is incorrect or out of spec

Comments

@kirillrdy
Copy link

Describe what happened

documentation and example states that

provider = aws.Provider(
assume_role= {
"role_arn": "somerole"
}
);

but this results in error

  error: pulumi:providers:aws resource 'rootAccountProvider' has a problem: unable to validate AWS credentials.
    Details: Cannot assume IAM Role. IAM Role ARN not set in assume role 1 of 1

it works however when key is roleArn

Sample program

provider = aws.Provider(
assume_role= {
"role_arn": "somerole"
}
);

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

warning: using pulumi-language-python from $PATH at /nix/store/8zpv40zlppp57kq69d0szlgnf6p3icc2-pulumi-language-python-3.152.0/bin/pulumi-language-python
CLI
Version 3.152.0
Go Version go1.23.6
Go Compiler gc

Plugins
KIND NAME VERSION
resource aws 6.70.1
language python 3.152.0
resource random 4.18.0

Host
OS nixos
Version 25.05 (Warbler)
Arch x86_64

This project is written in python: executable='venv/bin/python' version='3.12.9'

Found no pending operations associated with production

Dependencies:
NAME VERSION
pulumi_aws 6.70.1
pulumi_random 4.18.0
setuptools 75.8.2
wheel 0.45.1

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@kirillrdy kirillrdy added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Mar 5, 2025
@VenelinMartinov
Copy link
Contributor

Thanks for reporting @kirillrdy and glad you found a workaround.

I've raised an issue with the team maintaining the Python SDKs: pulumi/pulumi#18810

@VenelinMartinov VenelinMartinov added awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). awaiting/core Blocked on a missing bug or feature in pulumi/pulumi (except codegen) and removed needs-triage Needs attention from the triage team labels Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting/core Blocked on a missing bug or feature in pulumi/pulumi (except codegen) awaiting-upstream The issue cannot be resolved without action in another repository (may be owned by Pulumi). kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants