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

cold-coat-35200

11/29/2019, 1:46 PM
Hi, is that normal that the
aws.iam.GroupPolicyAttachment
requires a
pulumi.Input<Group>
and not a
pulumi.Input<string | Group>
like the RolePolicyAttachment? Currently, I want to add a policy attachment to a group, but the group managed outside pulumi, which means I don't have a
Group
resource and I can't get one, because
aws.iam.getGroup
returns a
GetGroupResult
, not a
Group
w

white-balloon-205

11/29/2019, 5:18 PM
That does not sound expected - and we have a design goal to never require only the stronger type. If you can open an issue - @broad-dog-22463 May be interested in taking a look.
b

broad-dog-22463

11/29/2019, 5:19 PM
I can definitely make this change to accept both - this looks like it precedes me but I can go through and loosen any rigidity
c

cold-coat-35200

11/29/2019, 7:24 PM
@white-balloon-205 @broad-dog-22463 here's the opened issue: https://github.com/pulumi/pulumi-aws/issues/808
👍 1