There are many ways to deploy an application to a cloud server.
There are usually a number of steps, including:
Get an account
There are many levels of account. Most of the services provide an entry level starter option. Those are free but restricted to a small footprint. Some also allow a “getting started period” where you can create various services from many of their products that is free for a trial period.
Create one or more instances from a variety of services
One of the easiest ways to deploy WordPress to AWS is shown in the video titled Host WordPress Website on Amazon Lightsail (aws) in just 4 mins
Build your application
In the previous section you saw an example of creating a WordPress site during the creation of a Lightsail instance. That is fine if you are starting from scratch. WordPress has all the tools you need to build out your site.
But, you may choose to start on your local machine using your usual tools, and then copy the application to AWS.
You can do this in a simple directory on your computer with an IDE such as VS Code. Once it is working you can create a zip file of your project and simply upload it during the instance creation process. However, if you are going to frequently update it, you will have re-zip it and upload it again and again.
But, better than that it is good to start with a GitHub repository that you clone to your personal machine. That way you can code and test locally, and then push features one at a time to the GitHub repo.
Make a copy of your application in the cloud instance
Most cloud solutions provide some means to ssh into your cloud instance. Once there you can simply clone your project from its GitHub repository. But, better than that you can use GitHub actions that will trigger an update to your cloud instance whenever you push your changes to a specific branch in your repo. This arrangement is is often referred to as a deployment pipeline. In the GitHub page for your project, select the “Actions” tab and read all about how it works.
As a simple example here is a video of deploying a static website.
AWS Project: Build a Game with a Continuous Deployment Pipeline from GitHub to S3 | AWS Tutorial
Hook all the pieces of your solution together
Publish it to the World Wide Web.
Next -> xxx