openstack_images_image_access_v2

Manages members for the shared OpenStack Glance V2 Image within the source project, which owns the Image.

Example Usage

Unprivileged user

Create a shared image and propose a membership to the bed6b6cbb86a4e2d8dc2735c2f1000e4 project ID.

resource "openstack_images_image_v2" "rancheros" {
  name             = "RancherOS"
  image_source_url = "https://releases.rancher.com/os/latest/rancheros-openstack.img"
  container_format = "bare"
  disk_format      = "qcow2"
  visibility       = "shared"

  properties = {
    key = "value"
  }
}

resource "openstack_images_image_access_v2" "rancheros_member" {
  image_id  = openstack_images_image_v2.rancheros.id
  member_id = "bed6b6cbb86a4e2d8dc2735c2f1000e4"
}

Privileged user

Create a shared image and set a membership to the bed6b6cbb86a4e2d8dc2735c2f1000e4 project ID.

resource "openstack_images_image_v2" "rancheros" {
  name             = "RancherOS"
  image_source_url = "https://releases.rancher.com/os/latest/rancheros-openstack.img"
  container_format = "bare"
  disk_format      = "qcow2"
  visibility       = "shared"

  properties = {
    key = "value"
  }
}

resource "openstack_images_image_access_v2" "rancheros_member" {
  image_id  = openstack_images_image_v2.rancheros.id
  member_id = "bed6b6cbb86a4e2d8dc2735c2f1000e4"
  status    = "accepted"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Image access can be imported using the image_id and the member_id, separated by a slash, e.g.

$ terraform import openstack_images_image_access_v2 89c60255-9bd6-460c-822a-e2b959ede9d2/bed6b6cbb86a4e2d8dc2735c2f1000e4