Skip to content

Commit 5c887b5

Browse files
committed
Use pinned versions of modules.
1 parent ac16e02 commit 5c887b5

File tree

7 files changed

+89
-104
lines changed

7 files changed

+89
-104
lines changed

tofu/config/development/.terraform.lock.hcl

+25-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tofu/config/development/main.tf

+3-7
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ terraform {
88
}
99

1010
module "backend" {
11-
# TODO: Create releases for tofu-modules and pin to a release.
12-
# tflint-ignore: terraform_module_pinned_source
13-
source = "github.com/codeforamerica/tofu-modules/aws/backend"
11+
source = "github.com/codeforamerica/tofu-modules-aws-backend?ref=1.0.0"
1412

1513
project = "illinois-getchildcare"
1614
environment = "development"
@@ -32,8 +30,7 @@ module "hosted_zones" {
3230

3331
# Create an S3 bucket and KMS key for logging.
3432
module "logging" {
35-
# tflint-ignore: terraform_module_pinned_source
36-
source = "github.com/codeforamerica/tofu-modules/aws/logging"
33+
source = "github.com/codeforamerica/tofu-modules-aws-logging?ref=1.2.1"
3734

3835
project = "illinois-getchildcare"
3936
environment = "development"
@@ -42,8 +39,7 @@ module "logging" {
4239
# Create a VPC with public and private subnets. Since this is a development
4340
# environment, we'll use a single NAT gateway to reduce costs.
4441
module "vpc" {
45-
# tflint-ignore: terraform_module_pinned_source
46-
source = "github.com/codeforamerica/tofu-modules/aws/vpc"
42+
source = "github.com/codeforamerica/tofu-modules-aws-vpc?ref=1.1.0"
4743

4844
cidr = "10.0.20.0/22"
4945
project = "illinois-getchildcare"

tofu/config/production/.terraform.lock.hcl

+25-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tofu/config/production/main.tf

+4-7
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ terraform {
88
}
99

1010
module "backend" {
11-
# TODO: Create releases for tofu-modules and pin to a release.
12-
# tflint-ignore: terraform_module_pinned_source
13-
source = "github.com/codeforamerica/tofu-modules/aws/backend"
11+
source = "github.com/codeforamerica/tofu-modules-aws-backend?ref=1.0.0"
1412

1513
project = "illinois-getchildcare"
1614
environment = "prod"
@@ -31,17 +29,15 @@ module "hosted_zones" {
3129

3230
# Create an S3 bucket and KMS key for logging.
3331
module "logging" {
34-
# tflint-ignore: terraform_module_pinned_source
35-
source = "github.com/codeforamerica/tofu-modules/aws/logging"
32+
source = "github.com/codeforamerica/tofu-modules-aws-logging?ref=1.2.1"
3633

3734
project = "illinois-getchildcare"
3835
environment = "prod"
3936
}
4037

4138
# Create a VPC with public and private subnets.
4239
module "vpc" {
43-
# tflint-ignore: terraform_module_pinned_source
44-
source = "github.com/codeforamerica/tofu-modules/aws/vpc"
40+
source = "github.com/codeforamerica/tofu-modules-aws-vpc?ref=1.1.0"
4541
depends_on = [module.logging]
4642

4743
cidr = "10.0.24.0/22"
@@ -66,6 +62,7 @@ module "microservice" {
6662
source = "../../modules/document_transfer"
6763

6864
environment = "prod"
65+
stats_environment = "production"
6966
logging_key = module.logging.kms_key_arn
7067
vpc_id = module.vpc.vpc_id
7168
database_capacity_min = 2

tofu/config/staging/.terraform.lock.hcl

+25-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tofu/config/staging/main.tf

+3-7
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ terraform {
88
}
99

1010
module "backend" {
11-
# TODO: Create releases for tofu-modules and pin to a release.
12-
# tflint-ignore: terraform_module_pinned_source
13-
source = "github.com/codeforamerica/tofu-modules/aws/backend"
11+
source = "github.com/codeforamerica/tofu-modules-aws-backend?ref=1.0.0"
1412

1513
project = "illinois-getchildcare"
1614
environment = "staging"
@@ -31,8 +29,7 @@ module "hosted_zones" {
3129

3230
# Create an S3 bucket and KMS key for logging.
3331
module "logging" {
34-
# tflint-ignore: terraform_module_pinned_source
35-
source = "github.com/codeforamerica/tofu-modules/aws/logging"
32+
source = "github.com/codeforamerica/tofu-modules-aws-logging?ref=1.2.1"
3633

3734
project = "illinois-getchildcare"
3835
environment = "staging"
@@ -41,8 +38,7 @@ module "logging" {
4138
# Create a VPC with public and private subnets. Since this is a staging
4239
# environment, we'll use a single NAT gateway to reduce costs.
4340
module "vpc" {
44-
# tflint-ignore: terraform_module_pinned_source
45-
source = "github.com/codeforamerica/tofu-modules/aws/vpc"
41+
source = "github.com/codeforamerica/tofu-modules-aws-vpc?ref=1.1.0"
4642

4743
cidr = "10.0.20.0/22"
4844
project = "illinois-getchildcare"

tofu/modules/document_transfer/main.tf

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module "secrets" {
2-
# tflint-ignore: terraform_module_pinned_source
3-
source = "github.com/codeforamerica/tofu-modules/aws/secrets"
2+
source = "github.com/codeforamerica/tofu-modules-aws-secrets?ref=1.0.0"
43

54
project = "illinois-getchildcare"
65
environment = var.environment
@@ -27,8 +26,7 @@ module "secrets" {
2726
}
2827

2928
module "database" {
30-
# tflint-ignore: terraform_module_pinned_source
31-
source = "github.com/codeforamerica/tofu-modules/aws/serverless_database"
29+
source = "github.com/codeforamerica/tofu-modules-aws-serverless-database?ref=1.0.0"
3230

3331
logging_key_arn = var.logging_key
3432
secrets_key_arn = module.secrets.kms_key_arn
@@ -53,8 +51,7 @@ module "database" {
5351

5452
# Deploy the Document Transfer service to a Fargate cluster.
5553
module "service" {
56-
# tflint-ignore: terraform_module_pinned_source
57-
source = "github.com/codeforamerica/tofu-modules/aws/fargate_service"
54+
source = "github.com/codeforamerica/tofu-modules-aws-fargate-service?ref=1.0.0"
5855

5956
project = "illinois-getchildcare"
6057
project_short = "il-gcc"
@@ -95,8 +92,7 @@ module "service" {
9592

9693
# TODO: Onedrive secrets
9794
module "worker" {
98-
# tflint-ignore: terraform_module_pinned_source
99-
source = "github.com/codeforamerica/tofu-modules/aws/fargate_service"
95+
source = "github.com/codeforamerica/tofu-modules-aws-fargate-service?ref=1.0.0"
10096

10197
project = "illinois-getchildcare"
10298
project_short = "il-gcc"

0 commit comments

Comments
 (0)