asked 162k views
1 vote
Which service can be used to host a maintainance page when an web application in an EC2 instance has failed?

ALB
API Gateway
R53
CloudFront

asked
User Xth
by
8.8k points

1 Answer

7 votes

Final answer:

To host a maintenance page during a web application outage on an EC2 instance, using Amazon CloudFront is an effective solution. CloudFront allows the display of a static maintenance page, and the service offers troubleshooting documentation to help prevent future errors.

Step-by-step explanation:

Using CloudFront to Host a Maintenance Page

When an EC2 instance fails and your web application becomes unavailable, one effective solution for hosting a maintenance page is to use Amazon CloudFront. CloudFront is a content delivery network (CDN) service that can serve a static maintenance page from the edge locations closest to your users, ensuring faster delivery and availability even when your EC2 instance is down. It's important to have a maintenance page in place to notify your users of any outages and maintain professionalism. You can set up CloudFront to return a custom error page when your application is unable to respond. Additionally, utilizing CloudFront provides the opportunity to troubleshoot and help prevent errors by reviewing the CloudFront documentation for guidance on configuration and best practices.

If you already use CloudFront to deliver content, it's straightforward to configure a custom error response that displays a maintenance page. If you're experiencing an outage, remember to update your DNS records if necessary to point to the CloudFront distribution that's serving your maintenance page.

answered
User Jakub Judas
by
8.6k points