Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 4.7 KB

README.md

File metadata and controls

57 lines (43 loc) · 4.7 KB

Flexible Engine OBS Terraform Module

Terraform module which creates OBS Bucket on Flexible Engine

Official Terraform documentation for OBS : https://registry.terraform.io/providers/FlexibleEngineCloud/flexibleengine/latest/docs/resources/obs_bucket

Requirements

Name Version
terraform >= 0.13

Providers

Name Version
flexibleengine n/a

Modules

No modules.

Resources

Name Type
flexibleengine_obs_bucket.this resource
flexibleengine_s3_bucket_policy.this resource

Inputs

Name Description Type Default Required
acl (Optional) The canned ACL to apply. Defaults to 'private'. Conflicts with grant string "private" no
attach_policy Controls if OBS bucket should have bucket policy attached (set to true to use value of policy as bucket policy) bool false no
bucket (Optional, Forces new resource) The name of the bucket. If omitted, Terraform will assign a random, unique name. string null no
bucket_prefix (Optional, Forces new resource) Creates a unique bucket name beginning with the specified prefix. Conflicts with bucket. string null no
cors_rule List of maps containing rules for Cross-Origin Resource Sharing. any [] no
create_bucket Controls if OBS bucket should be created bool true no
encryption Controls if OBS bucket should be encrypted bool false no
force_destroy (Optional, Default:false ) A boolean that indicates all objects should be deleted from the bucket so that the bucket can be destroyed without error. These objects are not recoverable. bool false no
kms_key_alias Alias of existing KMS key used for encryption string null no
lifecycle_rule List of maps containing configuration of object lifecycle management. any [] no
logging Map containing access bucket logging configuration. map(string) {} no
multi_az Enable cross availabilities zones replication. bool false no
policy (Optional) A valid bucket policy JSON document. Note that if the policy document is not specific enough (but still valid), Terraform may view the policy as constantly changing in a terraform plan. In this case, please make sure you use the verbose/specific version of the policy. string null no
storage_class (Optional) pecifies the storage class of the bucket. OBS provides three storage classes: STANDARD, STANDARD_IA (Infrequent Access) and GLACIER (Archive). Defaults to STANDARD. string null no
versioning Versioning configuration (True/False). bool false no
website Map containing static web-site hosting or redirect configuration. map(string) {} no

Outputs

Name Description
this_obs_bucket_bucket_domain_name The bucket domain name. Will be of format .oss..prod-cloud-ocb.orange-business.com.
this_obs_bucket_id The name of the bucket.
this_obs_bucket_region The Flexible Engine region this bucket resides in.