Skip to content

complete deploy of static website on aws with terraform. To make different file for providers, variable and so on....

Notifications You must be signed in to change notification settings

hilalahmad0101/deploy-static-website-on-aws-s3-with-terraform

Repository files navigation

deploy-static-website-on-aws-s3-with-terraform

Basic of terraform to deploy the static html pages on aws to s3 bucket. s3 bucket is use for storing the file of a static webiste as well as other file and folder.

Demo

Prerequisites

  • Aws - AWS Account.
  • Terraform - Basic knowledge of Terraform.

Instalation

First Clone the rep

git clone https://github.com/hilalahmad0101/deploy-static-website-on-aws-s3-with-terraform.git

Create tfvar file

terraform-dev.tfvar

bucket_name = ""
secret_key  = ""
access_key  = ""
region      = ""

Terraform Command

Run the basic command of terraform to serve your app on aws website.

# init command
terraform init

# plan command
terraform plan -var-file terraform-dev.tfvar

# apply command
terraform apply -var-file terraform-dev.tfvar

About

complete deploy of static website on aws with terraform. To make different file for providers, variable and so on....

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published