We have a complex AWS organization with many accounts. I need to allow web browser access to an S3 HTML bucket that is limited to the VPN private IP subnet users only.
I created a VPC Interface endpoint and gave it a Route 53 alias. It's in a private subnet in a VPC in one of the accounts. In theory I think it should work from anywhere, given the security groups/NACL allow it, because the interface is just translates to a private IP. The route works according to the Route 53 check.
I have the bucket set up with access allowed from the VPC endpoint in the bucket policy, and ListBucket and GetObject allowed.
There is an index.html at the root of the bucket.
My Route 53 alias is foo.test.company.com
and it points to the vpce DNS name.
When I enter foo.test.company.com
into the browser I get a timeout. But there is information missing, i.e. the name of the bucket and the key. How do I include that in the url?
I believe that Route 53 is getting my correct private IP address because I can access privately named hosts in the account with my browser.
Of course I will add the VPN private subnet to the bucket conditions for production, but for now I just allow based on the VPC endpoint condition.
Any ideas?