This website collects cookies to deliver better user experience
Use a custom domain and SSL on AWS Lightsail instance
Use a custom domain and SSL on AWS Lightsail instance
In our agency bitopia.digital we need to migrate a platform, which we have hosted in a GoDaddy VPS to a AWS Lightsail instance.
We started to love❤️ Lightsail because it's simplicity to up and run different system blueprints that makes our business run smooth.
We found two issues in the process, so i'm writing this to help any of you who maybe are trying to achieve this kind of stuff.
The learning process
Update domain zone
The first one is that we already have a domain name registered in GoDaddy and we need to point it to the need instance.
We opened domain panel in GoDaddy and updated the A record in our DNS Zone to point to the AWS Lightsail instance static public IP
That process takes a little while, so you can check the DNS propagation process with a tool like https://dnschecker.org
After that we already have our domain pointed to our new instance but here is where it came the second issue.
Reissue the SSL certificate
This step could be tricky, but it's easy to follow along.
The first thing we need to do is to generate a a new private key for our AWS Lightsail instance.
We logged in through SSH in our instance and we run the following command to generate a new private key: