I want to integrate cloudfront with private origin as all the instances will be in private subnet with outpost setup.
while creating cloudfront distribution I tried adding private DNS of EC2 (ip-XX-XX-XX-XX.us-east-2.compute.internal) but its giving error : 502 bad gateway
I have below questions :
- Can we have aws cloudfront with private origin (EC2 instance) ?
- Can we use cloudfront as a shared proxy cache inside private subnet ?