openstack_objectstorage_tempurl_v1

Use this resource to generate an OpenStack Object Storage temporary URL.

The temporary URL will be valid for as long as TTL is set to (in seconds). Once the URL has expired, it will no longer be valid, but the resource will remain in place. If you wish to automatically regenerate a URL, set the regenerate argument to true. This will create a new resource with a new ID and URL.

Example Usage

resource "openstack_objectstorage_container_v1" "container_1" {
  name = "test"
  metadata = {
    Temp-URL-Key = "testkey"
  }
}

resource "openstack_objectstorage_object_v1" "object_1" {
  container_name = openstack_objectstorage_container_v1.container_1.name
  name           = "test"
  content        = "Hello, world!"
}

resource "openstack_objectstorage_tempurl_v1" "obj_tempurl" {
  container = openstack_objectstorage_container_v1.container_1.name
  object    = openstack_objectstorage_object_v1.object_1.name
  method    = "post"
  ttl       = 20
}

Argument Reference

The following arguments are supported:

Attributes Reference