https://pulumi.com logo
Title
d

dry-journalist-60579

02/14/2023, 4:26 AM
Is there any way to chain Role assuming? The max I can seem to do is 2: one in the Pulumi.yaml via the assume_role parameter and the other by creating a provider and passing yet another assume_role. I can’t, however, use a provider to create a provider… are there any other ways to assume a role for the currently running stack?
b

billowy-army-68599

02/15/2023, 5:23 PM
i think you would have to do this outside Pulumi unfortunately, you can only do an assume role once in the provider
i guess you could also use the aws sdk
d

dry-journalist-60579

02/15/2023, 7:12 PM
any general gist of what that would look like?
(and does this change at all between using aws classic an aws native?)
@billowy-army-68599 any advice on how I might leverage the aws sdk for this? Is there a way to do that within the pulumi python file?
b

billowy-army-68599

02/16/2023, 6:56 PM
i’ve never tried it, but it should theoretically be possible. I don’t have any examples no
d

dry-journalist-60579

02/16/2023, 9:00 PM
😬 heh, yeah I’m having trouble even imagining what it would look like… looked at the
pulumi
and
pulumi_aws
source and I don’t think I’ve groked the architecture for comms with the AWS platform