hashicorp / terraform-provider-oneandone

Terraform 1&1 provider. Please note: This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://www.terraform.io/docs/providers/oneandone/
Mozilla Public License 2.0
5 stars 11 forks source link

Block Storage Attach #18

Closed jasmingacic closed 6 years ago

jasmingacic commented 6 years ago

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

Affected Resource(s)

Please list the resources as a list, for example:

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "oneandone_server" "server" {
  name                = "Example"
  description         = "Terraform 1and1 tutorial"
  image               = "centos6-64std"
  datacenter          = "US"
  vcores              = 1
  cores_per_processor = 1
  ram                 = 2
  ssh_key_public      = "${file("/xxx/id_rsa.pub")}"
  hdds = [
    {
      disk_size = 60
      is_main   = true
    },
  ]
}

resource "oneandone_block_storage" "storage" {
  name        = "test_blk_storage1"
  description = "testing_blk_storage"
  size        = 20
  datacenter  = "US"
  server_id = "${oneandone_server.server.id}"
}

Expected Behavior

Upon apply the block storage should be attached to the server. Block storage doesn't get attached. Attaching the block storage by editing the block storage resource doesn't work because server_id is marked DiffSuppressFunc

With the current implementation oneandone_block_storage is not functional.