gcp.memorystore.Instance
Explore with Pulumi AI
Example Usage
Memorystore Instance Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const producerNet = new gcp.compute.Network("producer_net", {
name: "my-network",
autoCreateSubnetworks: false,
});
const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
name: "my-subnet",
ipCidrRange: "10.0.0.248/29",
region: "us-central1",
network: producerNet.id,
});
const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
name: "my-policy",
location: "us-central1",
serviceClass: "gcp-memorystore",
description: "my basic service connection policy",
network: producerNet.id,
pscConfig: {
subnetworks: [producerSubnet.id],
},
});
const project = gcp.organizations.getProject({});
const instance_basic = new gcp.memorystore.Instance("instance-basic", {
instanceId: "basic-instance",
shardCount: 3,
desiredPscAutoConnections: [{
network: producerNet.id,
projectId: project.then(project => project.projectId),
}],
location: "us-central1",
deletionProtectionEnabled: false,
}, {
dependsOn: [_default],
});
import pulumi
import pulumi_gcp as gcp
producer_net = gcp.compute.Network("producer_net",
name="my-network",
auto_create_subnetworks=False)
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
name="my-subnet",
ip_cidr_range="10.0.0.248/29",
region="us-central1",
network=producer_net.id)
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
name="my-policy",
location="us-central1",
service_class="gcp-memorystore",
description="my basic service connection policy",
network=producer_net.id,
psc_config={
"subnetworks": [producer_subnet.id],
})
project = gcp.organizations.get_project()
instance_basic = gcp.memorystore.Instance("instance-basic",
instance_id="basic-instance",
shard_count=3,
desired_psc_auto_connections=[{
"network": producer_net.id,
"project_id": project.project_id,
}],
location="us-central1",
deletion_protection_enabled=False,
opts = pulumi.ResourceOptions(depends_on=[default]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/memorystore"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
producerNet, err := compute.NewNetwork(ctx, "producer_net", &compute.NetworkArgs{
Name: pulumi.String("my-network"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
Name: pulumi.String("my-subnet"),
IpCidrRange: pulumi.String("10.0.0.248/29"),
Region: pulumi.String("us-central1"),
Network: producerNet.ID(),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewServiceConnectionPolicy(ctx, "default", &networkconnectivity.ServiceConnectionPolicyArgs{
Name: pulumi.String("my-policy"),
Location: pulumi.String("us-central1"),
ServiceClass: pulumi.String("gcp-memorystore"),
Description: pulumi.String("my basic service connection policy"),
Network: producerNet.ID(),
PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
Subnetworks: pulumi.StringArray{
producerSubnet.ID(),
},
},
})
if err != nil {
return err
}
project, err := organizations.LookupProject(ctx, nil, nil)
if err != nil {
return err
}
_, err = memorystore.NewInstance(ctx, "instance-basic", &memorystore.InstanceArgs{
InstanceId: pulumi.String("basic-instance"),
ShardCount: pulumi.Int(3),
DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
&memorystore.InstanceDesiredPscAutoConnectionArgs{
Network: producerNet.ID(),
ProjectId: pulumi.String(project.ProjectId),
},
},
Location: pulumi.String("us-central1"),
DeletionProtectionEnabled: pulumi.Bool(false),
}, pulumi.DependsOn([]pulumi.Resource{
_default,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var producerNet = new Gcp.Compute.Network("producer_net", new()
{
Name = "my-network",
AutoCreateSubnetworks = false,
});
var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
{
Name = "my-subnet",
IpCidrRange = "10.0.0.248/29",
Region = "us-central1",
Network = producerNet.Id,
});
var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
{
Name = "my-policy",
Location = "us-central1",
ServiceClass = "gcp-memorystore",
Description = "my basic service connection policy",
Network = producerNet.Id,
PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
{
Subnetworks = new[]
{
producerSubnet.Id,
},
},
});
var project = Gcp.Organizations.GetProject.Invoke();
var instance_basic = new Gcp.MemoryStore.Instance("instance-basic", new()
{
InstanceId = "basic-instance",
ShardCount = 3,
DesiredPscAutoConnections = new[]
{
new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
{
Network = producerNet.Id,
ProjectId = project.Apply(getProjectResult => getProjectResult.ProjectId),
},
},
Location = "us-central1",
DeletionProtectionEnabled = false,
}, new CustomResourceOptions
{
DependsOn =
{
@default,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicy;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicyArgs;
import com.pulumi.gcp.networkconnectivity.inputs.ServiceConnectionPolicyPscConfigArgs;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.memorystore.Instance;
import com.pulumi.gcp.memorystore.InstanceArgs;
import com.pulumi.gcp.memorystore.inputs.InstanceDesiredPscAutoConnectionArgs;
import com.pulumi.resources.CustomResourceOptions;
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 producerNet = new Network("producerNet", NetworkArgs.builder()
.name("my-network")
.autoCreateSubnetworks(false)
.build());
var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
.name("my-subnet")
.ipCidrRange("10.0.0.248/29")
.region("us-central1")
.network(producerNet.id())
.build());
var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
.name("my-policy")
.location("us-central1")
.serviceClass("gcp-memorystore")
.description("my basic service connection policy")
.network(producerNet.id())
.pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
.subnetworks(producerSubnet.id())
.build())
.build());
final var project = OrganizationsFunctions.getProject();
var instance_basic = new Instance("instance-basic", InstanceArgs.builder()
.instanceId("basic-instance")
.shardCount(3)
.desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
.network(producerNet.id())
.projectId(project.applyValue(getProjectResult -> getProjectResult.projectId()))
.build())
.location("us-central1")
.deletionProtectionEnabled(false)
.build(), CustomResourceOptions.builder()
.dependsOn(default_)
.build());
}
}
resources:
instance-basic:
type: gcp:memorystore:Instance
properties:
instanceId: basic-instance
shardCount: 3
desiredPscAutoConnections:
- network: ${producerNet.id}
projectId: ${project.projectId}
location: us-central1
deletionProtectionEnabled: false
options:
dependson:
- ${default}
default:
type: gcp:networkconnectivity:ServiceConnectionPolicy
properties:
name: my-policy
location: us-central1
serviceClass: gcp-memorystore
description: my basic service connection policy
network: ${producerNet.id}
pscConfig:
subnetworks:
- ${producerSubnet.id}
producerSubnet:
type: gcp:compute:Subnetwork
name: producer_subnet
properties:
name: my-subnet
ipCidrRange: 10.0.0.248/29
region: us-central1
network: ${producerNet.id}
producerNet:
type: gcp:compute:Network
name: producer_net
properties:
name: my-network
autoCreateSubnetworks: false
variables:
project:
fn::invoke:
Function: gcp:organizations:getProject
Arguments: {}
Memorystore Instance Full
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const producerNet = new gcp.compute.Network("producer_net", {
name: "my-network",
autoCreateSubnetworks: false,
});
const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
name: "my-subnet",
ipCidrRange: "10.0.0.248/29",
region: "us-central1",
network: producerNet.id,
});
const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
name: "my-policy",
location: "us-central1",
serviceClass: "gcp-memorystore",
description: "my basic service connection policy",
network: producerNet.id,
pscConfig: {
subnetworks: [producerSubnet.id],
},
});
const project = gcp.organizations.getProject({});
const instance_full = new gcp.memorystore.Instance("instance-full", {
instanceId: "full-instance",
shardCount: 3,
desiredPscAutoConnections: [{
network: producerNet.id,
projectId: project.then(project => project.projectId),
}],
location: "us-central1",
replicaCount: 2,
nodeType: "SHARED_CORE_NANO",
transitEncryptionMode: "TRANSIT_ENCRYPTION_DISABLED",
authorizationMode: "AUTH_DISABLED",
engineConfigs: {
"maxmemory-policy": "volatile-ttl",
},
zoneDistributionConfig: {
mode: "SINGLE_ZONE",
zone: "us-central1-b",
},
engineVersion: "VALKEY_7_2",
deletionProtectionEnabled: false,
persistenceConfig: {
mode: "RDB",
rdbConfig: {
rdbSnapshotPeriod: "ONE_HOUR",
rdbSnapshotStartTime: "2024-10-02T15:01:23Z",
},
},
labels: {
abc: "xyz",
},
}, {
dependsOn: [_default],
});
import pulumi
import pulumi_gcp as gcp
producer_net = gcp.compute.Network("producer_net",
name="my-network",
auto_create_subnetworks=False)
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
name="my-subnet",
ip_cidr_range="10.0.0.248/29",
region="us-central1",
network=producer_net.id)
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
name="my-policy",
location="us-central1",
service_class="gcp-memorystore",
description="my basic service connection policy",
network=producer_net.id,
psc_config={
"subnetworks": [producer_subnet.id],
})
project = gcp.organizations.get_project()
instance_full = gcp.memorystore.Instance("instance-full",
instance_id="full-instance",
shard_count=3,
desired_psc_auto_connections=[{
"network": producer_net.id,
"project_id": project.project_id,
}],
location="us-central1",
replica_count=2,
node_type="SHARED_CORE_NANO",
transit_encryption_mode="TRANSIT_ENCRYPTION_DISABLED",
authorization_mode="AUTH_DISABLED",
engine_configs={
"maxmemory-policy": "volatile-ttl",
},
zone_distribution_config={
"mode": "SINGLE_ZONE",
"zone": "us-central1-b",
},
engine_version="VALKEY_7_2",
deletion_protection_enabled=False,
persistence_config={
"mode": "RDB",
"rdb_config": {
"rdb_snapshot_period": "ONE_HOUR",
"rdb_snapshot_start_time": "2024-10-02T15:01:23Z",
},
},
labels={
"abc": "xyz",
},
opts = pulumi.ResourceOptions(depends_on=[default]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/memorystore"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
producerNet, err := compute.NewNetwork(ctx, "producer_net", &compute.NetworkArgs{
Name: pulumi.String("my-network"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
Name: pulumi.String("my-subnet"),
IpCidrRange: pulumi.String("10.0.0.248/29"),
Region: pulumi.String("us-central1"),
Network: producerNet.ID(),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewServiceConnectionPolicy(ctx, "default", &networkconnectivity.ServiceConnectionPolicyArgs{
Name: pulumi.String("my-policy"),
Location: pulumi.String("us-central1"),
ServiceClass: pulumi.String("gcp-memorystore"),
Description: pulumi.String("my basic service connection policy"),
Network: producerNet.ID(),
PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
Subnetworks: pulumi.StringArray{
producerSubnet.ID(),
},
},
})
if err != nil {
return err
}
project, err := organizations.LookupProject(ctx, nil, nil)
if err != nil {
return err
}
_, err = memorystore.NewInstance(ctx, "instance-full", &memorystore.InstanceArgs{
InstanceId: pulumi.String("full-instance"),
ShardCount: pulumi.Int(3),
DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
&memorystore.InstanceDesiredPscAutoConnectionArgs{
Network: producerNet.ID(),
ProjectId: pulumi.String(project.ProjectId),
},
},
Location: pulumi.String("us-central1"),
ReplicaCount: pulumi.Int(2),
NodeType: pulumi.String("SHARED_CORE_NANO"),
TransitEncryptionMode: pulumi.String("TRANSIT_ENCRYPTION_DISABLED"),
AuthorizationMode: pulumi.String("AUTH_DISABLED"),
EngineConfigs: pulumi.StringMap{
"maxmemory-policy": pulumi.String("volatile-ttl"),
},
ZoneDistributionConfig: &memorystore.InstanceZoneDistributionConfigArgs{
Mode: pulumi.String("SINGLE_ZONE"),
Zone: pulumi.String("us-central1-b"),
},
EngineVersion: pulumi.String("VALKEY_7_2"),
DeletionProtectionEnabled: pulumi.Bool(false),
PersistenceConfig: &memorystore.InstancePersistenceConfigArgs{
Mode: pulumi.String("RDB"),
RdbConfig: &memorystore.InstancePersistenceConfigRdbConfigArgs{
RdbSnapshotPeriod: pulumi.String("ONE_HOUR"),
RdbSnapshotStartTime: pulumi.String("2024-10-02T15:01:23Z"),
},
},
Labels: pulumi.StringMap{
"abc": pulumi.String("xyz"),
},
}, pulumi.DependsOn([]pulumi.Resource{
_default,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var producerNet = new Gcp.Compute.Network("producer_net", new()
{
Name = "my-network",
AutoCreateSubnetworks = false,
});
var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
{
Name = "my-subnet",
IpCidrRange = "10.0.0.248/29",
Region = "us-central1",
Network = producerNet.Id,
});
var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
{
Name = "my-policy",
Location = "us-central1",
ServiceClass = "gcp-memorystore",
Description = "my basic service connection policy",
Network = producerNet.Id,
PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
{
Subnetworks = new[]
{
producerSubnet.Id,
},
},
});
var project = Gcp.Organizations.GetProject.Invoke();
var instance_full = new Gcp.MemoryStore.Instance("instance-full", new()
{
InstanceId = "full-instance",
ShardCount = 3,
DesiredPscAutoConnections = new[]
{
new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
{
Network = producerNet.Id,
ProjectId = project.Apply(getProjectResult => getProjectResult.ProjectId),
},
},
Location = "us-central1",
ReplicaCount = 2,
NodeType = "SHARED_CORE_NANO",
TransitEncryptionMode = "TRANSIT_ENCRYPTION_DISABLED",
AuthorizationMode = "AUTH_DISABLED",
EngineConfigs =
{
{ "maxmemory-policy", "volatile-ttl" },
},
ZoneDistributionConfig = new Gcp.MemoryStore.Inputs.InstanceZoneDistributionConfigArgs
{
Mode = "SINGLE_ZONE",
Zone = "us-central1-b",
},
EngineVersion = "VALKEY_7_2",
DeletionProtectionEnabled = false,
PersistenceConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigArgs
{
Mode = "RDB",
RdbConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigRdbConfigArgs
{
RdbSnapshotPeriod = "ONE_HOUR",
RdbSnapshotStartTime = "2024-10-02T15:01:23Z",
},
},
Labels =
{
{ "abc", "xyz" },
},
}, new CustomResourceOptions
{
DependsOn =
{
@default,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicy;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicyArgs;
import com.pulumi.gcp.networkconnectivity.inputs.ServiceConnectionPolicyPscConfigArgs;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.memorystore.Instance;
import com.pulumi.gcp.memorystore.InstanceArgs;
import com.pulumi.gcp.memorystore.inputs.InstanceDesiredPscAutoConnectionArgs;
import com.pulumi.gcp.memorystore.inputs.InstanceZoneDistributionConfigArgs;
import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigArgs;
import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigRdbConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 producerNet = new Network("producerNet", NetworkArgs.builder()
.name("my-network")
.autoCreateSubnetworks(false)
.build());
var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
.name("my-subnet")
.ipCidrRange("10.0.0.248/29")
.region("us-central1")
.network(producerNet.id())
.build());
var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
.name("my-policy")
.location("us-central1")
.serviceClass("gcp-memorystore")
.description("my basic service connection policy")
.network(producerNet.id())
.pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
.subnetworks(producerSubnet.id())
.build())
.build());
final var project = OrganizationsFunctions.getProject();
var instance_full = new Instance("instance-full", InstanceArgs.builder()
.instanceId("full-instance")
.shardCount(3)
.desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
.network(producerNet.id())
.projectId(project.applyValue(getProjectResult -> getProjectResult.projectId()))
.build())
.location("us-central1")
.replicaCount(2)
.nodeType("SHARED_CORE_NANO")
.transitEncryptionMode("TRANSIT_ENCRYPTION_DISABLED")
.authorizationMode("AUTH_DISABLED")
.engineConfigs(Map.of("maxmemory-policy", "volatile-ttl"))
.zoneDistributionConfig(InstanceZoneDistributionConfigArgs.builder()
.mode("SINGLE_ZONE")
.zone("us-central1-b")
.build())
.engineVersion("VALKEY_7_2")
.deletionProtectionEnabled(false)
.persistenceConfig(InstancePersistenceConfigArgs.builder()
.mode("RDB")
.rdbConfig(InstancePersistenceConfigRdbConfigArgs.builder()
.rdbSnapshotPeriod("ONE_HOUR")
.rdbSnapshotStartTime("2024-10-02T15:01:23Z")
.build())
.build())
.labels(Map.of("abc", "xyz"))
.build(), CustomResourceOptions.builder()
.dependsOn(default_)
.build());
}
}
resources:
instance-full:
type: gcp:memorystore:Instance
properties:
instanceId: full-instance
shardCount: 3
desiredPscAutoConnections:
- network: ${producerNet.id}
projectId: ${project.projectId}
location: us-central1
replicaCount: 2
nodeType: SHARED_CORE_NANO
transitEncryptionMode: TRANSIT_ENCRYPTION_DISABLED
authorizationMode: AUTH_DISABLED
engineConfigs:
maxmemory-policy: volatile-ttl
zoneDistributionConfig:
mode: SINGLE_ZONE
zone: us-central1-b
engineVersion: VALKEY_7_2
deletionProtectionEnabled: false
persistenceConfig:
mode: RDB
rdbConfig:
rdbSnapshotPeriod: ONE_HOUR
rdbSnapshotStartTime: 2024-10-02T15:01:23Z
labels:
abc: xyz
options:
dependson:
- ${default}
default:
type: gcp:networkconnectivity:ServiceConnectionPolicy
properties:
name: my-policy
location: us-central1
serviceClass: gcp-memorystore
description: my basic service connection policy
network: ${producerNet.id}
pscConfig:
subnetworks:
- ${producerSubnet.id}
producerSubnet:
type: gcp:compute:Subnetwork
name: producer_subnet
properties:
name: my-subnet
ipCidrRange: 10.0.0.248/29
region: us-central1
network: ${producerNet.id}
producerNet:
type: gcp:compute:Network
name: producer_net
properties:
name: my-network
autoCreateSubnetworks: false
variables:
project:
fn::invoke:
Function: gcp:organizations:getProject
Arguments: {}
Memorystore Instance Persistence Aof
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const producerNet = new gcp.compute.Network("producer_net", {
name: "my-network",
autoCreateSubnetworks: false,
});
const producerSubnet = new gcp.compute.Subnetwork("producer_subnet", {
name: "my-subnet",
ipCidrRange: "10.0.0.248/29",
region: "us-central1",
network: producerNet.id,
});
const _default = new gcp.networkconnectivity.ServiceConnectionPolicy("default", {
name: "my-policy",
location: "us-central1",
serviceClass: "gcp-memorystore",
description: "my basic service connection policy",
network: producerNet.id,
pscConfig: {
subnetworks: [producerSubnet.id],
},
});
const project = gcp.organizations.getProject({});
const instance_persistence_aof = new gcp.memorystore.Instance("instance-persistence-aof", {
instanceId: "aof-instance",
shardCount: 3,
desiredPscAutoConnections: [{
network: producerNet.id,
projectId: project.then(project => project.projectId),
}],
location: "us-central1",
persistenceConfig: {
mode: "AOF",
aofConfig: {
appendFsync: "EVERY_SEC",
},
},
deletionProtectionEnabled: false,
}, {
dependsOn: [_default],
});
import pulumi
import pulumi_gcp as gcp
producer_net = gcp.compute.Network("producer_net",
name="my-network",
auto_create_subnetworks=False)
producer_subnet = gcp.compute.Subnetwork("producer_subnet",
name="my-subnet",
ip_cidr_range="10.0.0.248/29",
region="us-central1",
network=producer_net.id)
default = gcp.networkconnectivity.ServiceConnectionPolicy("default",
name="my-policy",
location="us-central1",
service_class="gcp-memorystore",
description="my basic service connection policy",
network=producer_net.id,
psc_config={
"subnetworks": [producer_subnet.id],
})
project = gcp.organizations.get_project()
instance_persistence_aof = gcp.memorystore.Instance("instance-persistence-aof",
instance_id="aof-instance",
shard_count=3,
desired_psc_auto_connections=[{
"network": producer_net.id,
"project_id": project.project_id,
}],
location="us-central1",
persistence_config={
"mode": "AOF",
"aof_config": {
"append_fsync": "EVERY_SEC",
},
},
deletion_protection_enabled=False,
opts = pulumi.ResourceOptions(depends_on=[default]))
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/memorystore"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/organizations"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
producerNet, err := compute.NewNetwork(ctx, "producer_net", &compute.NetworkArgs{
Name: pulumi.String("my-network"),
AutoCreateSubnetworks: pulumi.Bool(false),
})
if err != nil {
return err
}
producerSubnet, err := compute.NewSubnetwork(ctx, "producer_subnet", &compute.SubnetworkArgs{
Name: pulumi.String("my-subnet"),
IpCidrRange: pulumi.String("10.0.0.248/29"),
Region: pulumi.String("us-central1"),
Network: producerNet.ID(),
})
if err != nil {
return err
}
_, err = networkconnectivity.NewServiceConnectionPolicy(ctx, "default", &networkconnectivity.ServiceConnectionPolicyArgs{
Name: pulumi.String("my-policy"),
Location: pulumi.String("us-central1"),
ServiceClass: pulumi.String("gcp-memorystore"),
Description: pulumi.String("my basic service connection policy"),
Network: producerNet.ID(),
PscConfig: &networkconnectivity.ServiceConnectionPolicyPscConfigArgs{
Subnetworks: pulumi.StringArray{
producerSubnet.ID(),
},
},
})
if err != nil {
return err
}
project, err := organizations.LookupProject(ctx, nil, nil)
if err != nil {
return err
}
_, err = memorystore.NewInstance(ctx, "instance-persistence-aof", &memorystore.InstanceArgs{
InstanceId: pulumi.String("aof-instance"),
ShardCount: pulumi.Int(3),
DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
&memorystore.InstanceDesiredPscAutoConnectionArgs{
Network: producerNet.ID(),
ProjectId: pulumi.String(project.ProjectId),
},
},
Location: pulumi.String("us-central1"),
PersistenceConfig: &memorystore.InstancePersistenceConfigArgs{
Mode: pulumi.String("AOF"),
AofConfig: &memorystore.InstancePersistenceConfigAofConfigArgs{
AppendFsync: pulumi.String("EVERY_SEC"),
},
},
DeletionProtectionEnabled: pulumi.Bool(false),
}, pulumi.DependsOn([]pulumi.Resource{
_default,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var producerNet = new Gcp.Compute.Network("producer_net", new()
{
Name = "my-network",
AutoCreateSubnetworks = false,
});
var producerSubnet = new Gcp.Compute.Subnetwork("producer_subnet", new()
{
Name = "my-subnet",
IpCidrRange = "10.0.0.248/29",
Region = "us-central1",
Network = producerNet.Id,
});
var @default = new Gcp.NetworkConnectivity.ServiceConnectionPolicy("default", new()
{
Name = "my-policy",
Location = "us-central1",
ServiceClass = "gcp-memorystore",
Description = "my basic service connection policy",
Network = producerNet.Id,
PscConfig = new Gcp.NetworkConnectivity.Inputs.ServiceConnectionPolicyPscConfigArgs
{
Subnetworks = new[]
{
producerSubnet.Id,
},
},
});
var project = Gcp.Organizations.GetProject.Invoke();
var instance_persistence_aof = new Gcp.MemoryStore.Instance("instance-persistence-aof", new()
{
InstanceId = "aof-instance",
ShardCount = 3,
DesiredPscAutoConnections = new[]
{
new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
{
Network = producerNet.Id,
ProjectId = project.Apply(getProjectResult => getProjectResult.ProjectId),
},
},
Location = "us-central1",
PersistenceConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigArgs
{
Mode = "AOF",
AofConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigAofConfigArgs
{
AppendFsync = "EVERY_SEC",
},
},
DeletionProtectionEnabled = false,
}, new CustomResourceOptions
{
DependsOn =
{
@default,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicy;
import com.pulumi.gcp.networkconnectivity.ServiceConnectionPolicyArgs;
import com.pulumi.gcp.networkconnectivity.inputs.ServiceConnectionPolicyPscConfigArgs;
import com.pulumi.gcp.organizations.OrganizationsFunctions;
import com.pulumi.gcp.organizations.inputs.GetProjectArgs;
import com.pulumi.gcp.memorystore.Instance;
import com.pulumi.gcp.memorystore.InstanceArgs;
import com.pulumi.gcp.memorystore.inputs.InstanceDesiredPscAutoConnectionArgs;
import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigArgs;
import com.pulumi.gcp.memorystore.inputs.InstancePersistenceConfigAofConfigArgs;
import com.pulumi.resources.CustomResourceOptions;
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 producerNet = new Network("producerNet", NetworkArgs.builder()
.name("my-network")
.autoCreateSubnetworks(false)
.build());
var producerSubnet = new Subnetwork("producerSubnet", SubnetworkArgs.builder()
.name("my-subnet")
.ipCidrRange("10.0.0.248/29")
.region("us-central1")
.network(producerNet.id())
.build());
var default_ = new ServiceConnectionPolicy("default", ServiceConnectionPolicyArgs.builder()
.name("my-policy")
.location("us-central1")
.serviceClass("gcp-memorystore")
.description("my basic service connection policy")
.network(producerNet.id())
.pscConfig(ServiceConnectionPolicyPscConfigArgs.builder()
.subnetworks(producerSubnet.id())
.build())
.build());
final var project = OrganizationsFunctions.getProject();
var instance_persistence_aof = new Instance("instance-persistence-aof", InstanceArgs.builder()
.instanceId("aof-instance")
.shardCount(3)
.desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
.network(producerNet.id())
.projectId(project.applyValue(getProjectResult -> getProjectResult.projectId()))
.build())
.location("us-central1")
.persistenceConfig(InstancePersistenceConfigArgs.builder()
.mode("AOF")
.aofConfig(InstancePersistenceConfigAofConfigArgs.builder()
.appendFsync("EVERY_SEC")
.build())
.build())
.deletionProtectionEnabled(false)
.build(), CustomResourceOptions.builder()
.dependsOn(default_)
.build());
}
}
resources:
instance-persistence-aof:
type: gcp:memorystore:Instance
properties:
instanceId: aof-instance
shardCount: 3
desiredPscAutoConnections:
- network: ${producerNet.id}
projectId: ${project.projectId}
location: us-central1
persistenceConfig:
mode: AOF
aofConfig:
appendFsync: EVERY_SEC
deletionProtectionEnabled: false
options:
dependson:
- ${default}
default:
type: gcp:networkconnectivity:ServiceConnectionPolicy
properties:
name: my-policy
location: us-central1
serviceClass: gcp-memorystore
description: my basic service connection policy
network: ${producerNet.id}
pscConfig:
subnetworks:
- ${producerSubnet.id}
producerSubnet:
type: gcp:compute:Subnetwork
name: producer_subnet
properties:
name: my-subnet
ipCidrRange: 10.0.0.248/29
region: us-central1
network: ${producerNet.id}
producerNet:
type: gcp:compute:Network
name: producer_net
properties:
name: my-network
autoCreateSubnetworks: false
variables:
project:
fn::invoke:
Function: gcp:organizations:getProject
Arguments: {}
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);
@overload
def Instance(resource_name: str,
args: InstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
shard_count: Optional[int] = None,
desired_psc_auto_connections: Optional[Sequence[InstanceDesiredPscAutoConnectionArgs]] = None,
location: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
engine_version: Optional[str] = None,
authorization_mode: Optional[str] = None,
engine_configs: Optional[Mapping[str, str]] = None,
node_type: Optional[str] = None,
persistence_config: Optional[InstancePersistenceConfigArgs] = None,
project: Optional[str] = None,
replica_count: Optional[int] = None,
deletion_protection_enabled: Optional[bool] = None,
transit_encryption_mode: Optional[str] = None,
zone_distribution_config: Optional[InstanceZoneDistributionConfigArgs] = None)
func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)
public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: gcp:memorystore:Instance
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 InstanceArgs
- 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 InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- 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 exampleinstanceResourceResourceFromMemorystoreinstance = new Gcp.MemoryStore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance", new()
{
InstanceId = "string",
ShardCount = 0,
DesiredPscAutoConnections = new[]
{
new Gcp.MemoryStore.Inputs.InstanceDesiredPscAutoConnectionArgs
{
Network = "string",
ProjectId = "string",
},
},
Location = "string",
Labels =
{
{ "string", "string" },
},
EngineVersion = "string",
AuthorizationMode = "string",
EngineConfigs =
{
{ "string", "string" },
},
NodeType = "string",
PersistenceConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigArgs
{
AofConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigAofConfigArgs
{
AppendFsync = "string",
},
Mode = "string",
RdbConfig = new Gcp.MemoryStore.Inputs.InstancePersistenceConfigRdbConfigArgs
{
RdbSnapshotPeriod = "string",
RdbSnapshotStartTime = "string",
},
},
Project = "string",
ReplicaCount = 0,
DeletionProtectionEnabled = false,
TransitEncryptionMode = "string",
ZoneDistributionConfig = new Gcp.MemoryStore.Inputs.InstanceZoneDistributionConfigArgs
{
Mode = "string",
Zone = "string",
},
});
example, err := memorystore.NewInstance(ctx, "exampleinstanceResourceResourceFromMemorystoreinstance", &memorystore.InstanceArgs{
InstanceId: pulumi.String("string"),
ShardCount: pulumi.Int(0),
DesiredPscAutoConnections: memorystore.InstanceDesiredPscAutoConnectionArray{
&memorystore.InstanceDesiredPscAutoConnectionArgs{
Network: pulumi.String("string"),
ProjectId: pulumi.String("string"),
},
},
Location: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
EngineVersion: pulumi.String("string"),
AuthorizationMode: pulumi.String("string"),
EngineConfigs: pulumi.StringMap{
"string": pulumi.String("string"),
},
NodeType: pulumi.String("string"),
PersistenceConfig: &memorystore.InstancePersistenceConfigArgs{
AofConfig: &memorystore.InstancePersistenceConfigAofConfigArgs{
AppendFsync: pulumi.String("string"),
},
Mode: pulumi.String("string"),
RdbConfig: &memorystore.InstancePersistenceConfigRdbConfigArgs{
RdbSnapshotPeriod: pulumi.String("string"),
RdbSnapshotStartTime: pulumi.String("string"),
},
},
Project: pulumi.String("string"),
ReplicaCount: pulumi.Int(0),
DeletionProtectionEnabled: pulumi.Bool(false),
TransitEncryptionMode: pulumi.String("string"),
ZoneDistributionConfig: &memorystore.InstanceZoneDistributionConfigArgs{
Mode: pulumi.String("string"),
Zone: pulumi.String("string"),
},
})
var exampleinstanceResourceResourceFromMemorystoreinstance = new Instance("exampleinstanceResourceResourceFromMemorystoreinstance", InstanceArgs.builder()
.instanceId("string")
.shardCount(0)
.desiredPscAutoConnections(InstanceDesiredPscAutoConnectionArgs.builder()
.network("string")
.projectId("string")
.build())
.location("string")
.labels(Map.of("string", "string"))
.engineVersion("string")
.authorizationMode("string")
.engineConfigs(Map.of("string", "string"))
.nodeType("string")
.persistenceConfig(InstancePersistenceConfigArgs.builder()
.aofConfig(InstancePersistenceConfigAofConfigArgs.builder()
.appendFsync("string")
.build())
.mode("string")
.rdbConfig(InstancePersistenceConfigRdbConfigArgs.builder()
.rdbSnapshotPeriod("string")
.rdbSnapshotStartTime("string")
.build())
.build())
.project("string")
.replicaCount(0)
.deletionProtectionEnabled(false)
.transitEncryptionMode("string")
.zoneDistributionConfig(InstanceZoneDistributionConfigArgs.builder()
.mode("string")
.zone("string")
.build())
.build());
exampleinstance_resource_resource_from_memorystoreinstance = gcp.memorystore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance",
instance_id="string",
shard_count=0,
desired_psc_auto_connections=[{
"network": "string",
"projectId": "string",
}],
location="string",
labels={
"string": "string",
},
engine_version="string",
authorization_mode="string",
engine_configs={
"string": "string",
},
node_type="string",
persistence_config={
"aofConfig": {
"appendFsync": "string",
},
"mode": "string",
"rdbConfig": {
"rdbSnapshotPeriod": "string",
"rdbSnapshotStartTime": "string",
},
},
project="string",
replica_count=0,
deletion_protection_enabled=False,
transit_encryption_mode="string",
zone_distribution_config={
"mode": "string",
"zone": "string",
})
const exampleinstanceResourceResourceFromMemorystoreinstance = new gcp.memorystore.Instance("exampleinstanceResourceResourceFromMemorystoreinstance", {
instanceId: "string",
shardCount: 0,
desiredPscAutoConnections: [{
network: "string",
projectId: "string",
}],
location: "string",
labels: {
string: "string",
},
engineVersion: "string",
authorizationMode: "string",
engineConfigs: {
string: "string",
},
nodeType: "string",
persistenceConfig: {
aofConfig: {
appendFsync: "string",
},
mode: "string",
rdbConfig: {
rdbSnapshotPeriod: "string",
rdbSnapshotStartTime: "string",
},
},
project: "string",
replicaCount: 0,
deletionProtectionEnabled: false,
transitEncryptionMode: "string",
zoneDistributionConfig: {
mode: "string",
zone: "string",
},
});
type: gcp:memorystore:Instance
properties:
authorizationMode: string
deletionProtectionEnabled: false
desiredPscAutoConnections:
- network: string
projectId: string
engineConfigs:
string: string
engineVersion: string
instanceId: string
labels:
string: string
location: string
nodeType: string
persistenceConfig:
aofConfig:
appendFsync: string
mode: string
rdbConfig:
rdbSnapshotPeriod: string
rdbSnapshotStartTime: string
project: string
replicaCount: 0
shardCount: 0
transitEncryptionMode: string
zoneDistributionConfig:
mode: string
zone: string
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Instance resource accepts the following input properties:
- Desired
Psc List<InstanceAuto Connections Desired Psc Auto Connection> - Required. Immutable. User inputs for the auto-created PSC connections.
- Instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - int
- Required. Number of shards for the instance.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- Deletion
Protection boolEnabled - Optional. If set to true deletion of the instance will fail.
- Engine
Configs Dictionary<string, string> - Optional. User-provided engine configurations for the instance.
- Engine
Version string - Optional. Immutable. Engine version of the instance.
- Labels Dictionary<string, string>
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Node
Type string - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- Persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Replica
Count int - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- Transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- Zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- Desired
Psc []InstanceAuto Connections Desired Psc Auto Connection Args - Required. Immutable. User inputs for the auto-created PSC connections.
- Instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - int
- Required. Number of shards for the instance.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- Deletion
Protection boolEnabled - Optional. If set to true deletion of the instance will fail.
- Engine
Configs map[string]string - Optional. User-provided engine configurations for the instance.
- Engine
Version string - Optional. Immutable. Engine version of the instance.
- Labels map[string]string
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Node
Type string - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- Persistence
Config InstancePersistence Config Args - Represents persistence configuration for a instance. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Replica
Count int - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- Transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- Zone
Distribution InstanceConfig Zone Distribution Config Args - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- desired
Psc List<InstanceAuto Connections Desired Psc Auto Connection> - Required. Immutable. User inputs for the auto-created PSC connections.
- instance
Id String - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - Integer
- Required. Number of shards for the instance.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- deletion
Protection BooleanEnabled - Optional. If set to true deletion of the instance will fail.
- engine
Configs Map<String,String> - Optional. User-provided engine configurations for the instance.
- engine
Version String - Optional. Immutable. Engine version of the instance.
- labels Map<String,String>
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - node
Type String - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- replica
Count Integer - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- transit
Encryption StringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- desired
Psc InstanceAuto Connections Desired Psc Auto Connection[] - Required. Immutable. User inputs for the auto-created PSC connections.
- instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - number
- Required. Number of shards for the instance.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- deletion
Protection booleanEnabled - Optional. If set to true deletion of the instance will fail.
- engine
Configs {[key: string]: string} - Optional. User-provided engine configurations for the instance.
- engine
Version string - Optional. Immutable. Engine version of the instance.
- labels {[key: string]: string}
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - node
Type string - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- replica
Count number - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- desired_
psc_ Sequence[Instanceauto_ connections Desired Psc Auto Connection Args] - Required. Immutable. User inputs for the auto-created PSC connections.
- instance_
id str - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- location str
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - int
- Required. Number of shards for the instance.
- str
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- deletion_
protection_ boolenabled - Optional. If set to true deletion of the instance will fail.
- engine_
configs Mapping[str, str] - Optional. User-provided engine configurations for the instance.
- engine_
version str - Optional. Immutable. Engine version of the instance.
- labels Mapping[str, str]
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - node_
type str - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence_
config InstancePersistence Config Args - Represents persistence configuration for a instance. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- replica_
count int - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- transit_
encryption_ strmode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zone_
distribution_ Instanceconfig Zone Distribution Config Args - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- desired
Psc List<Property Map>Auto Connections - Required. Immutable. User inputs for the auto-created PSC connections.
- instance
Id String - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - Number
- Required. Number of shards for the instance.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- deletion
Protection BooleanEnabled - Optional. If set to true deletion of the instance will fail.
- engine
Configs Map<String> - Optional. User-provided engine configurations for the instance.
- engine
Version String - Optional. Immutable. Engine version of the instance.
- labels Map<String>
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - node
Type String - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config Property Map - Represents persistence configuration for a instance. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- replica
Count Number - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- transit
Encryption StringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- zone
Distribution Property MapConfig - Zone distribution configuration for allocation of instance resources. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Create
Time string - Output only. Creation timestamp of the instance.
- Discovery
Endpoints List<InstanceDiscovery Endpoint> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- Node
Configs List<InstanceNode Config> - Represents configuration for nodes of the instance. Structure is documented below.
- Psc
Auto List<InstanceConnections Psc Auto Connection> - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- State
Infos List<InstanceState Info> - Additional information about the state of the instance. Structure is documented below.
- Uid string
- Output only. System assigned, unique identifier for the instance.
- Update
Time string - Output only. Latest update timestamp of the instance.
- Create
Time string - Output only. Creation timestamp of the instance.
- Discovery
Endpoints []InstanceDiscovery Endpoint - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- Node
Configs []InstanceNode Config - Represents configuration for nodes of the instance. Structure is documented below.
- Psc
Auto []InstanceConnections Psc Auto Connection - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- State
Infos []InstanceState Info - Additional information about the state of the instance. Structure is documented below.
- Uid string
- Output only. System assigned, unique identifier for the instance.
- Update
Time string - Output only. Latest update timestamp of the instance.
- create
Time String - Output only. Creation timestamp of the instance.
- discovery
Endpoints List<InstanceDiscovery Endpoint> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs List<InstanceNode Config> - Represents configuration for nodes of the instance. Structure is documented below.
- psc
Auto List<InstanceConnections Psc Auto Connection> - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state
Infos List<InstanceState Info> - Additional information about the state of the instance. Structure is documented below.
- uid String
- Output only. System assigned, unique identifier for the instance.
- update
Time String - Output only. Latest update timestamp of the instance.
- create
Time string - Output only. Creation timestamp of the instance.
- discovery
Endpoints InstanceDiscovery Endpoint[] - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs InstanceNode Config[] - Represents configuration for nodes of the instance. Structure is documented below.
- psc
Auto InstanceConnections Psc Auto Connection[] - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state
Infos InstanceState Info[] - Additional information about the state of the instance. Structure is documented below.
- uid string
- Output only. System assigned, unique identifier for the instance.
- update
Time string - Output only. Latest update timestamp of the instance.
- create_
time str - Output only. Creation timestamp of the instance.
- discovery_
endpoints Sequence[InstanceDiscovery Endpoint] - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node_
configs Sequence[InstanceNode Config] - Represents configuration for nodes of the instance. Structure is documented below.
- psc_
auto_ Sequence[Instanceconnections Psc Auto Connection] - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state_
infos Sequence[InstanceState Info] - Additional information about the state of the instance. Structure is documented below.
- uid str
- Output only. System assigned, unique identifier for the instance.
- update_
time str - Output only. Latest update timestamp of the instance.
- create
Time String - Output only. Creation timestamp of the instance.
- discovery
Endpoints List<Property Map> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs List<Property Map> - Represents configuration for nodes of the instance. Structure is documented below.
- psc
Auto List<Property Map>Connections - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state
Infos List<Property Map> - Additional information about the state of the instance. Structure is documented below.
- uid String
- Output only. System assigned, unique identifier for the instance.
- update
Time String - Output only. Latest update timestamp of the instance.
Look up Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorization_mode: Optional[str] = None,
create_time: Optional[str] = None,
deletion_protection_enabled: Optional[bool] = None,
desired_psc_auto_connections: Optional[Sequence[InstanceDesiredPscAutoConnectionArgs]] = None,
discovery_endpoints: Optional[Sequence[InstanceDiscoveryEndpointArgs]] = None,
effective_labels: Optional[Mapping[str, str]] = None,
engine_configs: Optional[Mapping[str, str]] = None,
engine_version: Optional[str] = None,
instance_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
name: Optional[str] = None,
node_configs: Optional[Sequence[InstanceNodeConfigArgs]] = None,
node_type: Optional[str] = None,
persistence_config: Optional[InstancePersistenceConfigArgs] = None,
project: Optional[str] = None,
psc_auto_connections: Optional[Sequence[InstancePscAutoConnectionArgs]] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
replica_count: Optional[int] = None,
shard_count: Optional[int] = None,
state: Optional[str] = None,
state_infos: Optional[Sequence[InstanceStateInfoArgs]] = None,
transit_encryption_mode: Optional[str] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None,
zone_distribution_config: Optional[InstanceZoneDistributionConfigArgs] = None) -> Instance
func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)
public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)
public static Instance get(String name, Output<String> id, InstanceState 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.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- Create
Time string - Output only. Creation timestamp of the instance.
- Deletion
Protection boolEnabled - Optional. If set to true deletion of the instance will fail.
- Desired
Psc List<InstanceAuto Connections Desired Psc Auto Connection> - Required. Immutable. User inputs for the auto-created PSC connections.
- Discovery
Endpoints List<InstanceDiscovery Endpoint> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- Effective
Labels Dictionary<string, string> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Engine
Configs Dictionary<string, string> - Optional. User-provided engine configurations for the instance.
- Engine
Version string - Optional. Immutable. Engine version of the instance.
- Instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- Labels Dictionary<string, string>
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- Node
Configs List<InstanceNode Config> - Represents configuration for nodes of the instance. Structure is documented below.
- Node
Type string - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- Persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Psc
Auto List<InstanceConnections Psc Auto Connection> - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Replica
Count int - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- Shard
Count int - Required. Number of shards for the instance.
- State string
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- State
Infos List<InstanceState Info> - Additional information about the state of the instance. Structure is documented below.
- Transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- Uid string
- Output only. System assigned, unique identifier for the instance.
- Update
Time string - Output only. Latest update timestamp of the instance.
- Zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- Create
Time string - Output only. Creation timestamp of the instance.
- Deletion
Protection boolEnabled - Optional. If set to true deletion of the instance will fail.
- Desired
Psc []InstanceAuto Connections Desired Psc Auto Connection Args - Required. Immutable. User inputs for the auto-created PSC connections.
- Discovery
Endpoints []InstanceDiscovery Endpoint Args - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- Effective
Labels map[string]string - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Engine
Configs map[string]string - Optional. User-provided engine configurations for the instance.
- Engine
Version string - Optional. Immutable. Engine version of the instance.
- Instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- Labels map[string]string
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - Location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - Name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- Node
Configs []InstanceNode Config Args - Represents configuration for nodes of the instance. Structure is documented below.
- Node
Type string - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- Persistence
Config InstancePersistence Config Args - Represents persistence configuration for a instance. Structure is documented below.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Psc
Auto []InstanceConnections Psc Auto Connection Args - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- Replica
Count int - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- Shard
Count int - Required. Number of shards for the instance.
- State string
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- State
Infos []InstanceState Info Args - Additional information about the state of the instance. Structure is documented below.
- Transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- Uid string
- Output only. System assigned, unique identifier for the instance.
- Update
Time string - Output only. Latest update timestamp of the instance.
- Zone
Distribution InstanceConfig Zone Distribution Config Args - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- create
Time String - Output only. Creation timestamp of the instance.
- deletion
Protection BooleanEnabled - Optional. If set to true deletion of the instance will fail.
- desired
Psc List<InstanceAuto Connections Desired Psc Auto Connection> - Required. Immutable. User inputs for the auto-created PSC connections.
- discovery
Endpoints List<InstanceDiscovery Endpoint> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels Map<String,String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- engine
Configs Map<String,String> - Optional. User-provided engine configurations for the instance.
- engine
Version String - Optional. Immutable. Engine version of the instance.
- instance
Id String - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- labels Map<String,String>
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - name String
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs List<InstanceNode Config> - Represents configuration for nodes of the instance. Structure is documented below.
- node
Type String - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- psc
Auto List<InstanceConnections Psc Auto Connection> - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- replica
Count Integer - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- shard
Count Integer - Required. Number of shards for the instance.
- state String
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state
Infos List<InstanceState Info> - Additional information about the state of the instance. Structure is documented below.
- transit
Encryption StringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- uid String
- Output only. System assigned, unique identifier for the instance.
- update
Time String - Output only. Latest update timestamp of the instance.
- zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- string
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- create
Time string - Output only. Creation timestamp of the instance.
- deletion
Protection booleanEnabled - Optional. If set to true deletion of the instance will fail.
- desired
Psc InstanceAuto Connections Desired Psc Auto Connection[] - Required. Immutable. User inputs for the auto-created PSC connections.
- discovery
Endpoints InstanceDiscovery Endpoint[] - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels {[key: string]: string} - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- engine
Configs {[key: string]: string} - Optional. User-provided engine configurations for the instance.
- engine
Version string - Optional. Immutable. Engine version of the instance.
- instance
Id string - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- labels {[key: string]: string}
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location string
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - name string
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs InstanceNode Config[] - Represents configuration for nodes of the instance. Structure is documented below.
- node
Type string - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config InstancePersistence Config - Represents persistence configuration for a instance. Structure is documented below.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- psc
Auto InstanceConnections Psc Auto Connection[] - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels {[key: string]: string} - The combination of labels configured directly on the resource and default labels configured on the provider.
- replica
Count number - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- shard
Count number - Required. Number of shards for the instance.
- state string
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state
Infos InstanceState Info[] - Additional information about the state of the instance. Structure is documented below.
- transit
Encryption stringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- uid string
- Output only. System assigned, unique identifier for the instance.
- update
Time string - Output only. Latest update timestamp of the instance.
- zone
Distribution InstanceConfig Zone Distribution Config - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- str
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- create_
time str - Output only. Creation timestamp of the instance.
- deletion_
protection_ boolenabled - Optional. If set to true deletion of the instance will fail.
- desired_
psc_ Sequence[Instanceauto_ connections Desired Psc Auto Connection Args] - Required. Immutable. User inputs for the auto-created PSC connections.
- discovery_
endpoints Sequence[InstanceDiscovery Endpoint Args] - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective_
labels Mapping[str, str] - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- engine_
configs Mapping[str, str] - Optional. User-provided engine configurations for the instance.
- engine_
version str - Optional. Immutable. Engine version of the instance.
- instance_
id str - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- labels Mapping[str, str]
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location str
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - name str
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node_
configs Sequence[InstanceNode Config Args] - Represents configuration for nodes of the instance. Structure is documented below.
- node_
type str - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence_
config InstancePersistence Config Args - Represents persistence configuration for a instance. Structure is documented below.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- psc_
auto_ Sequence[Instanceconnections Psc Auto Connection Args] - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi_
labels Mapping[str, str] - The combination of labels configured directly on the resource and default labels configured on the provider.
- replica_
count int - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- shard_
count int - Required. Number of shards for the instance.
- state str
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state_
infos Sequence[InstanceState Info Args] - Additional information about the state of the instance. Structure is documented below.
- transit_
encryption_ strmode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- uid str
- Output only. System assigned, unique identifier for the instance.
- update_
time str - Output only. Latest update timestamp of the instance.
- zone_
distribution_ Instanceconfig Zone Distribution Config Args - Zone distribution configuration for allocation of instance resources. Structure is documented below.
- String
- Optional. Immutable. Authorization mode of the instance. Possible values: AUTH_DISABLED IAM_AUTH
- create
Time String - Output only. Creation timestamp of the instance.
- deletion
Protection BooleanEnabled - Optional. If set to true deletion of the instance will fail.
- desired
Psc List<Property Map>Auto Connections - Required. Immutable. User inputs for the auto-created PSC connections.
- discovery
Endpoints List<Property Map> - Output only. Endpoints clients can connect to the instance through. Currently only one discovery endpoint is supported. Structure is documented below.
- effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- engine
Configs Map<String> - Optional. User-provided engine configurations for the instance.
- engine
Version String - Optional. Immutable. Engine version of the instance.
- instance
Id String - Required. The ID to use for the instance, which will become the final component of
the instance's resource name.
This value is subject to the following restrictions:
- Must be 4-63 characters in length
- Must begin with a letter or digit
- Must contain only lowercase letters, digits, and hyphens
- Must not end with a hyphen
- Must be unique within a location
- labels Map<String>
- Optional. Labels to represent user-provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effective_labels
for all of the labels present on the resource. - location String
- Resource ID segment making up resource
name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource typememorystore.googleapis.com/CertificateAuthority
. - name String
- Identifier. Unique name of the instance. Format: projects/{project}/locations/{location}/instances/{instance}
- node
Configs List<Property Map> - Represents configuration for nodes of the instance. Structure is documented below.
- node
Type String - Optional. Immutable. Machine type for individual nodes of the instance. Possible values: SHARED_CORE_NANO HIGHMEM_MEDIUM HIGHMEM_XLARGE STANDARD_SMALL
- persistence
Config Property Map - Represents persistence configuration for a instance. Structure is documented below.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- psc
Auto List<Property Map>Connections - Output only. User inputs and resource details of the auto-created PSC connections. Structure is documented below.
- pulumi
Labels Map<String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- replica
Count Number - Optional. Number of replica nodes per shard. If omitted the default is 0 replicas.
- shard
Count Number - Required. Number of shards for the instance.
- state String
- Output only. Current state of the instance. Possible values: CREATING ACTIVE UPDATING DELETING
- state
Infos List<Property Map> - Additional information about the state of the instance. Structure is documented below.
- transit
Encryption StringMode - Optional. Immutable. In-transit encryption mode of the instance. Possible values: TRANSIT_ENCRYPTION_DISABLED SERVER_AUTHENTICATION
- uid String
- Output only. System assigned, unique identifier for the instance.
- update
Time String - Output only. Latest update timestamp of the instance.
- zone
Distribution Property MapConfig - Zone distribution configuration for allocation of instance resources. Structure is documented below.
Supporting Types
InstanceDesiredPscAutoConnection, InstanceDesiredPscAutoConnectionArgs
- network str
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- project_
id str - (Output) Output only. The consumer project_id where the forwarding rule is created from.
InstanceDiscoveryEndpoint, InstanceDiscoveryEndpointArgs
- Address string
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- Network string
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- Port int
- (Output) Output only. The port number of the exposed endpoint.
- Address string
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- Network string
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- Port int
- (Output) Output only. The port number of the exposed endpoint.
- address String
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- network String
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- port Integer
- (Output) Output only. The port number of the exposed endpoint.
- address string
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- network string
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- port number
- (Output) Output only. The port number of the exposed endpoint.
- address str
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- network str
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- port int
- (Output) Output only. The port number of the exposed endpoint.
- address String
- (Output) Output only. IP address of the exposed endpoint clients connect to.
- network String
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- port Number
- (Output) Output only. The port number of the exposed endpoint.
InstanceNodeConfig, InstanceNodeConfigArgs
- Size
Gb double - (Output) Output only. Memory size in GB of the node.
- Size
Gb float64 - (Output) Output only. Memory size in GB of the node.
- size
Gb Double - (Output) Output only. Memory size in GB of the node.
- size
Gb number - (Output) Output only. Memory size in GB of the node.
- size_
gb float - (Output) Output only. Memory size in GB of the node.
- size
Gb Number - (Output) Output only. Memory size in GB of the node.
InstancePersistenceConfig, InstancePersistenceConfigArgs
- Aof
Config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- Mode string
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - Rdb
Config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- Aof
Config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- Mode string
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - Rdb
Config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- aof
Config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- mode String
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - rdb
Config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- aof
Config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- mode string
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - rdb
Config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- aof_
config InstancePersistence Config Aof Config - Configuration for AOF based persistence. Structure is documented below.
- mode str
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - rdb_
config InstancePersistence Config Rdb Config - Configuration for RDB based persistence. Structure is documented below.
- aof
Config Property Map - Configuration for AOF based persistence. Structure is documented below.
- mode String
- Optional. Current persistence mode.
Possible values:
DISABLED
RDB
AOF
Possible values are:
DISABLED
,RDB
,AOF
. - rdb
Config Property Map - Configuration for RDB based persistence. Structure is documented below.
InstancePersistenceConfigAofConfig, InstancePersistenceConfigAofConfigArgs
- Append
Fsync string - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- Append
Fsync string - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- append
Fsync String - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- append
Fsync string - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- append_
fsync str - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
- append
Fsync String - Optional. The fsync mode. Possible values: NEVER EVERY_SEC ALWAYS
InstancePersistenceConfigRdbConfig, InstancePersistenceConfigRdbConfigArgs
- Rdb
Snapshot stringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- Rdb
Snapshot stringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- Rdb
Snapshot stringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- Rdb
Snapshot stringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- rdb
Snapshot StringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdb
Snapshot StringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- rdb
Snapshot stringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdb
Snapshot stringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- rdb_
snapshot_ strperiod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdb_
snapshot_ strstart_ time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
- rdb
Snapshot StringPeriod - Optional. Period between RDB snapshots. Possible values: ONE_HOUR SIX_HOURS TWELVE_HOURS TWENTY_FOUR_HOURS
- rdb
Snapshot StringStart Time - Optional. Time that the first snapshot was/will be attempted, and to which future snapshots will be aligned. If not provided, the current time will be used.
InstancePscAutoConnection, InstancePscAutoConnectionArgs
- Forwarding
Rule string - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- Ip
Address string - (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- Network string
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- Project
Id string - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- Psc
Connection stringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- Forwarding
Rule string - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- Ip
Address string - (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- Network string
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- Project
Id string - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- Psc
Connection stringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- forwarding
Rule String - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip
Address String - (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- network String
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- project
Id String - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc
Connection StringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- forwarding
Rule string - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip
Address string - (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- network string
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- project
Id string - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc
Connection stringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- forwarding_
rule str - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip_
address str - (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- network str
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- project_
id str - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc_
connection_ strid - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
- forwarding
Rule String - (Output) Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
- ip
Address String - (Output) Output only. The IP allocated on the consumer network for the PSC forwarding rule.
- network String
- (Output) Output only. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
- project
Id String - (Output) Output only. The consumer project_id where the forwarding rule is created from.
- psc
Connection StringId - (Output) Output only. The PSC connection id of the forwarding rule connected to the service attachment.
InstanceStateInfo, InstanceStateInfoArgs
- Update
Infos List<InstanceState Info Update Info> - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- Update
Infos []InstanceState Info Update Info - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- update
Infos List<InstanceState Info Update Info> - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- update
Infos InstanceState Info Update Info[] - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- update_
infos Sequence[InstanceState Info Update Info] - (Output) Represents information about instance with state UPDATING. Structure is documented below.
- update
Infos List<Property Map> - (Output) Represents information about instance with state UPDATING. Structure is documented below.
InstanceStateInfoUpdateInfo, InstanceStateInfoUpdateInfoArgs
- Target
Replica intCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- Target
Shard intCount - (Output) Output only. Target number of shards for the instance.
- Target
Replica intCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- Target
Shard intCount - (Output) Output only. Target number of shards for the instance.
- target
Replica IntegerCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- target
Shard IntegerCount - (Output) Output only. Target number of shards for the instance.
- target
Replica numberCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- target
Shard numberCount - (Output) Output only. Target number of shards for the instance.
- target_
replica_ intcount - (Output) Output only. Target number of replica nodes per shard for the instance.
- target_
shard_ intcount - (Output) Output only. Target number of shards for the instance.
- target
Replica NumberCount - (Output) Output only. Target number of replica nodes per shard for the instance.
- target
Shard NumberCount - (Output) Output only. Target number of shards for the instance.
InstanceZoneDistributionConfig, InstanceZoneDistributionConfigArgs
Import
Instance can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/instances/{{instance_id}}
{{project}}/{{location}}/{{instance_id}}
{{location}}/{{instance_id}}
When using the pulumi import
command, Instance can be imported using one of the formats above. For example:
$ pulumi import gcp:memorystore/instance:Instance default projects/{{project}}/locations/{{location}}/instances/{{instance_id}}
$ pulumi import gcp:memorystore/instance:Instance default {{project}}/{{location}}/{{instance_id}}
$ pulumi import gcp:memorystore/instance:Instance default {{location}}/{{instance_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.