mysql
Module MySQL
MySQL describes the attributes to locally deploy or create a cloud provider managed mysql database instance for the workload.
Attributes
Name and Description | Type | Default Value | Required |
---|---|---|---|
cloud Cloud specifies the type of the cloud vendor. | "aws" | "alicloud" | Undefined | required |
username Username specifies the operation account for the mysql database. | str | "root" | optional |
category Category specifies the edition of the mysql instance provided by the cloud vendor. | str | "Basic" | optional |
securityIPs SecurityIPs specifies the list of IP addresses allowed to access the mysql instance provided by the cloud vendor. | [str] | ["0.0.0.0/0"] | optional |
privateRouting PrivateRouting specifies whether the host address of the cloud mysql instance for the workload to connect with is via public network or private network of the cloud vendor. | bool | true | optional |
size Size specifies the allocated storage size of the mysql instance. | int | 10 | optional |
subnetID SubnetID specifies the virtual subnet ID associated with the VPC that the cloud mysql instance will be created in. | str | Undefined | optional |
databaseName databaseName specifies the database name. | str | Undefined | optional |
Examples
# MySQL workspace configs for AWS RDS
modules:
kusionstack@mysql@0.1.0:
default:
cloud: aws
size: 20
instanceType: db.t3.micro
privateRouting: false
databaseName: "my-mysql"
# MySQL workspace configs for Alicloud RDS
modules:
kusionstack@mysql@0.1.0:
default:
cloud: alicloud
size: 20
instanceType: mysql.n2.serverless.1c
category: serverless_basic
privateRouting: false
subnetID: [your-subnet-id]
databaseName: "my-mysql"