Skip to content

Fix import on apple silicon #2284

Closed
@remyleone

Description

@remyleone

After creating an apple silicon server on the console and attempting to import it in terraform

terraform {
  required_providers {
    scaleway = {
      source = "scaleway/scaleway"
    }
  }
  required_version = ">= 0.13"
}

import {
  id = "fr-par-1/0f1f9ff8-cb30-4b4c-80d9-ecf3d5173fbb"
  to = scaleway_apple_silicon_server.foobar
}
$ rm -f generated.tf ; terraform plan -generate-config-out=generated.tf
scaleway_apple_silicon_server.foobar: Preparing import... [id=fr-par-1/0f1f9ff8-cb30-4b4c-80d9-ecf3d5173fbb]
scaleway_apple_silicon_server.foobar: Refreshing state... [id=fr-par-1/0f1f9ff8-cb30-4b4c-80d9-ecf3d5173fbb]

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Warning: Config generation is experimental
│ 
│ Generating configuration during import is currently experimental, and the generated configuration format may change in future versions.
╵
╷
│ Error: expected type to be one of ["M1-M"], got M2-L
│ 
│   with scaleway_apple_silicon_server.foobar,
│   on generated.tf line 3:
│   (source code not available)
│ 

Metadata

Metadata

Assignees

Labels

apple-siliconApple Silicon issues, bugs and feature requestspriority:highestBugs filled by customers, security issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions