Open shahbhavik01 opened 1 month ago
I'm seeing the same when setting the vpc config in a Nextjs component.
I was losing my mind for the past week trying to figure out where I was going wrong with my vpc set-up (it could still be incorrect 🤫).
In my case, I am setting up an aws.rds.Instance
postgres database, initially in a private subnet allowing incoming traffic from a public subnet, and then adding the public subnet to the Nextjs component. I wanted a set-up where the Nextjs application (a Payload CMS) could access the database, but the database wasn't publicly accessible.
I've tried a few combinations, simplified it to public subnets only for testing and opened it up allowing all traffic from everywhere. No dice.
Facing the same issue 😞
Hey @shahbhavik01 @victor-landa did you manage to get this working somehow?
@fwang this is a bit of a blocker for me. It would be great to know if it's a skill issue or something on the SST side.
Cheers!
I'll check
I'm deploying my NextJS app to AWS. This is my config:
When I remove the VPC Config, the deployment works well. When I add the VPC config, the website starts throwing the following error:
For now, the security group is allowing all inbound and outbound access. The subnets are also both public subnets with Internet Gateway and NAT Gateways available. I have triple checked that VPC configuration. Any idea what can be causing this?
Also, any documentation around what ports should be allowed in the Security Group to allow for NextJS traffic would be really helpful.