Skip to main content
Version: v1.1

Alibaba Cloud RDS

Description

Terraform configuration for Alibaba Cloud RDS object

Sample

apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: rds-cloud-source
spec:
components:
- name: sample-db
type: alibaba-rds
properties:
instance_name: sample-db
account_name: oamtest
password: U34rfwefwefffaked
writeConnectionSecretToRef:
name: db-conn

Specification

Properties

NameDescriptionTypeRequiredDefault
passwordRDS instance account passwordstringtrue
instance_nameRDS instance namestringtrue
account_nameRDS instance user account namestringtrue
writeConnectionSecretToRefThe secret which the cloud resource connection will be written towriteConnectionSecretToReffalse

writeConnectionSecretToRef

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written tostringtrue
namespaceThe secret namespace which the cloud resource connection will be written tostringfalse

Outputs

If writeConnectionSecretToRef is set, a secret will be generated with these keys as below:

NameDescription
DB_NAMERDS instance name
DB_USERRDS instance username
DB_PORTRDS instance port
DB_HOSTRDS instance host
DB_PASSWORDRDS instance password