Resource
dcloud_s3_access_key
An S3 access key acting as the caller's IAM user (the one Terraform authenticates as). The secret is returned once, at create, and kept only in Terraform state (secret_access_key, sensitive): protect the state. It cannot be recovered after an import.
Example Usage
resource "dcloud_s3_access_key" "backup" {
description = "nightly backup job"
}
output "backup_access_key_id" {
value = dcloud_s3_access_key.backup.access_key_id
}
output "backup_secret_access_key" {
value = dcloud_s3_access_key.backup.secret_access_key
sensitive = true
}Schema
Optional
description(String) What the key is for. Up to 200 characters. Changing it replaces the resource.
Read-Only
access_key_id(String) The access key id.iam_user_id(String) The IAM user the key acts as.id(String) The resource's id.secret_access_key(String, Sensitive) The secret access key, returned once at create and kept only in state. Empty after an import.status(String) The key's status.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# The secret is not recoverable: after an import `secret_access_key` is empty.
terraform import dcloud_s3_access_key.backup <key-id>Generated from the provider's schema.
Related