Skip to content

Commit

Permalink
terraform: migrate to opentofu registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Dec 11, 2024
1 parent 68e884e commit 3d6fc7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion terraform/cache-bucket/providers.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
terraform {
required_providers {
aws = {
source = "registry.terraform.io/hashicorp/aws"
source = "registry.opentofu.org/hashicorp/aws"
}
}
}
4 changes: 3 additions & 1 deletion terraform/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ in
packages = [
pkgs.awscli2
# TODO: migrate registry for opentofu as well.
(pkgs.opentofu.withPlugins (p: [
(pkgs.opentofu.withPlugins (
p:
builtins.map convert2Tofu [
p.aws
p.fastly
p.netlify
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 = "registry.terraform.io/hashicorp/aws"
source = "registry.opentofu.org/hashicorp/aws"
}
fastly = {
source = "registry.terraform.io/fastly/fastly"
source = "registry.opentofu.org/fastly/fastly"
}
netlify = {
source = "registry.terraform.io/AegirHealth/netlify"
source = "registry.opentofu.org/AegirHealth/netlify"
}
secret = {
source = "registry.terraform.io/numtide/secret"
source = "registry.opentofu.org/numtide/secret"
}
}
}
Expand Down

0 comments on commit 3d6fc7b

Please sign in to comment.