https://pulumi.com logo
#golang
Title
# golang
b

bumpy-bear-61087

10/28/2021, 9:52 AM
Hmm, this error doesn't seem right?
Copy code
_, err = projects.NewOrganizationPolicy(p.ctx, "disallow_iam_external_domains", &projects.OrganizationPolicyArgs{
		Project:    pulumi.String(p.projectID),
		Constraint: pulumi.String("constraints/iam.allowedPolicyMemberDomains"),
		ListPolicy: projects.OrganizationPolicyListPolicyArgs{
			Allow: projects.OrganizationPolicyListPolicyAllowArgs{
				Values: pulumi.ToStringArray([]string{
					p.gcpCustomerID,
				}),
			},
		},
	})

Diagnostics:
  gcp:projects:OrganizationPolicy (disallow_iam_external_domains):
    error: gcp:projects/organizationPolicy:OrganizationPolicy resource 'disallow_iam_external_domains' has a problem: ExactlyOne: "list_policy.0.allow.0.all": only one of `list_policy.0.allow.0.all,list_policy.0.allow.0.values` can be specified, but `list_policy.0.allow.0.all,list_policy.0.allow.0.values` were specified.. Examine values at 'OrganizationPolicy.ListPolicy.Allow[0].All'.
    error: gcp:projects/organizationPolicy:OrganizationPolicy resource 'disallow_iam_external_domains' has a problem: ExactlyOne: "list_policy.0.allow.0.values": only one of `list_policy.0.allow.0.all,list_policy.0.allow.0.values` can be specified, but `list_policy.0.allow.0.all,list_policy.0.allow.0.values` were specified.. Examine values at 'OrganizationPolicy.ListPolicy.Allow[0].Values'.
b

billowy-army-68599

10/28/2021, 2:53 PM
very like a bug @bumpy-bear-61087 - could you open an issue?
b

bumpy-bear-61087

10/28/2021, 7:39 PM
b

billowy-army-68599

10/28/2021, 8:12 PM
@bumpy-bear-61087 is this in the gcp native provider?
3 Views