Hello, again: I've managed to get back to trying s...
# general
p
Hello, again: I've managed to get back to trying some Pulumi. Today I'm trying to get an EKS stack running by following the guide here https://www.pulumi.com/docs/guides/crosswalk/aws/eks/ I don't want to launch the cluster in my default VPC, so I am at the section https://www.pulumi.com/docs/guides/crosswalk/aws/eks/#configuring-your-eks-clusters-networking In the code example there the lookup/create for the vpc is not specified
Copy code
// Create or lookup a VPC for our cluster.
vpc := ...
So I tried adding the ec2 module to my imports
Copy code
import {
        "<http://github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ec2|github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ec2>"
}
and then
Copy code
// 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?
"Pulumi Crosswalk for AWS is currently supported only in Node.js (JavaScript or TypeScript) languages. Support for other languages, including Python, is on the future roadmap." Ok so that answers that question. I can't use crosswalk for golang, yet.