-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathresource.tf
More file actions
23 lines (19 loc) · 762 Bytes
/
resource.tf
File metadata and controls
23 lines (19 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
resource "stackit_objectstorage_bucket" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-bucket"
}
## With compliance lock
resource "stackit_objectstorage_compliance_lock" "example_with_lock" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resource "stackit_objectstorage_bucket" "example_with_lock" {
depends_on = [stackit_objectstorage_compliance_lock.example_with_lock]
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-bucket-with-lock"
object_lock = true
}
# Only use the import statement, if you want to import an existing objectstorage bucket
import {
to = stackit_objectstorage_bucket.import-example
id = "${var.project_id},${var.region},${var.bucket_name}"
}