build: automate things with Terraform
This commit is contained in:
parent
44bac43b1c
commit
989b943a75
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -17,3 +17,8 @@ pnpm-debug.log*
|
|||
|
||||
# macOS-specific files
|
||||
.DS_Store
|
||||
|
||||
# Terraform
|
||||
.terraform
|
||||
.terraform.lock.hcl
|
||||
terraform.tfstate
|
||||
|
|
119
main.tf
Normal file
119
main.tf
Normal file
|
@ -0,0 +1,119 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
aws = {
|
||||
source = "hashicorp/aws"
|
||||
version = "~> 4.0"
|
||||
}
|
||||
|
||||
cloudflare = {
|
||||
source = "cloudflare/cloudflare"
|
||||
version = "~> 3.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
region = "eu-west-2"
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
alias = "us-east-1"
|
||||
region = "us-east-1"
|
||||
}
|
||||
|
||||
resource "aws_s3_bucket" "bootstrap-with-tailwind" {
|
||||
bucket = "bootstrap-with-tailwind"
|
||||
}
|
||||
|
||||
resource "aws_s3_bucket_acl" "bootstrap-with-tailwind" {
|
||||
acl = "public-read"
|
||||
bucket = aws_s3_bucket.bootstrap-with-tailwind.id
|
||||
}
|
||||
|
||||
resource "aws_s3_bucket_website_configuration" "bootstrap-with-tailwind" {
|
||||
bucket = aws_s3_bucket.bootstrap-with-tailwind.bucket
|
||||
|
||||
index_document {
|
||||
suffix = "index.html"
|
||||
}
|
||||
}
|
||||
|
||||
locals {
|
||||
s3_origin_id = "bootstrap-with-tailwind"
|
||||
zone_name = "oliverdavies.uk"
|
||||
}
|
||||
|
||||
resource "aws_cloudfront_origin_access_control" "bootstrap-with-tailwind" {
|
||||
name = "bootstrap-with-tailwind"
|
||||
description = "bootstrap-with-tailwind"
|
||||
origin_access_control_origin_type = "s3"
|
||||
signing_behavior = "always"
|
||||
signing_protocol = "sigv4"
|
||||
}
|
||||
|
||||
data "cloudflare_zone" "bootstrap-with-tailwind" {
|
||||
name = local.zone_name
|
||||
}
|
||||
|
||||
data "aws_acm_certificate" "bootstrap-with-tailwind" {
|
||||
domain = local.zone_name
|
||||
provider = aws.us-east-1
|
||||
statuses = ["ISSUED"]
|
||||
}
|
||||
|
||||
resource "aws_cloudfront_distribution" "s3_distribution" {
|
||||
origin {
|
||||
domain_name = aws_s3_bucket.bootstrap-with-tailwind.bucket_regional_domain_name
|
||||
origin_access_control_id = aws_cloudfront_origin_access_control.bootstrap-with-tailwind.id
|
||||
origin_id = local.s3_origin_id
|
||||
}
|
||||
|
||||
comment = "Bootstrap examples with Tailwind CSS"
|
||||
default_root_object = "index.html"
|
||||
enabled = true
|
||||
is_ipv6_enabled = true
|
||||
|
||||
aliases = ["bootstrap-with-tailwind.${local.zone_name}"]
|
||||
|
||||
default_cache_behavior {
|
||||
allowed_methods = ["GET", "HEAD"]
|
||||
cached_methods = ["GET", "HEAD"]
|
||||
target_origin_id = local.s3_origin_id
|
||||
|
||||
forwarded_values {
|
||||
query_string = false
|
||||
|
||||
cookies {
|
||||
forward = "none"
|
||||
}
|
||||
}
|
||||
|
||||
default_ttl = 3600
|
||||
max_ttl = 86400
|
||||
min_ttl = 0
|
||||
viewer_protocol_policy = "allow-all"
|
||||
}
|
||||
|
||||
price_class = "PriceClass_100"
|
||||
|
||||
restrictions {
|
||||
geo_restriction {
|
||||
locations = ["US", "CA", "GB"]
|
||||
restriction_type = "whitelist"
|
||||
}
|
||||
}
|
||||
|
||||
viewer_certificate {
|
||||
acm_certificate_arn = data.aws_acm_certificate.bootstrap-with-tailwind.arn
|
||||
ssl_support_method = "sni-only"
|
||||
}
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "bootstrap-with-tailwind" {
|
||||
name = "bootstrap-with-tailwind"
|
||||
proxied = false
|
||||
ttl = 0
|
||||
type = "CNAME"
|
||||
value = aws_cloudfront_distribution.s3_distribution.domain_name
|
||||
zone_id = data.cloudflare_zone.bootstrap-with-tailwind.id
|
||||
}
|
384
terraform.tfstate.backup
Normal file
384
terraform.tfstate.backup
Normal file
|
@ -0,0 +1,384 @@
|
|||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.3.8",
|
||||
"serial": 90,
|
||||
"lineage": "c3605481-259d-3902-621f-b2a4c49e3e4d",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "data",
|
||||
"type": "aws_acm_certificate",
|
||||
"name": "bootstrap-with-tailwind",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"].us-east-1",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"arn": "arn:aws:acm:us-east-1:683884983164:certificate/c43e567e-28d7-4138-8844-033fb177f69f",
|
||||
"certificate": "-----BEGIN CERTIFICATE-----\nMIIF3zCCBMegAwIBAgIQBFHHbnyPJ6Kyvdc8U2lSdTANBgkqhkiG9w0BAQsFADA8\nMQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRwwGgYDVQQDExNBbWF6b24g\nUlNBIDIwNDggTTAyMB4XDTIzMDIxNzAwMDAwMFoXDTI0MDMxNzIzNTk1OVowGjEY\nMBYGA1UEAxMPb2xpdmVyZGF2aWVzLnVrMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A\nMIIBCgKCAQEApujHoyp2xQ28Tm2iaGnZTDTdGcR2KJuuYxYiFH4FcJmlPrAYytl+\ngMOMCqWr4eIjefHttfXv61c2kNt/ICCG9o6BnvzrAajLuQqlmEVbXxXriDpfcLqQ\nAGSLl7UxLYrlWSqo5UnYWe9s9KErfGJi91esdTMm/wV3KEadLmH5lXGQMaSfTi0S\nX9SXs6MwzTa88mX3bOaGk3NALVcjShE7OUw36pVn8r0xH2z4qQZF3tnNn7Om3ZlG\nYzdlgKt0zuYohNdeYHBcH8LDB9VpcvaW7HocjrIq6GaqTiYjgJ3GmsC2i/Icoz1f\n40ERr+ytpW/rH3D1ex3raipx5SCXPIkXhwIDAQABo4IC/TCCAvkwHw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o\nOt+OQFodSk7PQ5E751bWAHDLUu57fa4657wx+UX2wmDPE1kCK4DMNEffud6QZW0C\nzyyRpqbn3oUYSXxmTqM6bam17jQuug0DuDPfR+uxa40l2ZvOgdFFRjKWcIfeAg5J\nQ4W2bHO7ZOphQazJ1FTfhy/HIrImzJ9ZVGif/L4qL8RVHHVAYBeFAlU5i38FAgMB\nAAGjgfAwge0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0O\nBBYEFJxfAN+qAdcwKziIorhtSpzyEZGDMB8GA1UdIwQYMBaAFL9ft9HO3R+G9FtV\nrNzXEMIOqYjnME8GCCsGAQUFBwEBBEMwQTAcBggrBgEFBQcwAYYQaHR0cDovL28u\nc3MyLnVzLzAhBggrBgEFBQcwAoYVaHR0cDovL3guc3MyLnVzL3guY2VyMCYGA1Ud\nHwQfMB0wG6AZoBeGFWh0dHA6Ly9zLnNzMi51cy9yLmNybDARBgNVHSAECjAIMAYG\nBFUdIAAwDQYJKoZIhvcNAQELBQADggEBACMd44pXyn3pF3lM8R5V/cxTbj5HD9/G\nVfKyBDbtgB9TxF00KGu+x1X8Z+rLP3+QsjPNG1gQggL4+C/1E2DUBc7xgQjB3ad1\nl08YuW3e95ORCLp+QCztweq7dp4zBncdDQh/U90bZKuCJ/Fp1U1ervShw3WnWEQt\n8jxwmKy6abaVd38PMV4s/KCHOkdp8Hlf9BRUpJVeEXgSYCfOn8J3/yNTd126/+pZ\n59vPr5KW7ySaNRB6nJHGDn2Z9j8Z3/VyVOEVqQdZe4O/Ui5GjLIAZHYcSNPYeehu\nVsyuLAOQ1xk4meTKCRlb/weWsKh/NEnfVqn3sF/tM+2MR7cwA130A4w=\n-----END CERTIFICATE-----\n",
|
||||
"domain": "oliverdavies.uk",
|
||||
"id": "arn:aws:acm:us-east-1:683884983164:certificate/c43e567e-28d7-4138-8844-033fb177f69f",
|
||||
"key_types": null,
|
||||
"most_recent": false,
|
||||
"status": "ISSUED",
|
||||
"statuses": [
|
||||
"ISSUED"
|
||||
],
|
||||
"tags": {},
|
||||
"types": null
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "data",
|
||||
"type": "cloudflare_zone",
|
||||
"name": "bootstrap-with-tailwind",
|
||||
"provider": "provider[\"registry.terraform.io/cloudflare/cloudflare\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"account_id": "43f15fd4caff58c6f006dc624fd23cc8",
|
||||
"id": "fe9ec061de638b92e3a81d6d2730ff55",
|
||||
"name": "oliverdavies.uk",
|
||||
"name_servers": [
|
||||
"amy.ns.cloudflare.com",
|
||||
"john.ns.cloudflare.com"
|
||||
],
|
||||
"paused": false,
|
||||
"plan": "Free Website",
|
||||
"status": "active",
|
||||
"vanity_name_servers": [],
|
||||
"zone_id": "fe9ec061de638b92e3a81d6d2730ff55"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "aws_cloudfront_distribution",
|
||||
"name": "s3_distribution",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 1,
|
||||
"attributes": {
|
||||
"aliases": [
|
||||
"bootstrap-with-tailwind.oliverdavies.uk"
|
||||
],
|
||||
"arn": "arn:aws:cloudfront::683884983164:distribution/E13YDBQMYHGRJD",
|
||||
"caller_reference": "terraform-20230217103845086000000001",
|
||||
"comment": "Bootstrap examples with Tailwind CSS",
|
||||
"custom_error_response": [],
|
||||
"default_cache_behavior": [
|
||||
{
|
||||
"allowed_methods": [
|
||||
"GET",
|
||||
"HEAD"
|
||||
],
|
||||
"cache_policy_id": "",
|
||||
"cached_methods": [
|
||||
"GET",
|
||||
"HEAD"
|
||||
],
|
||||
"compress": false,
|
||||
"default_ttl": 3600,
|
||||
"field_level_encryption_id": "",
|
||||
"forwarded_values": [
|
||||
{
|
||||
"cookies": [
|
||||
{
|
||||
"forward": "none",
|
||||
"whitelisted_names": []
|
||||
}
|
||||
],
|
||||
"headers": [],
|
||||
"query_string": false,
|
||||
"query_string_cache_keys": []
|
||||
}
|
||||
],
|
||||
"function_association": [],
|
||||
"lambda_function_association": [],
|
||||
"max_ttl": 86400,
|
||||
"min_ttl": 0,
|
||||
"origin_request_policy_id": "",
|
||||
"realtime_log_config_arn": "",
|
||||
"response_headers_policy_id": "",
|
||||
"smooth_streaming": false,
|
||||
"target_origin_id": "bootstrap-with-tailwind",
|
||||
"trusted_key_groups": [],
|
||||
"trusted_signers": [],
|
||||
"viewer_protocol_policy": "allow-all"
|
||||
}
|
||||
],
|
||||
"default_root_object": "index.html",
|
||||
"domain_name": "d3c1oegbqp79pl.cloudfront.net",
|
||||
"enabled": true,
|
||||
"etag": "E3M8B4WDPWP4BD",
|
||||
"hosted_zone_id": "Z2FDTNDATAQYW2",
|
||||
"http_version": "http2",
|
||||
"id": "E13YDBQMYHGRJD",
|
||||
"in_progress_validation_batches": 0,
|
||||
"is_ipv6_enabled": true,
|
||||
"last_modified_time": "2023-02-17 10:38:45.472 +0000 UTC",
|
||||
"logging_config": [],
|
||||
"ordered_cache_behavior": [],
|
||||
"origin": [
|
||||
{
|
||||
"connection_attempts": 3,
|
||||
"connection_timeout": 10,
|
||||
"custom_header": [],
|
||||
"custom_origin_config": [],
|
||||
"domain_name": "bootstrap-with-tailwind.s3.eu-west-2.amazonaws.com",
|
||||
"origin_access_control_id": "E1H23UAQH7L3XM",
|
||||
"origin_id": "bootstrap-with-tailwind",
|
||||
"origin_path": "",
|
||||
"origin_shield": [],
|
||||
"s3_origin_config": []
|
||||
}
|
||||
],
|
||||
"origin_group": [],
|
||||
"price_class": "PriceClass_100",
|
||||
"restrictions": [
|
||||
{
|
||||
"geo_restriction": [
|
||||
{
|
||||
"locations": [
|
||||
"CA",
|
||||
"GB",
|
||||
"US"
|
||||
],
|
||||
"restriction_type": "whitelist"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"retain_on_delete": false,
|
||||
"status": "Deployed",
|
||||
"tags": {},
|
||||
"tags_all": {},
|
||||
"trusted_key_groups": [
|
||||
{
|
||||
"enabled": false,
|
||||
"items": []
|
||||
}
|
||||
],
|
||||
"trusted_signers": [
|
||||
{
|
||||
"enabled": false,
|
||||
"items": []
|
||||
}
|
||||
],
|
||||
"viewer_certificate": [
|
||||
{
|
||||
"acm_certificate_arn": "arn:aws:acm:us-east-1:683884983164:certificate/c43e567e-28d7-4138-8844-033fb177f69f",
|
||||
"cloudfront_default_certificate": false,
|
||||
"iam_certificate_id": "",
|
||||
"minimum_protocol_version": "TLSv1",
|
||||
"ssl_support_method": "sni-only"
|
||||
}
|
||||
],
|
||||
"wait_for_deployment": true,
|
||||
"web_acl_id": ""
|
||||
},
|
||||
"sensitive_attributes": [],
|
||||
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
|
||||
"dependencies": [
|
||||
"aws_cloudfront_origin_access_control.bootstrap-with-tailwind",
|
||||
"aws_s3_bucket.bootstrap-with-tailwind",
|
||||
"data.aws_acm_certificate.bootstrap-with-tailwind"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "aws_cloudfront_origin_access_control",
|
||||
"name": "bootstrap-with-tailwind",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"description": "bootstrap-with-tailwind",
|
||||
"etag": "ETVPDKIKX0DER",
|
||||
"id": "E1H23UAQH7L3XM",
|
||||
"name": "bootstrap-with-tailwind",
|
||||
"origin_access_control_origin_type": "s3",
|
||||
"signing_behavior": "always",
|
||||
"signing_protocol": "sigv4"
|
||||
},
|
||||
"sensitive_attributes": [],
|
||||
"private": "bnVsbA=="
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "aws_s3_bucket",
|
||||
"name": "bootstrap-with-tailwind",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"acceleration_status": "",
|
||||
"acl": null,
|
||||
"arn": "arn:aws:s3:::bootstrap-with-tailwind",
|
||||
"bucket": "bootstrap-with-tailwind",
|
||||
"bucket_domain_name": "bootstrap-with-tailwind.s3.amazonaws.com",
|
||||
"bucket_prefix": null,
|
||||
"bucket_regional_domain_name": "bootstrap-with-tailwind.s3.eu-west-2.amazonaws.com",
|
||||
"cors_rule": [],
|
||||
"force_destroy": false,
|
||||
"grant": [
|
||||
{
|
||||
"id": "",
|
||||
"permissions": [
|
||||
"READ"
|
||||
],
|
||||
"type": "Group",
|
||||
"uri": "http://acs.amazonaws.com/groups/global/AllUsers"
|
||||
},
|
||||
{
|
||||
"id": "e7f52048ce51a47905912dc3ef8fcb1fbd673832cfc6c62f3f6616dbbd9bd694",
|
||||
"permissions": [
|
||||
"FULL_CONTROL"
|
||||
],
|
||||
"type": "CanonicalUser",
|
||||
"uri": ""
|
||||
}
|
||||
],
|
||||
"hosted_zone_id": "Z3GKZC51ZF0DB4",
|
||||
"id": "bootstrap-with-tailwind",
|
||||
"lifecycle_rule": [],
|
||||
"logging": [],
|
||||
"object_lock_configuration": [],
|
||||
"object_lock_enabled": false,
|
||||
"policy": "",
|
||||
"region": "eu-west-2",
|
||||
"replication_configuration": [],
|
||||
"request_payer": "BucketOwner",
|
||||
"server_side_encryption_configuration": [],
|
||||
"tags": {},
|
||||
"tags_all": {},
|
||||
"timeouts": null,
|
||||
"versioning": [
|
||||
{
|
||||
"enabled": false,
|
||||
"mfa_delete": false
|
||||
}
|
||||
],
|
||||
"website": [
|
||||
{
|
||||
"error_document": "",
|
||||
"index_document": "index.html",
|
||||
"redirect_all_requests_to": "",
|
||||
"routing_rules": ""
|
||||
}
|
||||
],
|
||||
"website_domain": "s3-website.eu-west-2.amazonaws.com",
|
||||
"website_endpoint": "bootstrap-with-tailwind.s3-website.eu-west-2.amazonaws.com"
|
||||
},
|
||||
"sensitive_attributes": [],
|
||||
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjoxMjAwMDAwMDAwMDAwLCJkZWxldGUiOjM2MDAwMDAwMDAwMDAsInJlYWQiOjEyMDAwMDAwMDAwMDAsInVwZGF0ZSI6MTIwMDAwMDAwMDAwMH19"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "aws_s3_bucket_acl",
|
||||
"name": "bootstrap-with-tailwind",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"access_control_policy": [
|
||||
{
|
||||
"grant": [
|
||||
{
|
||||
"grantee": [
|
||||
{
|
||||
"display_name": "",
|
||||
"email_address": "",
|
||||
"id": "",
|
||||
"type": "Group",
|
||||
"uri": "http://acs.amazonaws.com/groups/global/AllUsers"
|
||||
}
|
||||
],
|
||||
"permission": "READ"
|
||||
},
|
||||
{
|
||||
"grantee": [
|
||||
{
|
||||
"display_name": "",
|
||||
"email_address": "",
|
||||
"id": "e7f52048ce51a47905912dc3ef8fcb1fbd673832cfc6c62f3f6616dbbd9bd694",
|
||||
"type": "CanonicalUser",
|
||||
"uri": ""
|
||||
}
|
||||
],
|
||||
"permission": "FULL_CONTROL"
|
||||
}
|
||||
],
|
||||
"owner": [
|
||||
{
|
||||
"display_name": "",
|
||||
"id": "e7f52048ce51a47905912dc3ef8fcb1fbd673832cfc6c62f3f6616dbbd9bd694"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"acl": "public-read",
|
||||
"bucket": "bootstrap-with-tailwind",
|
||||
"expected_bucket_owner": "",
|
||||
"id": "bootstrap-with-tailwind,public-read"
|
||||
},
|
||||
"sensitive_attributes": [],
|
||||
"private": "bnVsbA==",
|
||||
"dependencies": [
|
||||
"aws_s3_bucket.bootstrap-with-tailwind"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "aws_s3_bucket_website_configuration",
|
||||
"name": "bootstrap-with-tailwind",
|
||||
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"bucket": "bootstrap-with-tailwind",
|
||||
"error_document": [],
|
||||
"expected_bucket_owner": "",
|
||||
"id": "bootstrap-with-tailwind",
|
||||
"index_document": [
|
||||
{
|
||||
"suffix": "index.html"
|
||||
}
|
||||
],
|
||||
"redirect_all_requests_to": [],
|
||||
"routing_rule": [],
|
||||
"routing_rules": "",
|
||||
"website_domain": "s3-website.eu-west-2.amazonaws.com",
|
||||
"website_endpoint": "bootstrap-with-tailwind.s3-website.eu-west-2.amazonaws.com"
|
||||
},
|
||||
"sensitive_attributes": [],
|
||||
"private": "bnVsbA==",
|
||||
"dependencies": [
|
||||
"aws_s3_bucket.bootstrap-with-tailwind"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"check_results": null
|
||||
}
|
Loading…
Reference in a new issue