thousands-telephone-86052
07/02/2019, 4:15 PMwhite-balloon-205
07/02/2019, 5:44 PMthousands-telephone-86052
07/03/2019, 12:58 AMinstanceProfile = aws.iam.InstanceProfile.get(`${name}-instanceProfile`, instanceProfileName, undefined, { parent: parent });
which should not require a role argument, since its only looking up an existing instance profile. But it seems to invoke a "new" on InstanceProfile:
66 /**
67 * Get an existing InstanceProfile resource's state with the given name, ID, and optional extra
68 * properties used to qualify the lookup.
69 *
70 * @param name The _unique_ name of the resulting resource.
71 * @param id The _unique_ provider ID of the resource to lookup.
72 * @param state Any extra arguments used during the lookup.
73 */
74 static get(name, id, state, opts) {
75 return new InstanceProfile(name, state, Object.assign({}, opts, { id: id }));
76 }
ref: https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/iam/instanceProfile.ts#L52white-balloon-205
07/03/2019, 1:07 AMinstanceProfileName
is undefined here? That could lead to this error from this line I believe.thousands-telephone-86052
07/03/2019, 4:00 PM