Skip to content

Ari-o12code/Deployment-of-a-static-website-with-Terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

altschool-cloud-engineering-third-semester-second-assignment

Deploying a Static Website on AWS using Terraform

This project demonstrates deploying a static website on AWS using Terraform. The infrastructure utilizes S3 for static content storage, CloudFront for content delivery and Route 53 for domain management.

Project Structure

acm.tf                    # Configuration for SSL certificate (optional).
main.tf                   # Main infrastructure setup.
outputs.tf                # Outputs for Terraform.
README.md                 # Project documentation (you are here!).
route53.tf                # Route 53 DNS configuration.
s3.tf                     # s3 configuration.
cloudfront.tf             # cloudfront configuration.
variables.tf              # Variables used in the Terraform project.

Deployment Steps

  1. Configure Terraform:

    • Update the variables.tf file with configuration values (domain name, bucket name, etc.).

    • Ensure Terraform and required providers are installed:

      terraform init

      terraform init terraform plan

  2. Obtain SSL Certificate (Optional):

    • Configure an SSL certificate using acm.tffile.
  3. Deploy the infrastructure using terraform apply

terraform init

The Static website can be viewed by visiting alameenq.xyz

terraform apply

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published