简体   繁体   中英

AWS: how to restrict access to API gateway from Amplify app?

I have an Amplify app which I'd like to be the only one allowed to call an API gateway.

What's the best way to achieve that?

It seems possible to make the gateway private to a single VPC - but it seems like AWS Amplify app can't be placed inside any single VPC .

Are there other ways? Can I whitelist based on arn? IP? Other options?

AFAIK, VPC support is currently not available out of the box (may be in the future).

Some workarounds I've used are:

  • Whitelist the API gateway only to your IP address
  • Integrate private API gateway + Cloudfront and place WAF in front of it

REF: https://github.com/aws-amplify/amplify-hosting/issues/12

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM