CloudGuru is an online cloud learning center which is very special because it allows users to experiment in the cloud (AWS, GCP, Azure) with playground sessions which are new accounts ready to be used for a limited time (~4h).
This is super useful since it gives the liberty to the developer to create and test almost anything. In this repo, we will create a little project in AWS using terraform so that we can redeploy our project even if our playground time expires. All that it will be needed is to create another playground session and redeploy the project!
The project is a simple S3 Bucket configured for public read access and Static Website Hosting with a index.html and error.html.
- Login to CloudGuru and Select the Playground AWS
- Copy the Access Key Id and Secret Access Key into the
terraform/main.tf - Install Terraform
- Install AWS CLI in your machine
- configure your AWS CLI by using the given Access Key and Secret Access Key
aws configure
- While in the root folder of this project, initialize terraform
terraform -chdir=terraform init
- Deploy the S3 and files using
terraform -chdir=terraform apply -auto-approve
- Copy and paste the URL output in the terminal:
S3_Website_Endpoint = "http://wyseday-######.s3-website-us-east-1.amazonaws.com"
This project was created by this creator of this Repository and is only for educational purposes