Tsubasa
Tsubasa

Reputation: 541

Can I create AWS API Gateway and S3 bucket only public to VPN

I have a single page application on S3 and its REST API on AWS API Gateway.

How can I restrict access to the SPA only with a VPN.

I'd like to let the login page not public to the Internet.

Upvotes: 0

Views: 256

Answers (1)

BishalG
BishalG

Reputation: 1434

There exist a way to allow or block traffic from specific ip address (SourceIp) or from vpc endpoint (SourceVpc) in aws s3 bucket policy. We can specify such conditions to restrict access to s3 bucket.

For more details please visit this link.

Upvotes: 1

Related Questions