terraform-provider-garage/examples/resources/garage_bucket_key/resource.tf
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

12 lines
258 B
HCL

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
}