alicloud.adb.Account
Explore with Pulumi AI
Provides a ADB account resource and used to manage databases.
NOTE: Available since v1.71.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const creation = config.get("creation") || "ADB";
const name = config.get("name") || "tfexample";
const default = alicloud.adb.getZones({});
const defaultGetNetworks = alicloud.vpc.getNetworks({
nameRegex: "^default-NODELETING$",
});
const defaultGetSwitches = Promise.all([defaultGetNetworks, _default]).then(([defaultGetNetworks, _default]) => alicloud.vpc.getSwitches({
vpcId: defaultGetNetworks.ids?.[0],
zoneId: _default.ids?.[0],
}));
const vswitchId = defaultGetSwitches.then(defaultGetSwitches => defaultGetSwitches.ids?.[0]);
const cluster = new alicloud.adb.DBCluster("cluster", {
dbClusterCategory: "MixedStorage",
mode: "flexible",
computeResource: "8Core32GB",
vswitchId: vswitchId,
description: name,
});
const defaultAccount = new alicloud.adb.Account("default", {
dbClusterId: cluster.id,
accountName: name,
accountPassword: "tf_example123",
accountDescription: name,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
creation = config.get("creation")
if creation is None:
creation = "ADB"
name = config.get("name")
if name is None:
name = "tfexample"
default = alicloud.adb.get_zones()
default_get_networks = alicloud.vpc.get_networks(name_regex="^default-NODELETING$")
default_get_switches = alicloud.vpc.get_switches(vpc_id=default_get_networks.ids[0],
zone_id=default.ids[0])
vswitch_id = default_get_switches.ids[0]
cluster = alicloud.adb.DBCluster("cluster",
db_cluster_category="MixedStorage",
mode="flexible",
compute_resource="8Core32GB",
vswitch_id=vswitch_id,
description=name)
default_account = alicloud.adb.Account("default",
db_cluster_id=cluster.id,
account_name=name,
account_password="tf_example123",
account_description=name)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/adb"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
creation := "ADB"
if param := cfg.Get("creation"); param != "" {
creation = param
}
name := "tfexample"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := adb.GetZones(ctx, &adb.GetZonesArgs{}, nil)
if err != nil {
return err
}
defaultGetNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
NameRegex: pulumi.StringRef("^default-NODELETING$"),
}, nil)
if err != nil {
return err
}
defaultGetSwitches, err := vpc.GetSwitches(ctx, &vpc.GetSwitchesArgs{
VpcId: pulumi.StringRef(defaultGetNetworks.Ids[0]),
ZoneId: pulumi.StringRef(_default.Ids[0]),
}, nil)
if err != nil {
return err
}
vswitchId := defaultGetSwitches.Ids[0]
cluster, err := adb.NewDBCluster(ctx, "cluster", &adb.DBClusterArgs{
DbClusterCategory: pulumi.String("MixedStorage"),
Mode: pulumi.String("flexible"),
ComputeResource: pulumi.String("8Core32GB"),
VswitchId: pulumi.String(vswitchId),
Description: pulumi.String(name),
})
if err != nil {
return err
}
_, err = adb.NewAccount(ctx, "default", &adb.AccountArgs{
DbClusterId: cluster.ID(),
AccountName: pulumi.String(name),
AccountPassword: pulumi.String("tf_example123"),
AccountDescription: pulumi.String(name),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var creation = config.Get("creation") ?? "ADB";
var name = config.Get("name") ?? "tfexample";
var @default = AliCloud.Adb.GetZones.Invoke();
var defaultGetNetworks = AliCloud.Vpc.GetNetworks.Invoke(new()
{
NameRegex = "^default-NODELETING$",
});
var defaultGetSwitches = AliCloud.Vpc.GetSwitches.Invoke(new()
{
VpcId = defaultGetNetworks.Apply(getNetworksResult => getNetworksResult.Ids[0]),
ZoneId = @default.Apply(getZonesResult => getZonesResult.Ids[0]),
});
var vswitchId = defaultGetSwitches.Apply(getSwitchesResult => getSwitchesResult.Ids[0]);
var cluster = new AliCloud.Adb.DBCluster("cluster", new()
{
DbClusterCategory = "MixedStorage",
Mode = "flexible",
ComputeResource = "8Core32GB",
VswitchId = vswitchId,
Description = name,
});
var defaultAccount = new AliCloud.Adb.Account("default", new()
{
DbClusterId = cluster.Id,
AccountName = name,
AccountPassword = "tf_example123",
AccountDescription = name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.adb.AdbFunctions;
import com.pulumi.alicloud.adb.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.adb.DBCluster;
import com.pulumi.alicloud.adb.DBClusterArgs;
import com.pulumi.alicloud.adb.Account;
import com.pulumi.alicloud.adb.AccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var creation = config.get("creation").orElse("ADB");
final var name = config.get("name").orElse("tfexample");
final var default = AdbFunctions.getZones();
final var defaultGetNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("^default-NODELETING$")
.build());
final var defaultGetSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultGetNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.zoneId(default_.ids()[0])
.build());
final var vswitchId = defaultGetSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]);
var cluster = new DBCluster("cluster", DBClusterArgs.builder()
.dbClusterCategory("MixedStorage")
.mode("flexible")
.computeResource("8Core32GB")
.vswitchId(vswitchId)
.description(name)
.build());
var defaultAccount = new Account("defaultAccount", AccountArgs.builder()
.dbClusterId(cluster.id())
.accountName(name)
.accountPassword("tf_example123")
.accountDescription(name)
.build());
}
}
configuration:
creation:
type: string
default: ADB
name:
type: string
default: tfexample
resources:
cluster:
type: alicloud:adb:DBCluster
properties:
dbClusterCategory: MixedStorage
mode: flexible
computeResource: 8Core32GB
vswitchId: ${vswitchId}
description: ${name}
defaultAccount:
type: alicloud:adb:Account
name: default
properties:
dbClusterId: ${cluster.id}
accountName: ${name}
accountPassword: tf_example123
accountDescription: ${name}
variables:
default:
fn::invoke:
Function: alicloud:adb:getZones
Arguments: {}
defaultGetNetworks:
fn::invoke:
Function: alicloud:vpc:getNetworks
Arguments:
nameRegex: ^default-NODELETING$
defaultGetSwitches:
fn::invoke:
Function: alicloud:vpc:getSwitches
Arguments:
vpcId: ${defaultGetNetworks.ids[0]}
zoneId: ${default.ids[0]}
vswitchId: ${defaultGetSwitches.ids[0]}
Create Account Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
args: AccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_name: Optional[str] = None,
db_cluster_id: Optional[str] = None,
account_description: Optional[str] = None,
account_password: Optional[str] = None,
kms_encrypted_password: Optional[str] = None,
kms_encryption_context: Optional[Mapping[str, str]] = None)
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: alicloud:adb:Account
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var accountResource = new AliCloud.Adb.Account("accountResource", new()
{
AccountName = "string",
DbClusterId = "string",
AccountDescription = "string",
AccountPassword = "string",
KmsEncryptedPassword = "string",
KmsEncryptionContext =
{
{ "string", "string" },
},
});
example, err := adb.NewAccount(ctx, "accountResource", &adb.AccountArgs{
AccountName: pulumi.String("string"),
DbClusterId: pulumi.String("string"),
AccountDescription: pulumi.String("string"),
AccountPassword: pulumi.String("string"),
KmsEncryptedPassword: pulumi.String("string"),
KmsEncryptionContext: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var accountResource = new Account("accountResource", AccountArgs.builder()
.accountName("string")
.dbClusterId("string")
.accountDescription("string")
.accountPassword("string")
.kmsEncryptedPassword("string")
.kmsEncryptionContext(Map.of("string", "string"))
.build());
account_resource = alicloud.adb.Account("accountResource",
account_name="string",
db_cluster_id="string",
account_description="string",
account_password="string",
kms_encrypted_password="string",
kms_encryption_context={
"string": "string",
})
const accountResource = new alicloud.adb.Account("accountResource", {
accountName: "string",
dbClusterId: "string",
accountDescription: "string",
accountPassword: "string",
kmsEncryptedPassword: "string",
kmsEncryptionContext: {
string: "string",
},
});
type: alicloud:adb:Account
properties:
accountDescription: string
accountName: string
accountPassword: string
dbClusterId: string
kmsEncryptedPassword: string
kmsEncryptionContext:
string: string
Account Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Account resource accepts the following input properties:
- Account
Name string - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- Db
Cluster stringId - The Id of cluster in which account belongs.
- Account
Description string - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- Account
Password string - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - Kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - Kms
Encryption Dictionary<string, string>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- Account
Name string - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- Db
Cluster stringId - The Id of cluster in which account belongs.
- Account
Description string - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- Account
Password string - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - Kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - Kms
Encryption map[string]stringContext - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Name String - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- db
Cluster StringId - The Id of cluster in which account belongs.
- account
Description String - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Password String - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - kms
Encrypted StringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - kms
Encryption Map<String,String>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Name string - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- db
Cluster stringId - The Id of cluster in which account belongs.
- account
Description string - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Password string - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - kms
Encryption {[key: string]: string}Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account_
name str - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- db_
cluster_ strid - The Id of cluster in which account belongs.
- account_
description str - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account_
password str - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - kms_
encrypted_ strpassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - kms_
encryption_ Mapping[str, str]context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Name String - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- db
Cluster StringId - The Id of cluster in which account belongs.
- account
Description String - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Password String - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - kms
Encrypted StringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - kms
Encryption Map<String>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Account Resource
Get an existing Account resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_description: Optional[str] = None,
account_name: Optional[str] = None,
account_password: Optional[str] = None,
db_cluster_id: Optional[str] = None,
kms_encrypted_password: Optional[str] = None,
kms_encryption_context: Optional[Mapping[str, str]] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Description string - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- Account
Name string - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- Account
Password string - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - Db
Cluster stringId - The Id of cluster in which account belongs.
- Kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - Kms
Encryption Dictionary<string, string>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- Account
Description string - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- Account
Name string - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- Account
Password string - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - Db
Cluster stringId - The Id of cluster in which account belongs.
- Kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - Kms
Encryption map[string]stringContext - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Description String - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Name String - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- account
Password String - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - db
Cluster StringId - The Id of cluster in which account belongs.
- kms
Encrypted StringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - kms
Encryption Map<String,String>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Description string - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Name string - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- account
Password string - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - db
Cluster stringId - The Id of cluster in which account belongs.
- kms
Encrypted stringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - kms
Encryption {[key: string]: string}Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account_
description str - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account_
name str - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- account_
password str - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - db_
cluster_ strid - The Id of cluster in which account belongs.
- kms_
encrypted_ strpassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - kms_
encryption_ Mapping[str, str]context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
- account
Description String - Account description. It cannot begin with https://. It must start with a Chinese character or English letter. It can include Chinese and English characters, underlines (_), hyphens (-), and numbers. The length may be 2-256 characters.
- account
Name String - Operation account requiring a uniqueness check. It may consist of lower case letters, numbers, and underlines, and must start with a letter and have no more than 16 characters.
- account
Password String - Operation password. It may consist of letters, digits, or underlines, with a length of 6 to 32 characters. You have to specify one of
account_password
andkms_encrypted_password
fields. - db
Cluster StringId - The Id of cluster in which account belongs.
- kms
Encrypted StringPassword - An KMS encrypts password used to a db account. If the
account_password
is filled in, this field will be ignored. - kms
Encryption Map<String>Context - An KMS encryption context used to decrypt
kms_encrypted_password
before creating or updating a db account withkms_encrypted_password
. See Encryption Context. It is valid whenkms_encrypted_password
is set.
Import
ADB account can be imported using the id, e.g.
$ pulumi import alicloud:adb/account:Account example am-12345:tf_account
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.