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

boundless-coat-60947

08/14/2019, 8:17 PM
Hello - new to Pulumi. Trying to Build a new IAM Policy Statement using the IP Address conditions. Pulumi doesn’t want to assign the array to the ConditionArguments.
nable to compile TypeScript: s3/index.ts(228,9): error TS2322: Type ‘{ “NotIPAddress”: { “awsSourceIp” string[]; }; }’ is not assignable to type ‘Conditions | Promise<Conditions> | OutputInstance<Conditions> | undefined’. Type ‘{ “NotIPAddress”: { “awsSourceIp” string[]; }; }’ is not assignable to type ‘Conditions’. Property ‘“NotIPAddress”’ is incompatible with index signature. Type ‘{ “awsSourceIp” string[]; }’ is not assignable to type ‘ConditionArguments’. Property ‘“aws:SourceIp”’ is incompatible with index signature. Type ‘string[]’ is not assignable to type ‘Input<string>’. Type ‘string[]’ is not assignable to type ‘string’.
Is this a bug, or am I just not understanding this interface?
Looks like this https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/iam/documents.ts#L115 is limiting the ConditionArguments to a single String Value
l

lemon-spoon-91807

08/14/2019, 10:18 PM
Looks like a good catch @boundless-coat-60947
Would you be willing to file a bug on this over at github.com/pulumi/aws? If not, i can do it for you!
b

boundless-coat-60947

08/15/2019, 3:46 PM
Yep - I’ll get it filed. Thanks for giving it another set of eyes.
2 Views