Hi all. I'm currently trying to set up an RDS inst...
# aws
Hi all. I'm currently trying to set up an RDS instance inside an existing VPC. My issue is essentially the same as this (https://github.com/pulumi/pulumi-aws/issues/390), but the example posted in the thread does not function for me (since I can't access vpc.privateSubnetIds through the python SDK). Can anyone advise me on how to hook up my RDS to a particular VPC? Thanks.
Hey, do you mind sharing your code example? What do you mean that you cannot access the private subnets of the VPC? In case you're using AWSX to create the vpc you can get the private subnets like so:
Copy code
import pulumi
from pulumi_awsx import ec2

vpc_resource = ec2.Vpc("vpcResource")

pulumi.export('private_subnets', vpc_resource.private_subnet_ids)
In case you're creating the VPC out of band, you can look up the subnets using this data source: https://www.pulumi.com/registry/packages/aws/api-docs/ec2/getsubnets/