0

I have a node.js app running on AWS Elastic Beanstalk. I have setup a domain pointing to a CDN distribution which is pointing to the EBS. But the web app is also accessible via the EBS URL directly. I want to block public access to the EBS URL. how can I achieve that?

g.revolution
  • 121
  • 1
  • 6

1 Answers1

1

Since Feb 2022, this is possible to be done thanks to AWS managed prefix lists

You basically just need to:

  • Get the prefix list ID from your VPC page
  • Modify the SG to only accept HTTP from the PrefixId in the above step