Giving access to an existing RDS Postgres server to my copilot apps #3124
-
Hi, I have an existing Postgres RDS server in the same account as my copilot projects. I've created a bunch of copilot projects which are using their own VPCs/Sec groups etc. I'm looking at giving my copilot applications access to database on the RDS database server. What is the secure way of doing this? I tried to give add an inbound rule to the security group the belongs to the RDS server which gives access to port 5432 to the security group that was created with my copilot app and got an error: "You have specified two resources that belong to different networks." The guides hint that I have to deploy my copilot apps into the same VPC that the RDS server lives in. Is this the recommended approach? Terry |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Terry! Apologies for the late response 🙇 , I was ramping up on the guidance provided here: https://docs.aws.amazon.com/whitepapers/latest/building-scalable-secure-multi-vpc-network-infrastructure/vpc-to-vpc-connectivity.html
I wouldn't recommend moving all the applications to the same VPC as the RDS cluster mostly to reduce blast radius (the possibility that a badly behaving application affects other applications). If it's a possibility, the easiest and more resilient route would be each application getting its own RDS cluster. The tradeoff is that it's a lot more expensive. Hope this helps! Apologies, I'm not an expert in this area. |
Beta Was this translation helpful? Give feedback.
Hi Terry!
Apologies for the late response 🙇 , I was ramping up on the guidance provided here: https://docs.aws.amazon.com/whitepapers/latest/building-scalable-secure-multi-vpc-network-infrastructure/vpc-to-vpc-connectivity.html
I wouldn't recommend moving all the applications to the same VPC as the RDS cluster mostly to reduce blast radius (the possibility that a badly behaving application affects other applications).
If it's a possibility, the easiest and more resilient route would be each application getting its own RDS cluster. The tradeoff is that i…