Skip links

How To Fix ‘Caught exception in method AmazonAI_Cloudformation::get_dv_dns_info in class AmazonAI_Cloudformation:’

Table of Contents

Did you encounter this annoying error while setting up your new ? This error is seen in the AWSforWordpress plugin setup.

AWS has a good development team on its side. And they did a very good job in developing plugins that help WordPress users to move to Amazon and use its features.

If you don't know about Amazon Lightsail, it's a virtual private server offered by Amazon at affordable prices. Their prices start very small from $3.50 per month with 1 static IP, 512MB memory, and 1 core processor.

Being a vivid user of Amazon's EC2 servers for years now, I was a little hesitant to use this new service from the AWS team. I was sure that they will do it well but still, I was not sure of how good their documentations are for this new service.

Finally last month I gave Lightsail a chance as this product got pretty matured and I gave a brief look into their documentation before jumping in.

Started with the smallest virtual server of 512MB RAM for a small site of mine where we do a lot of SEO tests before implementing any new strategy for our UnderWP's digital marketing clients.

The whole setup went pretty smooth about which I might write up soon in another post. But there was this one point where I got stuck with a nasty error.

The Problem

I found this error when creating a new CloudFront distribution for the website on Amazon Lightsail.

The DNS was being handled by Cloudflare. Unfortunately, AWS documentation does not cover how to handle the DNS when managed by Cloudflare.

ALSO READ  Migrating WordPress Website To Lightsail On AWS – Part 3

They are more in favor of their own DNS management module, Amazon Route 53. It is a wonderful tool to handle all your DNS queries. But personally, I am more in favor of Cloudflare when it comes to DNS.

After going through their documentation for over 2 days here: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/WordPressPlugIn.html no help was found.

To solve this error, I found the problem was not in the plugin. Because I also read through their plugin which is open source and available on Github for everyone to read: https://github.com/awslabs/aws-for-wordpress/blob/master/admin/AmazonAI-Cloudformation.php

This is when I realize that maybe the problem was in Cloudflare.

The Solution

This error can be solved like this. Go to your Cloudflare account and into the DNS management of the you are configuring.

When you are adding the CNAME values provided by the AWSforWordPress plugin. Make sure to switch off the Proxy status option in your Cloudflare dashboard.

Once this was done, click on the Check status of Cloudfront certificate button on your WordPress dashboard. After a few seconds, you will see that the plugin was successfully able to verify the certificate and goes to the next step of CloudFront Distribution Deployment.

Final Words

This post is to address this error for anyone who faces this error when handling Amazon Lightsail services. If only this error would have been covered in their documentation, I wouldn't have had to write about it.

Overall setting up the Lightsail server for a website has been made an effortless work compared to setting up on EC2 servers by the AWS team. Only this small issue happened when trying to get their additional Cloudfron services to activate on the new website. Hopefully, this will also be addressed and patched up by their team in the future.

ALSO READ  How To Change WordPress Admin Email

Let me know in the comments if this has helped you.

Share This Article:
Facebook
Twitter
LinkedIn
Pinterest
WhatsApp
Email
Reddit
Related Articles:
Google My Business Reviews WordPress Plugins
Plugins
5 Best Google My Business Reviews WordPress Plugins Free

Trust. It’s possibly the most crucial aspect of the sales process. Unsolicited, honest feedback from other customers is one of the fastest ways to create customer trust. If there’s one thing Google excels at, it’s designing products and services that appear to smoothly blend into our lives and enterprises. When

Read More »
long tail keywords
Search Engine Optimization (SEO)
Long Tail Keywords: A Complete Guide

Long-tail keywords help to rank easier with the right content strategy and they can be more valuable if you know how to use them. They tend to have higher conversion rates. Now, I know what you’re thinking: Long tail keywords and SEO – is that a match made in heaven?

Read More »
Subscribe to our newsletter
[newsletter_signup_form id=1]
Chat With Our SEO community members On discord

Leave a Reply to Iliyas Cancel reply

This site uses User Verification plugin to reduce spam. See how your comment data is processed.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Setting up cloudfront is always a pain on WordPress due to the lack of good plugins. But with this plugin from AWS itself, it has become easy.

  2. Thanks for this solution. I was stuck at this error for more than two days now.

  3. Cloudflare proxy is always an issue with hosting providers. This reminded me of the cloudflare proxy.

  4. Using Cloudflare DNS or not is the cause of this issue. I would suggest trying both ways.

Explore
Drag