Instance
Provides an ApsaraDB Redis / Memcache instance resource. A DB instance is an isolated database environment in the cloud. It support be associated with IP whitelists and backup configuration which are separate resource providers. For information about Alicloud KVStore DBInstance more and how to use it, see What is Resource Alicloud KVStore DBInstance.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.kvstore.Instance;
import com.pulumi.alicloud.kvstore.InstanceArgs;
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) {
var example = new Instance("example", InstanceArgs.builder()
.config(Map.ofEntries(
Map.entry("appendonly", "yes"),
Map.entry("lazyfree-lazy-eviction", "yes")
))
.dbInstanceName("tf-test-basic")
.engineVersion("4.0")
.instanceClass("redis.master.large.default")
.instanceType("Redis")
.resourceGroupId("rg-123456")
.securityIps("10.23.12.24")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "Test")
))
.vswitchId("vsw-123456")
.zoneId("cn-beijing-h")
.build());
}
}
Import
KVStore instance can be imported using the id, e.g.
$ pulumi import alicloud:kvstore/instance:Instance example r-abc12345678
Properties
An KMS encryption context used to decrypt kms_encrypted_password
before creating or updating instance with kms_encrypted_password
. See Encryption Context. It is valid when kms_encrypted_password
is set.
The password of the KVStore DBInstance. The password that is used to connect to the instance. The password must be 8 to 32 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, special characters, and digits. Special characters include: ! @ # $ % ^ & * ( ) _ + - =