cos-spa
Kagashino/cos-spa/tencentcloud
This module provides an easy way to upload local Single Application Page Assets to TencentCloud Cloud Object Storage(COS) Bucket.
Terraform TencentCloud COS SPA Module This module provides an easy way to upload local Single Application Page Assets to TencentCloud Cloud Object Storage(COS) Bucket. Installation Requirement - Terraform >= 0.14.06 - Terraform Provider for Tencent Cloud >= 1.60.19 Usage Configure your TencentCloud Credentials: `` export TENCENTCLOUD_SECRET_ID = "AKIDxxxx" export TENCENTCLOUD_SECRET_KEY = "xxxx" ` Create main.tf at the project root `hcl terraform { required_providers { tencentcloud = { source = "tencentcloudstack/tencentcloud" version = ">=1.60.19" } } } variable "region" { default = "ap-guangzhou" } provider "tencentcloud" { region = var.region } resource "tencentcloud_cos_bucket" "foo" { bucket = "using-cos-module-1234567890" } module cos_spa { source = "github.com/Kagashino/terraform-mo
| Name | Type | Description | Default |
|---|---|---|---|
| region | string | Bucket Object region. | required |
| bucket | string | Bucket name which objects upload to. | required |
| pattern | string | Argument `pattern` of function `fileset`. The matched files will uploaded. Defau | "**" |
| obj_acl | string | The canned ACL to apply. | "private" |
| filepath | string | Argument `path` of `fileset`. Indicates local path of files. | "dist" |
file_listfile_map