Version: v1.1

Alibaba Cloud RDS

Description

Terraform configuration for Alibaba Cloud RDS object

Sample

  1. apiVersion: core.oam.dev/v1beta1
  2. kind: Application
  3. metadata:
  4. name: rds-cloud-source
  5. spec:
  6. components:
  7. - name: sample-db
  8. type: alibaba-rds
  9. properties:
  10. instance_name: sample-db
  11. account_name: oamtest
  12. password: U34rfwefwefffaked
  13. writeConnectionSecretToRef:
  14. 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