terraform-provider-garage/docs/resources/bucket_key.md
Marc 'risson' Schmitt 2b61749be3
Add key, bucket, bucket_key, bucket_global_alias and bucket_local_alias resources
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@prologin.org>
2022-12-10 17:48:33 +01:00

48 lines
887 B
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "garage_bucket_key Resource - terraform-provider-garage"
subcategory: ""
description: |-
This resource can be used to manage Garage bucket global aliases.
---
# garage_bucket_key (Resource)
This resource can be used to manage Garage bucket global aliases.
## Example Usage
```terraform
resource "garage_key" "key" {
name = "my_key"
}
resource "garage_bucket" "bucket" {}
resource "garage_bucket_key" "bucket_key_read-only" {
bucket_id = garage_bucket.bucket.id
access_key_id = garage_key.key.acccess_key_id
read = true
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `access_key_id` (String)
- `bucket_id` (String)
### Optional
- `owner` (Boolean)
- `read` (Boolean)
- `write` (Boolean)
### Read-Only
- `id` (String) The ID of this resource.