Skip to content

cloud-labs-infra/terraform-huaweicloud-obs

Repository files navigation

Huawei Cloud OBS

Requirements

Name Version
terraform ~> 1.7
huaweicloud ~>1.63

Providers

Name Version
huaweicloud ~>1.63

Modules

No modules.

Resources

Name Type
huaweicloud_obs_bucket.main resource

Inputs

Name Description Type Default Required
acl Specifies the ACL policy for a bucket string "private" no
cors_rules A configuration of object CORS rules:

* allowed_origins - Requests from this origin can access the bucket;
* allowed_methods - Specifies the acceptable operation type of buckets and objects;
* max_age_seconds - Specifies the duration that your browser can cache CORS responses, expressed in seconds;
list(object({
allowed_origins = list(string)
allowed_methods = list(string)
max_age_seconds = optional(number, 100)
}))
[] no
force_destroy A boolean that indicates all objects should be deleted from the bucket, so that the bucket can be destroyed without error bool false no
lifecycle_rules A configuration of object lifecycle management:

* key - Unique identifier for lifecycle rules, the Rule Name contains a maximum of 255 characters;
* enabled - Specifies lifecycle rule status;
* prefix - Object key prefix identifying one or more objects to which the rule applies. If omitted, all objects in
the bucket will be managed by the lifecycle rule;
* expiration_days - Specifies the number of days when objects that have been last updated are automatically deleted.
map(object({
enabled = optional(bool, true)
prefix = optional(string, null)
expiration_days = number
}))
{} no
name Specifies the name of the Object Store string n/a yes
name_postfix Name Postfix string null no
policy Specifies the text of the bucket policy in JSON format. For more information about obs format bucket policy,
see the Developer Guide https://support.huaweicloud.com/intl/en-us/perms-cfg-obs/obs_40_0004.html
string null no
policy_format Specifies the policy format, the supported values are obs and s3. Defaults to obs string null no
region Specifies the region in which to create the resource. If omitted, the provider-level region will be used string null no
storage_class Specifies the storage class of the bucket string "STANDARD" no
tags Specifies the key/value pairs to associate with the OBS map(string) {} no
versioning Whether enable versioning string false no

Outputs

Name Description
id The name of the bucket

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages