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.
First Clone the rep
git clone https://github.com/hilalahmad0101/deploy-static-website-on-aws-s3-with-terraform.git
terraform-dev.tfvar
bucket_name = ""
secret_key = ""
access_key = ""
region = ""
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