polite-napkin-90098
11/22/2021, 5:50 PM// Create or lookup a VPC for our cluster.
vpc := ...
So I tried adding the ec2 module to my imports
import {
"<http://github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ec2|github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ec2>"
}
and then
// Look up the Test VPC
vpcid := "vpc-xxxxxxx"
vpc, err := ec2.LookupVpc(ctx, &ec2.LookupVpcArgs{ Id: &vpcid })
if err != nil {
return err
}
in main()
But this doesn't let me get at the vpc.PublicSubnetIds or the vpc.PrivateSubnetIds as they're from the Crosswalk module.
I've had a look but https://www.pulumi.com/docs/guides/crosswalk/aws/vpc/#getting-the-default-vpc only shows me how to get it using the pulumi cli.
Is there a golang awsx module I can load?
Can someone point me in the right direction please?