I am planning to use AWS Service Connect for backend communications between my micro-services to avoid the costs of an internal load balancer.
I figured out how to configure my Fargate services for Service Connect using service.enableServiceConnect(...)
.
However I can't figure out how to publish the endpoints of my Aurora serverless cluster to Service Connect? What I want is tasks in the cluster being able to connect to Aurora using a well-known internal DNS name (rather than passing . The cluster is created like this:
this.dbCluster = new rds.DatabaseCluster(this, 'DbCluster', {
engine: rds.DatabaseClusterEngine.auroraPostgres({
version: rds.AuroraPostgresEngineVersion.VER_15_2,
}),
instances: 1,
...
Thanks!
Hi, I recommend you that verify that the database is deployed on a private segment, and review the route tables associated with the subnets where is located the dabase, on the other hand try to use a VPC endpoint type interface for RDS service https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/vpc-interface-endpoints.html, I'll waiting for your comment.