How do I configure the VPC for an RDS Cluster? It seems to be taking the default, and when I try to assign a vpcSecurityGroupId I get the error that they're in different VPCs
* error creating RDS cluster: InvalidParameterCombination: The DB instance and EC2 security group are in different VPCs. The DB instance is in vpc-d937bdb0 and the EC2 security group is in vpc-0a8fd9f1ca9aeebcc
l
little-journalist-4778
09/09/2021, 12:16 PM
This is not a Pulumi issue, learn how AWS works
b
billowy-army-68599
09/09/2021, 2:25 PM
@tall-beard-99429 can you share your code?
@little-journalist-4778 we generally err on the side of being helpful in this slack
l
little-journalist-4778
09/09/2021, 2:40 PM
wasn't I helpful? I didn't mean to be rude but this is the truth
t
tall-beard-99429
09/09/2021, 2:44 PM
@little-journalist-4778 AWS allows you to choose a VPC. Pulumi allows you to choose a VPC Security Group. This is a pulumi thing, not AWS. I managed to solve this by making use of a RDS Subnet Group which by choosing your VPC's subnets on there, maps through to setting the VPC on the cluster and instances for you. I was expecting there to be a way on the actual RDS cluster itself to set a VPC
But, this is now resolved, thanks @billowy-army-68599