terraform-provider-sakuracloud
terraform-provider-sakuracloud copied to clipboard
terraform v1.6以降との組み合わせでError: Invalid Provider Server Combination
以下のようなエラーが出る
│ Error: Invalid Provider Server Combination
│
│ with sakuracloud_switch.switch,
│ on infrastructure.tf line 25, in resource "sakuracloud_switch" "switch":
│ 25: resource "sakuracloud_switch" "switch" {
│
│ The combined provider has multiple implementations of the same resource type across underlying providers. Resource types must be implemented
│ by only one underlying provider. This is always an issue in the provider implementation and should be reported to the provider developers.
│
│ Duplicate resource type: sakuracloud_private_host
ワークアラウンド: 以下のいずれかで回避可能
- terraform v1.6より前のバージョンを使う
- terraform-provider-sakuracloud v2.25.0以前を使う
multiplexer説 https://github.com/hashicorp/terraform-plugin-mux
OpenTofuでも再現することを確認
$ tofu version
OpenTofu v1.6.0
on linux_amd64