github.com/oam-dev/kubevela@v1.9.11/e2e/addon/mock/testdata/terraform-alibaba/definitions/terraform-alibaba-oss.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: ComponentDefinition
     3  metadata:
     4    name: alibaba-oss
     5    namespace: vela-system
     6    annotations:
     7      definition.oam.dev/description: Terraform configuration for Alibaba Cloud OSS object
     8      # identifier of this cloud resource
     9      cloud-resource/identifier: BUCKET_NAME
    10      # the console url of this cloud resource
    11      cloud-resource/console-url: "https://oss.console.aliyun.com/bucket/oss-{REGION}/{BUCKET_NAME}/overview"
    12      # the outputs which are sensitive. Separate them by a comma if there are more than one
    13    labels:
    14      type: terraform
    15  spec:
    16    workload:
    17      definition:
    18        apiVersion: terraform.core.oam.dev/v1beta1
    19        kind: Configuration
    20    schematic:
    21      terraform:
    22        configuration: |
    23          resource "alicloud_oss_bucket" "bucket-acl" {
    24            bucket = var.bucket
    25            acl = var.acl
    26          }
    27          output "BUCKET_NAME" {
    28            value = "${alicloud_oss_bucket.bucket-acl.bucket}"
    29          }
    30          output "BUCKET_ENDPOINT" {
    31            value = "${alicloud_oss_bucket.bucket-acl.bucket}.${alicloud_oss_bucket.bucket-acl.extranet_endpoint}"
    32          }
    33          variable "bucket" {
    34            description = "OSS bucket name"
    35            default = "vela-website"
    36            type = string
    37          }
    38          variable "acl" {
    39            description = "OSS bucket ACL, supported 'private', 'public-read', 'public-read-write'"
    40            default = "private"
    41            type = string
    42          }