Is there any guidance on overriding the type of a ...
# general
Is there any guidance on overriding the type of a field in the
file of the AWS provider with an array type? I thought
tokens.NewArrayTypeToken(awsType(autoscalingMod+"/notificationType", "NotificationType"))
may have been it, but that panics at generation time complaining of a missing module delimiter. I don’t see anything of this form in either the GCP or AWS definitions.
Oops, a panic is no good. The NewArrayTypeToken stuff is mostly a holdover from our old runtime model (cc @bitter-oil-46081 as I know you are incrementally cleaning this up). Can you share the stack trace? We should fix the assert at least. The way to override element types is by using the
field in the override schema. See A good example of this in action is here: Note that the type must be a slice in the Terraform schema for overlaying an array to work. HTH!
Aha, that’s got it. I’ll repro the stack trace another time.
It doesn’t appear under “correct” usage, and making incorrect edits to
is fair game for panics I guess.
I’ve fixed up pulumi-aws#251 based on this and force pushed for CI. Hopefully that’s it!