Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Open more actions menu

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.