Skip to content

data source instance_snapshot #1600

@Codelax

Description

@Codelax

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

Description

New or Affected Resource(s)

  • scaleway_instance_snapshot

Potential Terraform Configuration

resource scaleway_instance_ip ip {}

data "scaleway_instance_snapshot" "snapshot" {
  name = "my_snapshot"
}

resource "scaleway_instance_volume" "from_snapshot" {
  from_snapshot_id = data.scaleway_instance_snapshot.snapshot.id
  type = "b_ssd"
}

resource "scaleway_instance_server" "from_snapshot" {
  type = "PRO2-XXS"
  image = "ubuntu_jammy"
  ip_id = scaleway_instance_ip.ip.id
  root_volume {
    volume_id = scaleway_instance_volume.from_snapshot.id
  }
}

References

  • #0000

Metadata

Metadata

Assignees

Labels

enhancementinstanceInstance 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