Version: v1.2

Alibaba Cloud RDS

Description

Terraform configuration for Alibaba Cloud RDS object

Samples

  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
allocate_public_connectionWhether to allocate public connection for a RDS instance.booltrue
security_ipsList of IP addresses allowed to access all databases of an instancelisttrue
database_nameDatabase namestringtrue
privilegeThe privilege of one account access database.stringtrue
instance_nameRDS instance namestringtrue
account_nameRDS instance user account namestringtrue
passwordRDS instance account passwordstringtrue
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 User
DB_PORTRDS Instance Port
DB_HOSTRDS Instance Host
DB_PASSWORDRDS Instance Password
DB_PUBLIC_HOSTRDS Instance Public Host
DATABASE_NAMERDS Database Name
DB_IDRDS Instance ID