Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit 574fc00

Browse files
authored
Fix the TF State Resource Name (#21)
* debugging tutorial * reset TODO * comment on v5 pinnning
1 parent 331ab77 commit 574fc00

File tree

3 files changed

+18
-5
lines changed

3 files changed

+18
-5
lines changed

03-first-aws-environment/components/terraform/static-site/main.tf

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
module "cdn" {
22
source = "cloudposse/cloudfront-s3-cdn/aws"
3-
version = "0.83.0"
3+
version = "0.90.0"
44

5-
name = "static-site"
6-
website_enabled = true
5+
name = "static-site"
6+
website_enabled = true
7+
cloudfront_access_logging_enabled = false
78

89
context = module.this.context
910
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
terraform {
2+
required_version = ">= 1.0.0"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
# Note, we are not upgrading to v5 until this issue is resolved:
8+
# https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn/issues/279
9+
version = "< 5"
10+
}
11+
}
12+
}

03-first-aws-environment/stacks/catalog/globals.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ terraform:
55
backend:
66
s3:
77
encrypt: true
8-
bucket: "acme-ue2-tfstate-TODO"
8+
bucket: "acme-ue2-root-tfstate-TODO"
99
key: "terraform.tfstate"
10-
dynamodb_table: "acme-ue2-tfstate-lock-TODO"
10+
dynamodb_table: "acme-ue2-root-tfstate-lock-TODO"
1111
acl: "bucket-owner-full-control"
1212
region: "us-east-2"

0 commit comments

Comments
 (0)