Terraform module which creates OSS bucket.
These types of resources are supported:
You can use this in your terraform template with the following steps.
-
Adding a module resource to your template, e.g. main.tf
module "oss-bucket" { source = "terraform-alicloud-modules/oss-bucket/alicloud" bucket_name = "just_a_test" acl = "private" }
-
Setting
access_key
andsecret_key
values through environment variables:- ALICLOUD_ACCESS_KEY
- ALICLOUD_SECRET_KEY
- ALICLOUD_REGION
Name | Description | Type | Default | Required |
---|---|---|---|---|
Name | Description | Type | Default | Required |
------ | ------------- | :----: | :-----: | :-----: |
bucket_name | the bucket you want to create and operate | string | - | yes |
acl | bucket acl,may be private,public-read,public-read-write,default is private | string | - | no |
website | A website object | list | [] | no |
logging | A Settings of bucket logging | list | [] | no |
logging_isenable | The flag of using logging enable container. Defaults true | string | "true" | no |
referer_config | The configuration of referer | list | [] | no |
lifecycle_rule | A configuration of object lifecycle management | list | [] | no |
policy | JSON formatted bucket policy text to attach to the bucket | string | "" | no |
Name | Description |
---|---|
this_oss_bucket_id | the name of the bucket |
Created and maintained by He Guimin(@xiaozhu36 or @coderall, [email protected] or [email protected])