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

crooked-kitchen-90092

03/22/2024, 2:51 PM
the AWS native IAM docs seem to use
pulumi.Any{}
incorrectly, as this throws an error:
pulumi.Any (value of type func(v interface{}) pulumi.AnyOutput) is not a type.
Copy code
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/iam"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iam.NewRole(ctx, "awsiamRoleControlPlane", &iam.RoleArgs{
			AssumeRolePolicyDocument: pulumi.Any{...}, // pulumi.Any{} is not a type
		})
		return err
	})
}
is there a working version of the Go or IAM SDKs I can roll back to, or will I need to fix this by hand? I discovered this when running the output of
cf2pulumi
, fwiw.
e

echoing-dinner-19531

03/23/2024, 8:42 AM
Oh those docs are wrong. I'm not sure what the right syntax is for Go, but it's definitely not that. I'll ping docs team internally to take a look at this.
c

crooked-kitchen-90092

03/25/2024, 2:10 PM
thanks!