Fork me on GitHub
#aws
<
2021-12-15
>
jumar04:12:05

Not sure what you mean by private vpc. You will need to put your instance into a public subnet (associated with a internet gateway).

viesti13:12:20

Usually you'd have in a VPC a public subnet, that has a 0.0.0.0/0 route to internet gateway and put a NAT gateway in that subnet and then have private subnet, that has a 0.0.0.0/0 route to the NAT gateway, so that hosts in the private subnet are not directly accessible from the internet and don't have public IP addresses. Then you'd put a load balancer (ALB) into the public subnet and have a listener in the load balancer direct traffic to say EC2 instance or ECS service etc. Not sure if Cloudfront can reach a private subnet directly, but there might be something in API Gateway for such https://aws.amazon.com/about-aws/whats-new/2017/11/amazon-api-gateway-supports-endpoint-integrations-with-private-vpcs/

🙏 1