dry-journalist-60579
10/23/2024, 4:40 PMprovider = aws.Provider(
f"Provider: {account.name}",
region="us-east-1",
assume_role={
"roleArn": pulumi.Output.format(
"arn:aws:iam::{0}:role/AWSControlTowerExecution", account.id
),
},
)
They typed dict wants me to do role_arn
but that does not end up working with the provider and I get:
error: pulumi:providers:aws resource 'Provider: xxx' has a problem: unable to validate AWS credentials.
Details: Cannot assume IAM Role. IAM Role ARN not set in assume role 1 of 1
adventurous-butcher-54166
10/24/2024, 10:09 AMassume_role
should be a an instance of ProviderAssumeRoleArgs
or ProviderAssumeRoleArgsDict
where the key name is role_arn
and not roleArn
The following example which demonstrates the usage of args classes and typeddicts passes pyright
pyright .
0 errors, 0 warnings, 0 informations
dry-journalist-60579
10/24/2024, 8:08 PMpulumi up
with that it doesn’t work. It only works with roleArn
as a dict key or by using ProviderAssumeRoleArgs