Private MWAA with custom domain - connection timeout

1

I've set up a PRIVATE_ONLY mwaa instance and created an ALB, which points to private addresses of the VPC endpoint based on this guide:
https://docs.aws.amazon.com/mwaa/latest/userguide/vpc-vpe-access.html
(I also added a new A record for my ALB in Route53 zone pointing to my ALB)

Target group reports both targets to be healthy and I can actually access the custom domain, which shows the Airflow login page (Sign in to Airflow). But after clicking on the login button and logging in, the URL I'm taken to is the URL of the vpce, not my custom domain. And because the mwaa instance is private and I'm not in the VPC, I get a connection timeout.

I also tried to use CNAME record instead of A record as mentioned in the docs: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-faqs.html#custom-dns
But the same result - connection timeout.

Seems like after logging in, AWS no longer uses the custom domain, but instead tries to use the default (vpce) url. Is there something I'm not doing correctly?

Edited by: vlmsgst on Aug 25, 2021 12:28 AM

vlmsgst
已提问 3 年前1279 查看次数
1 回答
0

Have a look at this thread https://forums.aws.amazon.com/thread.jspa?messageID=988951

tl;dr "MWAA does not yet support setting an alternate redirect location"

K4R0L15
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则