Skip to content

Commit

Permalink
terraform: upgrade nixpkgs, migrate to OpenTofu
Browse files Browse the repository at this point in the history
Terraform has moved to a proprietary license, so we're forced to switch
to OpenTofu.
  • Loading branch information
edef1c committed Jul 31, 2024
1 parent 481ff6c commit e9017bc
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 14 deletions.
60 changes: 55 additions & 5 deletions terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions terraform/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions terraform/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
mkShell {
packages = [
awscli2
(terraform.withPlugins (p: with p; [
(opentofu.withPlugins (p: with p; [
aws
fastly
netlify
Expand All @@ -17,7 +17,7 @@
];

shellHook = ''
alias tf=terraform
alias tf=tofu
'';
};

Expand Down
8 changes: 4 additions & 4 deletions terraform/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ terraform {

required_providers {
aws = {
source = "hashicorp/aws"
source = "registry.terraform.io/hashicorp/aws"
}
fastly = {
source = "fastly/fastly"
source = "registry.terraform.io/fastly/fastly"
}
netlify = {
source = "AegirHealth/netlify"
source = "registry.terraform.io/AegirHealth/netlify"
}
secret = {
source = "numtide/secret"
source = "registry.terraform.io/numtide/secret"
}
}
}
Expand Down

0 comments on commit e9017bc

Please sign in to comment.