sacloud / terraform-provider-sakuracloud

Terraform provider for SakuraCloud
https://docs.usacloud.jp/terraform
Apache License 2.0
71 stars 23 forks source link

terraform v1.6以降との組み合わせでError: Invalid Provider Server Combination #1131

Open yamamoto-febc opened 10 months ago

yamamoto-febc commented 10 months ago

以下のようなエラーが出る

│ 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
yamamoto-febc commented 10 months ago

ワークアラウンド: 以下のいずれかで回避可能

lvctr commented 10 months ago

multiplexer説 https://github.com/hashicorp/terraform-plugin-mux

yamamoto-febc commented 9 months ago

OpenTofuでも再現することを確認

$ tofu version
OpenTofu v1.6.0
on linux_amd64