Terraform module updates#4692
Conversation
|
Terraform plan for dev Plan: 1 to add, 1 to change, 1 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~ update in-place
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.dev.module.cors.null_resource.cors_header must be replaced
-/+ resource "null_resource" "cors_header" {
!~ id = "*******************" -> (known after apply)
!~ triggers = { # forces replacement
!~ "always_run" = "2025-03-14T14:22:41Z" -> (known after apply)
}
}
# module.dev.module.https-proxy.cloudfoundry_app.egress_app will be updated in-place
!~ resource "cloudfoundry_app" "egress_app" {
id = "a6eb3870-2769-4aa9-a8f2-f1a31939f563"
name = "https-proxy"
!~ source_code_hash = "5a8b0befc063a4694d176a8e843be43565ed3f15d6d4fe2c19693d6d10568c25" -> "48b2f5eba8d1f35c0fbc2f90c2ec87cab180f5f19e7e34b16b9190fe5c5ca09a"
# (21 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 1 to add, 1 to change, 1 to destroy.✅ Plan applied in Deploy to Development and Management Environment #964 |
|
Terraform plan for meta No changes. Your infrastructure matches the configuration.✅ Plan applied in Deploy to Development and Management Environment #964 |
|
This pull request is not up to date with main. Please merge main into this brach or rebase this branch onto main. This PR should not be approved until all status checks pass. If you see this message, please rerun all status checks before merging. |
|
This pull request is not up to date with main. Please merge main into this brach or rebase this branch onto main. This PR should not be approved until all status checks pass. If you see this message, please rerun all status checks before merging. |
|
This pull request is not up to date with main. Please merge main into this brach or rebase this branch onto main. This PR should not be approved until all status checks pass. If you see this message, please rerun all status checks before merging. |
a1c45aa to
98d01ab
Compare
2740ee4 to
d412377
Compare
|
Currently, we are expecting the meta module to have all of these changes listed in the terraform plan, however, this will not actually be the case. [10:06 AM][asteel][meta]$ aws s3 ls s3://$BUCKET/
2025-02-14 10:06:59 73829 terraform.tfstate.meta
2025-02-14 10:06:49 76320 terraform.tfstate.meta.newproviderI have made a backup of the terraform plan that is illustrated here under As part of the operation, we will need to rerun a |
jadudm
left a comment
There was a problem hiding this comment.
We have tested this code against all lower environments, and carried out the manual update to each env (sandbox, preview, dev, staging, and production). This is documented as part of the commit. This is the final step: merging this into main, and then testing a deploy against each environment.
|
This PR encapsulates the necessary changes to upgrade our modules from
v1.1.0tov2.1.0insandbox. The process is detailed in the new docdocs/infra/terraform-module-upgrade.mdThis will require 1-2 members of the team to do a call and walkthrough exactly what is happening behind the scenes. Once we move this into
main, we will need to repeat these steps inpreviewon a call and ensure everything works the same way. Because we have toimportthe resource, I believe each environment will need changes to themain.tffile, and it is recommended that we proceed carefully.My hunch at this time, is to perform these steps locally, run the apply locally, and then open a PR to keep things in sync.
For the new network policy for
app -> clamav, I believe we will need to add this into the terraform for non-sandbox envs: