Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update aws provider in wiz module #452

Merged
merged 1 commit into from
Jul 31, 2024
Merged

chore: update aws provider in wiz module #452

merged 1 commit into from
Jul 31, 2024

Conversation

MarcoIeni
Copy link
Member

@MarcoIeni MarcoIeni commented Jul 22, 2024

Closes one of the tasks of #437

How do I update the lockfiles of every module using this?

I think I need to run terragrount init but in which directory? Is there an automated way to run this in all modules?

@@ -2,23 +2,24 @@
# Manual edits may be lost in future updates.

provider "registry.terraform.io/hashicorp/aws" {
version = "5.4.0"
version = "5.59.0"
constraints = "~> 5.59"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious why it added the constraint after running terragrunt init --upgrade

@jdno
Copy link
Member

jdno commented Jul 29, 2024

Is there an automated way to run this in all modules?

No. We don't have many modules that depend on each other like this, so we haven't automated applying changes to all reverse dependencies of a module. And personally, I also don't think it would work well with Terraform. So the only way to do it right now is to update each state one-by-one manually.

@MarcoIeni
Copy link
Member Author

How I did this PR:

  1. update the aws versioon in terragrunt/modules/wiz/_terraform.tf
  2. In every state:
    a. run terraform init --upgrade. This updates the lockfile
    b. run terraform plan to verify that the update doesn't update the state.

@MarcoIeni MarcoIeni marked this pull request as ready for review July 30, 2024 15:15
@MarcoIeni MarcoIeni mentioned this pull request Jul 30, 2024
53 tasks
@MarcoIeni MarcoIeni merged commit 8304417 into master Jul 31, 2024
6 checks passed
@MarcoIeni MarcoIeni deleted the wiz-aws-5.59 branch July 31, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants