This modules creates an OBS Bucket with KMS SSE default encryption and user that able to access to it.
Note
Please remember that OBS and KMS work only on top level projects (eu-de or eu-nl) !!!
provider "opentelekomcloud" {
alias = "top_level_project"
max_retries = 100
auth_url = "https://iam.eu-de.otc.t-systems.com/v3"
tenant_name = "eu-de"
region = "eu-de"
}
module "obs_restricted_eu_de" {
source = "iits-consulting/obs_restricted/opentelekomcloud"
bucket_name = var.bucket_name
providers = {
opentelekomcloud = opentelekomcloud.top_level_project
}
}| Name | Version |
|---|---|
| terraform | >= 1.5.7 |
| errorcheck | 3.0.3 |
| opentelekomcloud | ~> 1.36 |
| random | ~> 3.0 |
| Name | Version |
|---|---|
| errorcheck | 3.0.3 |
| opentelekomcloud | ~> 1.36 |
| random | ~> 3.0 |
No modules.
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| bucket_name | Bucket name. Make sure the provider for this module has tennant_name= set | string |
n/a | yes |
| enable_versioning | Disable the versioning for the bucket. Default: true | bool |
true |
no |
| force_destroy | Destroy all objects from the bucket so that the bucket can be destroyed without error. | bool |
false |
no |
| lifecycle_rules | Lifecycle rules for the bucket. Default: null | list(object({ |
[] |
no |
| tags | n/a | map(string) |
null |
no |
| worm_policy | [Optional] Enables and sets number of years OR days for the WORM policy retention period. Only one can be set, not both. | object({ |
null |
no |
| Name | Description |
|---|---|
| bucket_access_key | OBS bucket access key for the created user. Can only access to the specific bucket and the specific KMS key used for bucket encryption. |
| bucket_name | OBS bucket name passthrough with dependency chain. |
| bucket_secret_key | OBS bucket secret key for the created user. Can only access to the specific bucket and the specific KMS key used for bucket encryption. |