Skip to content

Commit 9025ad4

Browse files
VIA-579 AJ Upgrade infrastructure (other environments) and add step to README
1 parent ed46ec7 commit 9025ad4

File tree

17 files changed

+232
-182
lines changed

17 files changed

+232
-182
lines changed

infrastructure/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,13 @@ To upgrade terraform itself and its module versions, it requires careful process
292292
- repeat the following for each incremental upgrade
293293
- upgrade - starting with the provider and then moving to third party modules, bump the version to next major version
294294
- do the "reset local environment" steps above
295-
- terraform init --upgrade
295+
- terraform init -upgrade
296296
- terraform providers lock -platform=linux_amd64 -platform=linux_arm64q
297297
- do the "build and deploy to your workspace" steps above
298298
- expect that no changes to your infrastructure are needed
299299

300+
Once done for dev environment, just replay the upgrade changes needed in other environments.
301+
300302
## OpenNext
301303

302304
OpenNext takes the Next.js build output and converts it into packages that can be deployed across a variety of environments.

infrastructure/environments/preprod/.terraform.lock.hcl

Lines changed: 42 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/environments/preprod/iam/.terraform.lock.hcl

Lines changed: 21 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infrastructure/environments/preprod/iam/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = "~> 5.0"
5+
version = "~> 6.0"
66
}
77
}
88

infrastructure/environments/preprod/provider.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = "~> 5.0"
5+
version = "~> 6.0"
66
}
77
}
88

infrastructure/environments/preprod/s3.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
module "content_cache_s3_bucket" {
22
source = "terraform-aws-modules/s3-bucket/aws"
3-
version = "~> 4.11.0"
3+
version = "~> 5.0"
44

5-
bucket = local.content_cache_bucket_name
6-
force_destroy = true
5+
bucket = local.content_cache_bucket_name
6+
force_destroy = true
7+
skip_destroy_public_access_block = false
78
versioning = {
89
enabled = true
910
}

infrastructure/environments/prod/.terraform.lock.hcl

Lines changed: 42 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)