-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Terraform cleanups #459
Terraform cleanups #459
Conversation
Mic92
commented
Aug 18, 2024
•
edited
Loading
edited
Makes it easier to tell flake-modules from other files.
also switch to opentofu to avoid unfree package evaluation
Since we manage terraform plugins with nix, we don't need these lock files to pin modules.
c02fe45
to
89dbf77
Compare
p.netlify | ||
p.secret | ||
] ++ [ | ||
# FIXME: for our `terraform` target our state file still uses the old registry prefix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to patch the state after this pull request is merged to not break the existing setup.
our terraform targets are similar enough that we can just share devShell between them
we use nix for pinning instead.
89dbf77
to
cd9350e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sound good. Terragrunt as a more graceful auto-init feature that could be used instead.
|
||
cd "$(dirname "$0")" | ||
rm -f .terraform.lock.hcl | ||
tofu init |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this slow down each terraform invocation?
Agreed. It would also make it easier to split up targets. |