Skip to main content
Version: v1.2

Alibaba Cloud RDS

Description

Terraform configuration for Alibaba Cloud RDS

Samples

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
account_nameRDS instance user account namestringfalse
allocate_public_connectionWhether to allocate public connection for a RDS instance.boolfalse
database_nameDatabase namestringfalse
databasesThe database list, each database is a map, the map contains the following attributes: name, character_set, description, like [{"name":"test","character_set":"utf8","description":"test database"},]. It conflicts with database_name.list(map(string))false
instance_nameRDS instance namestringfalse
passwordRDS instance account passwordstringtrue
privilegeThe privilege of one account access database.stringfalse
security_ipsList of IP addresses allowed to access all databases of an instancelist(any)false
vswitch_idThe vswitch id of the RDS instance. If set, the RDS instance will be created in VPC, or it will be created in classic network.stringfalse
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
DATABASE_NAMERDS Database Name
DB_HOSTRDS Instance Host
DB_IDRDS Instance ID
DB_NAMERDS Instance Name
DB_PASSWORDRDS Instance Password
DB_PORTRDS Instance Port
DB_PUBLIC_HOSTRDS Instance Public Host
DB_USERRDS Instance User
RESOURCE_IDENTIFIERThe identifier of the resource