I recently took on a job to transfer a WordPress website to Amazon Web Services (AWS). I’ve never done this before so I googled for some tutorials and followed this one https://aws.amazon.com/getting-started/tutorials/launch-a-wordpress-website/ which worked just fine. You create an EC2 instance and use AWS marketplace to search for Bitnami. Bitnami is configured to with everything you need to instantly launch a new WordPress website. Sounds simple? Yes, it actually is! The only thing it doesn’t tell you is that using Bitnami also means you’ll have a small icon overlaying the bottom right hand corner of your website which links to a Bitnami info page. Information on how to remove this is on the Bitnami documents and requires you to SSH in to your server and run a simple command. This would be simple except for the fact that the AWS documentation for launching a WordPress website tells you to ‘Proceed without a key pair’ but this is the key-pair that you need to be able to SSH in to your server.
You might think you could just create a key-pair (and you can do this easily in the AWS console) and attach it to your instance, but you cannot just attach it to an instance once it’s started. Panic ye not, there are several ways around this. For me, the simplest way was to create a key-pair, run through the tutorial again to launch a new instance except this time I made sure to select my key-pair instead of ‘Proceed without a key-pair’ (you can also create a new one at this point). My new instance was launched with the key-pair and I was able to SSH in and remove the Bitnami banner. I then used the All-in-one-WP migration tool to export the website from the original instance to the new one. It was then a case of disassociating the elastic IP from the original instance (this is the ‘fixed IP address’ for your server and you’ll need this to point your domain to), and associating it to the new instance (the domain was hosted by a third party). You can associate/disassociate the elastic IP from the elastic IP option in the console. The website was now running from the newly created instance without the Bitnami banner and I could terminate the original instance. Phew!