<@UCK95AFNF> I believe you are hitting a variant o...
# general
w
@acceptable-lunch-36051 I believe you are hitting a variant of https://github.com/pulumi/pulumi-terraform/issues/48.
Unfortunately, I believe this currently prevents the use of the
assumeRole
property. We'll see what we can do to get a nearer term fix for this in.
m
It's possible that setting
assumeRole
to
"{ roleArn: \"arn:aws:iam::XXXXXXXX\" }"
(i.e. the JSON serialization of the value) would work, but I'm not sure.
a
Thanks @white-balloon-205, this does seem to be related
@microscopic-florist-22719 I tried various combinations of string quoting but generally typescript gets upset, I just tried your one but it also doesn't like it
error: [runtime] index.ts(26,35): error TS2345: Argument of type '{ assumeRole: string; region: Region; }' is not assignable to parameter of type 'ProviderArgs'.
m
Oh, interesting. Can you try casting through
any
? e.g.
Copy code
let p = new aws.Provider('audit', <any>{ assumeRole: "{ roleArn: \"arn:aws:iam::XXXXXXXX\" }", region: <aws.Region>region });
a
thanks @microscopic-florist-22719 still learning typescript global: global error: could not validate provider configuration: 1 error(s) occurred: * assume_role.0: expected object, got string
m
Okay, that's a bummer.
Looks like there is not a workaround at the moment, then.
a
No worries, thanks for having a look
b
We will see what we can do this week on this one.