terraform-provider-stackitp.../docs/resources/objectstorage_credential.md
Alexander Dahmen 721e10a02f
chore(examples): Add import examples for all resources (#939)
* chore(examples): Add import examples for all resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Add guide: How to import resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-08-08 14:03:27 +02:00

1.7 KiB

page_title subcategory description
stackit_objectstorage_credential Resource - stackit ObjectStorage credential resource schema. Must have a region specified in the provider configuration.

stackit_objectstorage_credential (Resource)

ObjectStorage credential resource schema. Must have a region specified in the provider configuration.

Example Usage

resource "stackit_objectstorage_credential" "example" {
  project_id           = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  credentials_group_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  expiration_timestamp = "2027-01-02T03:04:05Z"
}

# Only use the import statement, if you want to import an existing objectstorage credential
import {
  to = stackit_objectstorage_credential.import-example
  id = "${var.project_id},${var.region},${var.bucket_credentials_group_id},${var.bucket_credential_id}"
}

Schema

Required

  • credentials_group_id (String) The credential group ID.
  • project_id (String) STACKIT Project ID to which the credential group is associated.

Optional

  • expiration_timestamp (String) Expiration timestamp, in RFC339 format without fractional seconds. Example: "2025-01-01T00:00:00Z". If not set, the credential never expires.
  • region (String) The resource region. If not defined, the provider region is used.

Read-Only

  • access_key (String)
  • credential_id (String) The credential ID.
  • id (String) Terraform's internal resource identifier. It is structured as "project_id,region,credentials_group_id,credential_id".
  • name (String)
  • secret_access_key (String, Sensitive)