Deploy static websites to AWS S3 via CI/CD with GitHub Actions
S3 is a powerful and reliable storage service offered by AWS Cloud. It can be used to host static websites with ease. In this article, we will show you how to deploy your static content to AWS S3 using GitHub Actions. This will allow you to automate the deployment process and ensure that your website is always up-to-date.
What is AWS S3?
AWS S3 stands for Amazon Simple Storage Service. It is a cloud storage service that offers industry-leading scalability, data availability, security, and performance.
S3 has tons of use cases amongst which we have Media Storage, Data Lake, Backup and archiving, and Static website hosting.
Create S3 Bucket
To host our static website, we will need to create a S3 bucket. There are many ways to do this. Via AWS console,AWS CLI, AWS SDKs or REST APIs. But for the purpose of this tutorial,we will use AWS console.
- Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/
- Then type S3 in the search bar and chose the first result, standard S3.