sparse-intern-71089
01/03/2024, 12:41 PMlittle-cartoon-10569
01/07/2024, 9:12 PMgreat-sunset-355
01/08/2024, 7:38 AMInput
. The problem is with the rest of the parameters eg. AccessKeyId
, SecretAccessKey
because they are only available after the role assumption.
I want to pass in a dedicated AWS provider for the resources and create a client from its credentials.little-cartoon-10569
01/08/2024, 6:16 PMaws sso
, or similar).clever-sunset-76585
01/31/2024, 3:49 AMI want to pass in a dedicated AWS provider for the resources and create a client from its credentials.You can assume a role using the AWS SDK too, so you don't have to pass in a Pulumi AWS provider object. Instead, just pass the role ARN, then execute an assume role action using the client within the dynamic provider. Also re: the region input value, not sure if you know this already but the dynamic provider's methods will get unwrapped values of the dynamic resource's inputs at runtime. So you just need to declare a version of the inputs interface you are using that uses primitive types. For example, see https://github.com/pulumi/examples/blob/master/classic-azure-ts-dynamicresource/cdnCustomDomain.ts#L29.