Skip to content

Commit

Permalink
Correctly set parent for FunctionIamMember in CallbackFunction.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Stokes authored Mar 22, 2021
1 parent fcc6085 commit 4d136cd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sdk/nodejs/cloudfunctions/zMixins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ export class CallbackFunction extends pulumi.ComponentResource {

role: utils.ifUndefined(args.iamRole, "roles/cloudfunctions.invoker"),
member: utils.ifUndefined(args.iamMember, "allUsers")
}, {
...parentOpts,
/**
* This alias exists to be backwards compatible for previous versions that did
* not set a parent on this resource.
* https://github.com/pulumi/pulumi-gcp/issues/543
*/
aliases: [{ parent: undefined }],
});

this.registerOutputs();
Expand Down

0 comments on commit 4d136cd

Please sign in to comment.