@cryptotaxi247 / infra / commits / 1bfc03ff

terraform: migrate to opentofu registry

Martin Weinelt committed Dec 11, 2024 at 03:24 UTC 1bfc03ffbb51fbce8122c355242f4eed9b958bcb
3 files changed +14 -11
terraform/cache-bucket/providers.tf
+1 -1
@@ -1,7 +1,7 @@
1 terraform {
2 required_providers {
3 aws = {
4 - source = "registry.terraform.io/hashicorp/aws"
4 + source = "registry.opentofu.org/hashicorp/aws"
5 }
6 }
7 }
terraform/flake-module.nix
+9 -6
@@ -19,12 +19,15 @@ in
19 packages = [
20 pkgs.awscli2
21 # TODO: migrate registry for opentofu as well.
22 - (pkgs.opentofu.withPlugins (p: [
23 - p.aws
24 - p.fastly
25 - p.netlify
26 - p.secret
27 - ]))
22 + (pkgs.opentofu.withPlugins (
23 + p:
24 + builtins.map convert2Tofu [
25 + p.aws
26 + p.fastly
27 + p.netlify
28 + p.secret
29 + ]
30 + ))
31 ];
32 };
33
terraform/terraform.tf
+4 -4
@@ -9,16 +9,16 @@ terraform {
9
10 required_providers {
11 aws = {
12 - source = "registry.terraform.io/hashicorp/aws"
12 + source = "registry.opentofu.org/hashicorp/aws"
13 }
14 fastly = {
15 - source = "registry.terraform.io/fastly/fastly"
15 + source = "registry.opentofu.org/fastly/fastly"
16 }
17 netlify = {
18 - source = "registry.terraform.io/AegirHealth/netlify"
18 + source = "registry.opentofu.org/AegirHealth/netlify"
19 }
20 secret = {
21 - source = "registry.terraform.io/numtide/secret"
21 + source = "registry.opentofu.org/numtide/secret"
22 }
23 }
24 }