Show / Hide Table of Contents

Namespace Pulumi.Gcp.Redis

Classes

Instance

A Google Cloud Redis instance.

To get more information about Instance, see:

  • API documentation
  • How-to Guides
  • Official Documentation

Example Usage - Redis Instance Basic

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var cache = new Gcp.Redis.Instance("cache", new Gcp.Redis.InstanceArgs
    {
        MemorySizeGb = 1,
    });
}

}

Example Usage - Redis Instance Full

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var redis_network = Output.Create(Gcp.Compute.GetNetwork.InvokeAsync(new Gcp.Compute.GetNetworkArgs
    {
        Name = "redis-test-network",
    }));
    var cache = new Gcp.Redis.Instance("cache", new Gcp.Redis.InstanceArgs
    {
        Tier = "STANDARD_HA",
        MemorySizeGb = 1,
        LocationId = "us-central1-a",
        AlternativeLocationId = "us-central1-f",
        AuthorizedNetwork = redis_network.Apply(redis_network => redis_network.Id),
        RedisVersion = "REDIS_3_2",
        DisplayName = "Test Instance",
        ReservedIpRange = "192.168.0.0/29",
        Labels = 
        {
            { "my_key", "my_val" },
            { "other_key", "other_val" },
        },
    });
}

}

InstanceArgs

InstanceState

Back to top Copyright 2016-2020, Pulumi Corporation.