the <AWS native IAM docs> seem to use `pulumi.Any{...
# golang
c
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
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
thanks!