salmon-ghost-86211
03/22/2021, 9:58 PMaws.iam.Group.get
method to get the group, but I'm not sure how to actually access the existing group membership.little-cartoon-10569
03/22/2021, 10:26 PM(new aws.sdk.IAM()).getGroup((_, response) => {
<http://pulumi.log.info|pulumi.log.info>(JSON.stringify(response.Users));
});
salmon-ghost-86211
03/23/2021, 4:39 PMget
method which I tried above AND a getGroup
method. When would I use only get
?little-cartoon-10569
03/23/2021, 7:34 PMget
is a Pulumi object that loads a Pulumi group object. It isn't often useful, but occasionally you want to have a Pulumi object managed in one Project/stack, and used in a different one. This is the method that allows that.getGroup
is a wrapper around the AWS SDK getGroup function. It doesn't return a Pulumi object, it returns a GetGroupResult. It's handy for when you want information about an object that isn't managed by Pulumi, as in this case.salmon-ghost-86211
03/23/2021, 9:49 PMgetGroup
returns a GetGroupResult. I watch closer next time.