- Newest
- Most votes
- Most comments
It’s still not fully clear. You can have a vpc endpoint for Ecr and an s3 gateway endpoint. This means you can pull images without an issue. The link you provided was for a different issue I think.
Or are you looking for a central vpc for all endpoints? If so create routes using s3 prefix list and route all traffic to this central vpc
Does that answer the question? Can add more if needed
Using a single Interface VPC Endpoint for both Amazon S3 and Amazon Elastic Container Registry (ECR) is not possible due to differences in how these services handle private connectivity. Amazon S3 only supports Gateway VPC Endpoints, which route traffic through the VPC route table, whereas ECR requires Interface VPC Endpoints, which use Elastic Network Interfaces (ENIs) inside a private subnet. This means that s3.$region.amazonaws.com cannot be resolved through an Interface VPC Endpoint, making direct private connectivity to S3 via an Interface Endpoint impossible.
For correct private access, you need to set up:
A Gateway VPC Endpoint for S3 (com.amazonaws.$region.s3) and configure the VPC route table to send S3 traffic through it.
Interface VPC Endpoints for ECR, including:
api.ecr.$region.amazonaws.com (for ECR API calls)
dkr.ecr.$region.amazonaws.com (for Docker image pulls)
This setup allows your private resources to securely access S3 and ECR without needing an internet gateway or NAT Gateway. If you try to use a single Interface Endpoint for both services, it will fail because S3 does not support this connectivity model. Proper configuration of VPC Endpoints ensures a secure, cost-effective solution.
To use Amazon S3 Static Website Hosting for redirecting requests, create an S3 bucket with the same name as your domain (e.g., example.com). In the S3 Console, go to Properties → Static Website Hosting, select Redirect requests, and enter the target URL (e.g., https://new-site.com). If needed, configure a bucket policy to allow public read access. This method is useful for domain migrations or URL redirections without a web server. After setup, test by visiting the bucket's endpoint URL, and requests should redirect to the specified destination seamlessly.
Relevant content
- asked 4 months ago

The question isn’t clear at this time
Updated, providing more info.