https://pulumi.com logo
#general
Title
# general
w

white-balloon-205

09/04/2018, 10:29 PM
@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

microscopic-florist-22719

09/04/2018, 10:37 PM
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

acceptable-lunch-36051

09/04/2018, 10:42 PM
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

microscopic-florist-22719

09/04/2018, 10:46 PM
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

acceptable-lunch-36051

09/04/2018, 10:54 PM
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

microscopic-florist-22719

09/04/2018, 10:54 PM
Okay, that's a bummer.
Looks like there is not a workaround at the moment, then.
a

acceptable-lunch-36051

09/04/2018, 10:55 PM
No worries, thanks for having a look
b

big-piano-35669

09/05/2018, 3:53 AM
We will see what we can do this week on this one.