ALIYUN::ADBLake::Account is used to create a database account for an AnalyticDB for MySQL Data Lakehouse Edition cluster.
Syntax
{
"Type": "ALIYUN::ADBLake::Account",
"Properties": {
"AccountType": String,
"AccountName": String,
"AccountPassword": String,
"DBClusterId": String,
"Engine": String,
"AccountDescription": String,
"RamUser": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
Property | Type | Required | Editable | Description | Constraint |
AccountType | String | Yes | No | The type of the database account. | Valid values:
|
AccountName | String | Yes | No | The name of the database account. | The name must meet the following requirements:
|
AccountPassword | String | Yes | Yes | The password of the database account. |
|
DBClusterId | String | Yes | No | The ID of the Data Lakehouse Edition cluster. | None. |
Engine | String | Yes | No | The database engine. | Valid values:
|
AccountDescription | String | No | Yes | The description of the database account. |
|
RamUser | String | No | Yes | The ID of the Resource Access Management (RAM) user. | None. |
Return values
Fn::GetAtt
AccountName: the name of the database account.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DBClusterId:
Type: String
Description:
en: The ID of the ADB Lake cluster.
Required: true
AccountType:
Type: String
Description:
en: 'The type of the account.Valid values: Normal: normal account. Super: super account.'
AllowedValues:
- Normal
- Super
Required: true
Engine:
Type: String
Description:
en: 'The engine of the account.Valid values: AnalyticDB / Clickhouse.'
AllowedValues:
- Clickhouse
- AnalyticDB
Required: true
Default: AnalyticDB
AccountName:
Type: String
Description:
en: The name of the account.The database account name must meet the following requirements:Start with a lowercase letter and end with a lowercase letter or number.Consists of lowercase letters, numbers, or underscores (_).The length is 2 to 16 characters.Reserved user names such as root, admin, and opsadmin cannot be used.
Required: true
AllowedPattern: ^[a-z][a-z0-9_]{0,14}[a-z0-9]$
MinLength: 2
MaxLength: 16
AccountPassword:
Type: String
Description:
en: 'The password of the account.The password must meet the following requirements:Database account password.It consists of any three of uppercase letters, lowercase letters, numbers, and special characters.Special symbols include the following: !@#$%^&*()_+-=The password length is 8 to 32 characters.'
Required: true
MinLength: 8
MaxLength: 32
Resources:
Account:
Type: ALIYUN::ADBLake::Account
Properties:
DBClusterId:
Ref: DBClusterId
AccountType:
Ref: AccountType
Engine:
Ref: Engine
AccountName:
Ref: AccountName
AccountPassword:
Ref: AccountPassword
Outputs:
AccountName:
Description: The name of the account.
Value:
Fn::GetAtt:
- Account
- AccountName
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DBClusterId": {
"Type": "String",
"Description": {
"en": "The ID of the ADB Lake cluster."
},
"Required": true
},
"AccountType": {
"Type": "String",
"Description": {
"en": "The type of the account.Valid values: Normal: normal account. Super: super account."
},
"AllowedValues": [
"Normal",
"Super"
],
"Required": true
},
"Engine": {
"Type": "String",
"Description": {
"en": "The engine of the account.Valid values: AnalyticDB / Clickhouse."
},
"AllowedValues": [
"Clickhouse",
"AnalyticDB"
],
"Required": true,
"Default": "AnalyticDB"
},
"AccountName": {
"Type": "String",
"Description": {
"en": "The name of the account.The database account name must meet the following requirements:Start with a lowercase letter and end with a lowercase letter or number.Consists of lowercase letters, numbers, or underscores (_).The length is 2 to 16 characters.Reserved user names such as root, admin, and opsadmin cannot be used."
},
"Required": true,
"AllowedPattern": "^[a-z][a-z0-9_]{0,14}[a-z0-9]$",
"MinLength": 2,
"MaxLength": 16
},
"AccountPassword": {
"Type": "String",
"Description": {
"en": "The password of the account.The password must meet the following requirements:Database account password.It consists of any three of uppercase letters, lowercase letters, numbers, and special characters.Special symbols include the following: !@#$%^&*()_+-=The password length is 8 to 32 characters."
},
"Required": true,
"MinLength": 8,
"MaxLength": 32
}
},
"Resources": {
"Account": {
"Type": "ALIYUN::ADBLake::Account",
"Properties": {
"DBClusterId": {
"Ref": "DBClusterId"
},
"AccountType": {
"Ref": "AccountType"
},
"Engine": {
"Ref": "Engine"
},
"AccountName": {
"Ref": "AccountName"
},
"AccountPassword": {
"Ref": "AccountPassword"
}
}
}
},
"Outputs": {
"AccountName": {
"Description": "The name of the account.",
"Value": {
"Fn::GetAtt": [
"Account",
"AccountName"
]
}
}
}
}