How to disable default endpoint in AWS appsync

0

I have created a custom domain for appsync api and now I want to disable the default endpoint. Is there any work around to disable it?

gefragt vor 2 Jahren365 Aufrufe
1 Antwort
1
Akzeptierte Antwort

Hi, @sgupta07

Unfortunately, AppSync doesn't have the ability to disable the default endpoint like API Gateway does.

I came up with an alternative. (But not perfect)

You can assign AWS WAF ACLs to AppSync.
Using this mechanism, you can block access by directly specifying the default domain by blocking if the "host" header is not a custom domain in the WAF rule.

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

profile picture
EXPERTE
iwasa
beantwortet vor 2 Jahren
  • Thank you @iwasa. This solution seems to to block the default endpoint. Why do you think it's not perfect?

  • Cases controlled by the host header can also be called by requesting the default endpoint by sending a custom domain in the host header at the time of request.

  • @iwasa. I'm sorry for asking again. Is there any way we can make the host header secure? So that default endpoint can't be accessed.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen