/static-s3-website

serve a webstie on aws s3 with Terraform

Primary LanguageHCLGNU General Public License v3.0GPL-3.0

Create and Host a static website on AWS s3 with Terraform

Step by Step guidelines

Steps

  • clone this repository
  • add all website related files in the 'app' directory
  • run terraform init, terraform apply

How to apply

open the Terraform directory and run these commands -

  • Init first
terraform init
  • After that, plan to see all the changes
terraform plan
  • Finally, apply and make it happen on AWS
terraform apply

if you want to auto approve without manual approval, then -

terraform apply -auto-approve

make sure to destroy after playing around with 'terraform destroy

Reference(s)

License

General Public License

Free Software, Hell Yeah!