sparse-intern-71089
11/23/2021, 5:35 PMfreezing-van-87649
11/23/2021, 5:38 PMget_caller_identity has an optional opts param, I believe you can explicitly set the provider therefreezing-van-87649
11/23/2021, 5:39 PMci-cd account?
Or should all actions/calls be performed in the target account?nice-father-44210
11/23/2021, 5:42 PMtarget account. I’d just like to have the build machine in ci-cd to use AssumeRole to assume a cross-account admin role in the target account.nice-father-44210
11/23/2021, 5:42 PMtarget account ID in code.nice-father-44210
11/23/2021, 5:43 PMAssumeRole is all taken care of in the CD tool itself. Once Pulumi build starts running, I don’t need any context switching.freezing-van-87649
11/23/2021, 5:44 PMpulumi_aws.get_caller_identity().account_id is returning the ci-cd account id then I think the assume role might not be working?freezing-van-87649
11/23/2021, 5:46 PMassumeRole setting: https://www.pulumi.com/registry/packages/aws/installation-configuration/nice-father-44210
11/23/2021, 5:46 PMnice-father-44210
11/23/2021, 6:36 PMAssumeRole in the CD tool. Using the aws:assumeRole config settings worked like a charm. Thanks!freezing-van-87649
11/23/2021, 6:59 PM