Skip to content

alex-stiff/alexstiff-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alexstiff-website

Overview

This will create the following:

  • DynamoDB:

    • DynamoDB table for remote Terraform state locking
  • S3:

    • Bucket for remote Terraform state
  • Route 53:

    • Hosted Zone
    • A-record with A record containing GitHub pages IP addresses

Initial set up

Create a file secret.tfvars containing AWS secret key and access key:

# secret.tfvars
access_key = "AWSACCESSKEY"

secret_key = "MYSECRETAWSSECRETKEY"

Initialise and provision the S3 backend from the s3-backend directory, which consists of S3 bucket for storage and DynamoDB for remote state locking.

cd s3-backend
terraform init
terraform apply -var-file=../secret.tfvars
cd -

Initialise everything else.

terraform init -backend-config=secret.tfvars

Update all resources.

terraform apply -var-file=secret.tfvars

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages