Skip to content

Commit 1bfc03f

Browse files
committed
terraform: migrate to opentofu registry
1 parent 80fb0f7 commit 1bfc03f

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

terraform/cache-bucket/providers.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
aws = {
4-
source = "registry.terraform.io/hashicorp/aws"
4+
source = "registry.opentofu.org/hashicorp/aws"
55
}
66
}
77
}

terraform/flake-module.nix

+9-6
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ in
1919
packages = [
2020
pkgs.awscli2
2121
# 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+
))
2831
];
2932
};
3033

terraform/terraform.tf

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ terraform {
99

1010
required_providers {
1111
aws = {
12-
source = "registry.terraform.io/hashicorp/aws"
12+
source = "registry.opentofu.org/hashicorp/aws"
1313
}
1414
fastly = {
15-
source = "registry.terraform.io/fastly/fastly"
15+
source = "registry.opentofu.org/fastly/fastly"
1616
}
1717
netlify = {
18-
source = "registry.terraform.io/AegirHealth/netlify"
18+
source = "registry.opentofu.org/AegirHealth/netlify"
1919
}
2020
secret = {
21-
source = "registry.terraform.io/numtide/secret"
21+
source = "registry.opentofu.org/numtide/secret"
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)