Is there any way to access a AWS private bucket using nginx as a reverse proxy?

56 Views Asked by At

I want to configure my nginx such that i can access my private bucket is there any way to do so? I know the s3 ip whitelisting method but I have to make my bucket public for that is there any way i can make changes to my nginx config file ?

1

There are 1 best solutions below

2
MarcC On

You can create an S3 VPC endpoint and restrict access to the VPC running your nginx server(s). Your bucket and servers should be in the same region.

I'm not familiar with nginx options but it looks like you can expose objects using the S3 API. Accessing the previous endpoint you will not exit the AWS network.