Skip to content

Latest commit

 

History

History
100 lines (75 loc) · 1.57 KB

File metadata and controls

100 lines (75 loc) · 1.57 KB

gridscale_object_storage_accesskey

back

Index

Terraform

terraform {
  required_providers {
    gridscale = ">= 1.8.4"
  }
}

top

Example Usage

module "gridscale_object_storage_accesskey" {
  source = "./modules/gridscale/r/gridscale_object_storage_accesskey"


  timeouts = [{
    create = null
    delete = null
  }]
}

top

Variables

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
    }
  ))
  default = []
}

top

Resource

resource "gridscale_object_storage_accesskey" "this" {

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
    }
  }

}

top

Outputs

output "access_key" {
  description = "returns a string"
  value       = gridscale_object_storage_accesskey.this.access_key
}

output "id" {
  description = "returns a string"
  value       = gridscale_object_storage_accesskey.this.id
}

output "secret_key" {
  description = "returns a string"
  value       = gridscale_object_storage_accesskey.this.secret_key
}

output "this" {
  value = gridscale_object_storage_accesskey.this
}

top