apiVersion: core.oam.dev/v1beta1
kind: ComponentDefinition
metadata:
  name: alibaba-rds
  namespace: vela-system
  annotations:
    definition.oam.dev/description: Terraform configuration for Alibaba Cloud RDS object
    # identifier of this cloud resource
    cloud-resource/identifier: DB_ID
    # the console url of this cloud resource
    cloud-resource/console-url: "https://rdsnext.console.aliyun.com/detail/{DB_ID}/basicInfo?&region={REGION}"
    # the outputs which are sensitive. Separate them by a comma if there are more than one
    cloud-resource/sensitive-outputs: "DB_PASSWORD"
    definition.oam.dev/verified: "true"
  labels:
    type: terraform
spec:
  workload:
    definition:
      apiVersion: terraform.core.oam.dev/v1beta1
      kind: Configuration
    type: configurations.terraform.core.oam.dev
  schematic:
    terraform:
      configuration: https://github.com/kubevela-contrib/terraform-modules.git
      type: remote
      path: alibaba/rds
