salmon-account-7457206/25/2020, 10:27 PM
) across AZs within a region, and then I "capture" the ID of the created subnets in an array (this happens near the end of a
Later, I can reference that array when I create a NAT Gateway with `ec2.NewNatGateway`:
pubSubnetIds[idx] = subnet.ID()
However, I can't do the same thing with route table associations in a
In that usage, Pulumi reports that "cannot use privSubnetIds[idx] (type pulumi.StringInput) as type pulumi.StringPtrInput in field value". I get that they are different types (apparently), but... a) why are they apparently different types between resources? b) how is someone supposed to know this other than trial-and-error? c) what is the workaround/solution?
wet-egg-634706/25/2020, 11:00 PM
salmon-account-7457206/25/2020, 11:05 PM
lemon-agent-2770706/25/2020, 11:31 PM
salmon-account-7457206/26/2020, 3:30 PM
lemon-agent-2770706/26/2020, 3:32 PM
salmon-account-7457206/26/2020, 3:33 PM
module aws-get-azs go 1.14 require ( <http://github.com/pulumi/pulumi-aws/sdk/v2|github.com/pulumi/pulumi-aws/sdk/v2> v2.0.0 <http://github.com/pulumi/pulumi/sdk/v2|github.com/pulumi/pulumi/sdk/v2> v2.0.0 )
lemon-agent-2770706/26/2020, 4:04 PM
and other input methods that implement the corresponding ptr type don't have the appropriate methods declared on their interfaces even thought the methods are implemented. The type error goes away when I make this change to my SDK locally.
salmon-account-7457206/26/2020, 4:27 PM
lemon-agent-2770706/30/2020, 6:56 PM
and then run
go mod download
salmon-account-7457206/30/2020, 6:59 PM
, and I can confirm that it did fix the original problem (although VS Code's Go IntelliSense still thinks there's a problem). Unfortunately, now all instances of using
go mod download
to create AWS tags are broken. I'll create a separate thread to discuss that.