terraform-provider-sakuracloud icon indicating copy to clipboard operation
terraform-provider-sakuracloud copied to clipboard

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

Open yamamoto-febc opened this issue 1 year ago • 3 comments

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

│ 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 avatar Dec 23 '23 00:12 yamamoto-febc

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

  • terraform v1.6より前のバージョンを使う
  • terraform-provider-sakuracloud v2.25.0以前を使う

yamamoto-febc avatar Dec 23 '23 00:12 yamamoto-febc

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

lvctr avatar Dec 27 '23 01:12 lvctr

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

$ tofu version
OpenTofu v1.6.0
on linux_amd64

yamamoto-febc avatar Jan 24 '24 04:01 yamamoto-febc