Version: v1.2
Alibaba Cloud RDS
Description
Terraform configuration for Alibaba Cloud RDS object
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
Name | Description | Type | Required | Default |
---|---|---|---|---|
allocate_public_connection | Whether to allocate public connection for a RDS instance. | bool | true | |
security_ips | List of IP addresses allowed to access all databases of an instance | list | true | |
database_name | Database name | string | true | |
privilege | The privilege of one account access database. | string | true | |
instance_name | RDS instance name | string | true | |
account_name | RDS instance user account name | string | true | |
password | RDS instance account password | string | true | |
writeConnectionSecretToRef | The secret which the cloud resource connection will be written to | writeConnectionSecretToRef | false |
writeConnectionSecretToRef
Name | Description | Type | Required | Default |
---|---|---|---|---|
name | The secret name which the cloud resource connection will be written to | string | true | |
namespace | The secret namespace which the cloud resource connection will be written to | string | false |
Outputs
If writeConnectionSecretToRef
is set, a secret will be generated with these keys as below:
Name | Description |
---|---|
DB_NAME | RDS Instance Name |
DB_USER | RDS Instance User |
DB_PORT | RDS Instance Port |
DB_HOST | RDS Instance Host |
DB_PASSWORD | RDS Instance Password |
DB_PUBLIC_HOST | RDS Instance Public Host |
DATABASE_NAME | RDS Database Name |
DB_ID | RDS Instance ID |