Infrastructure as code (#3)
* Moves website to website/ * Adds terraform gitignores * Terraform with AWS provider * Initialises Terraform * Locals and variables for provider * Fetches SSL certificate from ACM * S3 static website bucket * CloudFront distribution * Route53 records * Deployment workflow uses secret S3 bucket suffix * Adds README --------- Co-authored-by: Joe Carstairs <65492573+Sycamost@users.noreply.github.com>
This commit is contained in:
12
infrastructure/providers.tf
Normal file
12
infrastructure/providers.tf
Normal file
@@ -0,0 +1,12 @@
|
||||
provider "aws" {
|
||||
region = local.aws_region
|
||||
access_key = var.aws_access_key
|
||||
secret_key = var.aws_secret_key
|
||||
default_tags {
|
||||
tags = {
|
||||
project = "joeac-website"
|
||||
owner = "terraform"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user