如何在AWS AppSync中禁用默认的端点。

0

【以下的问题经过翻译处理】 我已经为AppSync API创建了一个自定义域名,现在我想禁用默认的端点。有什么解决方法可以禁用它吗?

profile picture
EXPERT
asked 6 months ago66 views
1 Answer
0

【以下的回答经过翻译处理】 你好,@sgupta07

很遗憾,AppSync无法像API Gateway那样禁用默认端点。

但我想到了一个替代方案(虽然不完美)。

您可以将AWS WAF ACLs分配给AppSync。

使用该机制,您可以通过在WAF规则中直接指定默认域来阻止访问,如果“host”标头不是WAF规则中的自定义域,则会被阻止。

https://docs.aws.amazon.com/appsync/latest/devguide/WAF-Integration.html

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions