スキップしてコンテンツを表示

Why are NACLs required for an RDS Proxy in the same subnet as the RDS db?

0

Hi!

I was able to resolve my issue, but I was wondering about this unexpected behavior.

So I set up an Aurora Postgres Serverless v2 database cluster and added an RDS Proxy in the same subnet (let's call this the "database subnet"). The connection between those two did not work with the NACL I had configured at the time, which allow inbound traffic from another subnet on port 5432 and outbound traffic back to the same subnet on the ephemeral ports (1024-65535).

To make the RDS Proxy work, I had to also add NACL rules that allowed inbound and outbound traffic to and from the database subnet on the ephemeral ports. I also verified that the traffic does not leave the VPC by adding the NACL rules for my vpc CIDR. The question now is - why? Aren't NACLs only applied for traffic that goes in and out of the subnet?

1回答
1
承認された回答

Hello.

Is it possible that Aurora Serverless has a multi-AZ configuration and the subnet where RDS Proxy is running is different from the subnet where Aurora Serverless's primary is running?
RDS Proxy always connects to the primary instance, so if the primary instance is in a different subnet, communication may become impossible due to network ACLs.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-proxy-endpoints.html

In other words, please check to see if you are in a state like the image below.
a

エキスパート
回答済み 2年前
エキスパート
レビュー済み 2年前
エキスパート
レビュー済み 2年前
  • Well, that actually makes perfect sense. I didn't think about the cross-az traffic. Thanks!

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

関連するコンテンツ