Hello - new to Pulumi. Trying to Build a new IAM ...
# general
b
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
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
Yep - I’ll get it filed. Thanks for giving it another set of eyes.