1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
If the VPC CIDRs in each environment do not overlap, you can connect to RDS from Fargate in each environment by setting up VPC peering or Transit Gateway.
In other words, if you can configure the VPCs in each environment to communicate with each other, you will be able to connect to RDS from Fargate.
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-peering.html
https://docs.aws.amazon.com/vpc/latest/tgw/what-is-transit-gateway.html
If the VPC CIDRs overlap, I think it is possible to connect by setting up something like PrivateLink to operate like a NAT.
https://aws.amazon.com/blogs/database/access-amazon-rds-across-vpcs-using-aws-privatelink-and-network-load-balancer/
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 years ago