Skip to content

Typo in scaleway_instance_image attributes reference #2818

Open
lootr/terraform-provider-scaleway
#1
@lootr

Description

@lootr

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

v1.6.6

Affected Resource(s)

  • scaleway_instance_image

Terraform Configuration Files

The following resource is inspired one from https://registry.terraform.io/providers/scaleway/scaleway/2.47.0/docs/resources/instance_image#with-additional-volumes

resource "scaleway_instance_image" "image" {
  name            = "image_with_extra_volumes"
  root_volume_id  = "fr-par-1/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  additional_volumes = [
    "fr-par-1/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  ]
}

Debug Output

Panic Output

│ Error: Incorrect attribute value type
│
│   on server.tf line 174, in resource "scaleway_instance_image" "image":
│  174:   additional_volumes = [
│  175:     "fr-par-1/00000000-0000-0000-0000-000000000000"
│  176:   ]
│
│ Inappropriate value for attribute "additional_volumes": element 0: object required.

Expected Behavior

That's expected because the resource is description buggy and the reference specifies an attribute named additional_volume_ids.

Actual Behavior

Steps to Reproduce

  1. terraform apply

Important Factoids

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationinstanceInstance issues, bugs and feature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions