1. Packages
  2. RedisCloud
  3. API Docs
  4. ActiveActiveSubscriptionPeering
Redis Cloud v1.3.1 published on Friday, Sep 29, 2023 by RedisLabs

rediscloud.ActiveActiveSubscriptionPeering

Explore with Pulumi AI

rediscloud logo
Redis Cloud v1.3.1 published on Friday, Sep 29, 2023 by RedisLabs

    Creates an AWS or GCP VPC peering for an existing Redis Enterprise Cloud Active-Active Subscription, allowing access to your subscription databases as if they were on the same network.

    For AWS, peering should be accepted by the other side. For GCP, the opposite peering request should be submitted.

    Example Usage

    AWS

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    using Rediscloud = RedisLabs.Rediscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var subscription_resource = new Rediscloud.ActiveActiveSubscription("subscription-resource");
    
        // ...
        var peering_resource = new Rediscloud.ActiveActiveSubscriptionPeering("peering-resource", new()
        {
            SubscriptionId = subscription_resource.Id,
            SourceRegion = "us-east-1",
            DestinationRegion = "eu-west-2",
            AwsAccountId = "123456789012",
            VpcId = "vpc-01234567890",
            VpcCidr = "10.0.10.0/24",
        });
    
        var aws_peering_resource = new Aws.Ec2.VpcPeeringConnectionAccepter("aws-peering-resource", new()
        {
            VpcPeeringConnectionId = peering_resource.AwsPeeringId,
            AutoAccept = true,
        });
    
    });
    
    package main
    
    import (
    	"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
    	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/ec2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rediscloud.NewActiveActiveSubscription(ctx, "subscription-resource", nil)
    		if err != nil {
    			return err
    		}
    		_, err = rediscloud.NewActiveActiveSubscriptionPeering(ctx, "peering-resource", &rediscloud.ActiveActiveSubscriptionPeeringArgs{
    			SubscriptionId:    subscription_resource.ID(),
    			SourceRegion:      pulumi.String("us-east-1"),
    			DestinationRegion: pulumi.String("eu-west-2"),
    			AwsAccountId:      pulumi.String("123456789012"),
    			VpcId:             pulumi.String("vpc-01234567890"),
    			VpcCidr:           pulumi.String("10.0.10.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ec2.NewVpcPeeringConnectionAccepter(ctx, "aws-peering-resource", &ec2.VpcPeeringConnectionAccepterArgs{
    			VpcPeeringConnectionId: peering_resource.AwsPeeringId,
    			AutoAccept:             pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rediscloud.ActiveActiveSubscription;
    import com.pulumi.rediscloud.ActiveActiveSubscriptionPeering;
    import com.pulumi.rediscloud.ActiveActiveSubscriptionPeeringArgs;
    import com.pulumi.aws.ec2.VpcPeeringConnectionAccepter;
    import com.pulumi.aws.ec2.VpcPeeringConnectionAccepterArgs;
    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 subscription_resource = new ActiveActiveSubscription("subscription-resource");
    
            var peering_resource = new ActiveActiveSubscriptionPeering("peering-resource", ActiveActiveSubscriptionPeeringArgs.builder()        
                .subscriptionId(subscription_resource.id())
                .sourceRegion("us-east-1")
                .destinationRegion("eu-west-2")
                .awsAccountId("123456789012")
                .vpcId("vpc-01234567890")
                .vpcCidr("10.0.10.0/24")
                .build());
    
            var aws_peering_resource = new VpcPeeringConnectionAccepter("aws-peering-resource", VpcPeeringConnectionAccepterArgs.builder()        
                .vpcPeeringConnectionId(peering_resource.awsPeeringId())
                .autoAccept(true)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_aws as aws
    import pulumi_rediscloud as rediscloud
    
    subscription_resource = rediscloud.ActiveActiveSubscription("subscription-resource")
    # ...
    peering_resource = rediscloud.ActiveActiveSubscriptionPeering("peering-resource",
        subscription_id=subscription_resource.id,
        source_region="us-east-1",
        destination_region="eu-west-2",
        aws_account_id="123456789012",
        vpc_id="vpc-01234567890",
        vpc_cidr="10.0.10.0/24")
    aws_peering_resource = aws.ec2.VpcPeeringConnectionAccepter("aws-peering-resource",
        vpc_peering_connection_id=peering_resource.aws_peering_id,
        auto_accept=True)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    import * as rediscloud from "@rediscloud/pulumi-rediscloud";
    
    const subscription_resource = new rediscloud.ActiveActiveSubscription("subscription-resource", {});
    // ...
    const peering_resource = new rediscloud.ActiveActiveSubscriptionPeering("peering-resource", {
        subscriptionId: subscription_resource.id,
        sourceRegion: "us-east-1",
        destinationRegion: "eu-west-2",
        awsAccountId: "123456789012",
        vpcId: "vpc-01234567890",
        vpcCidr: "10.0.10.0/24",
    });
    const aws_peering_resource = new aws.ec2.VpcPeeringConnectionAccepter("aws-peering-resource", {
        vpcPeeringConnectionId: peering_resource.awsPeeringId,
        autoAccept: true,
    });
    
    resources:
      subscription-resource:
        type: rediscloud:ActiveActiveSubscription
      peering-resource:
        type: rediscloud:ActiveActiveSubscriptionPeering
        properties:
          subscriptionId: ${["subscription-resource"].id}
          sourceRegion: us-east-1
          destinationRegion: eu-west-2
          awsAccountId: '123456789012'
          vpcId: vpc-01234567890
          vpcCidr: 10.0.10.0/24
      aws-peering-resource:
        type: aws:ec2:VpcPeeringConnectionAccepter
        properties:
          vpcPeeringConnectionId: ${["peering-resource"].awsPeeringId}
          autoAccept: true
    

    GCP

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    using Rediscloud = RedisLabs.Rediscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var subscription_resource = new Rediscloud.ActiveActiveSubscription("subscription-resource");
    
        // ...
        var network = Gcp.Compute.GetNetwork.Invoke(new()
        {
            Project = "my-gcp-project",
            Name = "my-gcp-vpc",
        });
    
        var peering_resource = new Rediscloud.ActiveActiveSubscriptionPeering("peering-resource", new()
        {
            SubscriptionId = subscription_resource.Id,
            SourceRegion = "us-central1",
            ProviderName = "GCP",
            GcpProjectId = network.Apply(getNetworkResult => getNetworkResult.Project),
            GcpNetworkName = network.Apply(getNetworkResult => getNetworkResult.Name),
        });
    
        var gcp_peering_resource = new Gcp.Compute.NetworkPeering("gcp-peering-resource", new()
        {
            Network = network.Apply(getNetworkResult => getNetworkResult.SelfLink),
            PeerNetwork = peering_resource.GcpRedisProjectId.Apply(gcpRedisProjectId => $"https://www.googleapis.com/compute/v1/projects/{gcpRedisProjectId}/global/networks/{rediscloud_active_active_subscription_peering.Example.Gcp_redis_network_name}"),
        });
    
    });
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/RedisLabs/pulumi-rediscloud/sdk/go/rediscloud"
    	"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rediscloud.NewActiveActiveSubscription(ctx, "subscription-resource", nil)
    		if err != nil {
    			return err
    		}
    		network, err := compute.LookupNetwork(ctx, &compute.LookupNetworkArgs{
    			Project: pulumi.StringRef("my-gcp-project"),
    			Name:    "my-gcp-vpc",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = rediscloud.NewActiveActiveSubscriptionPeering(ctx, "peering-resource", &rediscloud.ActiveActiveSubscriptionPeeringArgs{
    			SubscriptionId: subscription_resource.ID(),
    			SourceRegion:   pulumi.String("us-central1"),
    			ProviderName:   pulumi.String("GCP"),
    			GcpProjectId:   *pulumi.String(network.Project),
    			GcpNetworkName: *pulumi.String(network.Name),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewNetworkPeering(ctx, "gcp-peering-resource", &compute.NetworkPeeringArgs{
    			Network: *pulumi.String(network.SelfLink),
    			PeerNetwork: peering_resource.GcpRedisProjectId.ApplyT(func(gcpRedisProjectId string) (string, error) {
    				return fmt.Sprintf("https://www.googleapis.com/compute/v1/projects/%v/global/networks/%v", gcpRedisProjectId, rediscloud_active_active_subscription_peering.Example.Gcp_redis_network_name), nil
    			}).(pulumi.StringOutput),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rediscloud.ActiveActiveSubscription;
    import com.pulumi.gcp.compute.ComputeFunctions;
    import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
    import com.pulumi.rediscloud.ActiveActiveSubscriptionPeering;
    import com.pulumi.rediscloud.ActiveActiveSubscriptionPeeringArgs;
    import com.pulumi.gcp.compute.NetworkPeering;
    import com.pulumi.gcp.compute.NetworkPeeringArgs;
    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 subscription_resource = new ActiveActiveSubscription("subscription-resource");
    
            final var network = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
                .project("my-gcp-project")
                .name("my-gcp-vpc")
                .build());
    
            var peering_resource = new ActiveActiveSubscriptionPeering("peering-resource", ActiveActiveSubscriptionPeeringArgs.builder()        
                .subscriptionId(subscription_resource.id())
                .sourceRegion("us-central1")
                .providerName("GCP")
                .gcpProjectId(network.applyValue(getNetworkResult -> getNetworkResult.project()))
                .gcpNetworkName(network.applyValue(getNetworkResult -> getNetworkResult.name()))
                .build());
    
            var gcp_peering_resource = new NetworkPeering("gcp-peering-resource", NetworkPeeringArgs.builder()        
                .network(network.applyValue(getNetworkResult -> getNetworkResult.selfLink()))
                .peerNetwork(peering_resource.gcpRedisProjectId().applyValue(gcpRedisProjectId -> String.format("https://www.googleapis.com/compute/v1/projects/%s/global/networks/%s", gcpRedisProjectId,rediscloud_active_active_subscription_peering.example().gcp_redis_network_name())))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_gcp as gcp
    import pulumi_rediscloud as rediscloud
    
    subscription_resource = rediscloud.ActiveActiveSubscription("subscription-resource")
    # ...
    network = gcp.compute.get_network(project="my-gcp-project",
        name="my-gcp-vpc")
    peering_resource = rediscloud.ActiveActiveSubscriptionPeering("peering-resource",
        subscription_id=subscription_resource.id,
        source_region="us-central1",
        provider_name="GCP",
        gcp_project_id=network.project,
        gcp_network_name=network.name)
    gcp_peering_resource = gcp.compute.NetworkPeering("gcp-peering-resource",
        network=network.self_link,
        peer_network=peering_resource.gcp_redis_project_id.apply(lambda gcp_redis_project_id: f"https://www.googleapis.com/compute/v1/projects/{gcp_redis_project_id}/global/networks/{rediscloud_active_active_subscription_peering['example']['gcp_redis_network_name']}"))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    import * as rediscloud from "@rediscloud/pulumi-rediscloud";
    
    const subscription_resource = new rediscloud.ActiveActiveSubscription("subscription-resource", {});
    // ...
    const network = gcp.compute.getNetwork({
        project: "my-gcp-project",
        name: "my-gcp-vpc",
    });
    const peering_resource = new rediscloud.ActiveActiveSubscriptionPeering("peering-resource", {
        subscriptionId: subscription_resource.id,
        sourceRegion: "us-central1",
        providerName: "GCP",
        gcpProjectId: network.then(network => network.project),
        gcpNetworkName: network.then(network => network.name),
    });
    const gcp_peering_resource = new gcp.compute.NetworkPeering("gcp-peering-resource", {
        network: network.then(network => network.selfLink),
        peerNetwork: pulumi.interpolate`https://www.googleapis.com/compute/v1/projects/${peering_resource.gcpRedisProjectId}/global/networks/${rediscloud_active_active_subscription_peering.example.gcp_redis_network_name}`,
    });
    
    resources:
      subscription-resource:
        type: rediscloud:ActiveActiveSubscription
      peering-resource:
        type: rediscloud:ActiveActiveSubscriptionPeering
        properties:
          subscriptionId: ${["subscription-resource"].id}
          sourceRegion: us-central1
          providerName: GCP
          gcpProjectId: ${network.project}
          gcpNetworkName: ${network.name}
      gcp-peering-resource:
        type: gcp:compute:NetworkPeering
        properties:
          network: ${network.selfLink}
          peerNetwork: https://www.googleapis.com/compute/v1/projects/${["peering-resource"].gcpRedisProjectId}/global/networks/${rediscloud_active_active_subscription_peering.example.gcp_redis_network_name}
    variables:
      network:
        fn::invoke:
          Function: gcp:compute:getNetwork
          Arguments:
            project: my-gcp-project
            name: my-gcp-vpc
    

    Create ActiveActiveSubscriptionPeering Resource

    new ActiveActiveSubscriptionPeering(name: string, args: ActiveActiveSubscriptionPeeringArgs, opts?: CustomResourceOptions);
    @overload
    def ActiveActiveSubscriptionPeering(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        aws_account_id: Optional[str] = None,
                                        destination_region: Optional[str] = None,
                                        gcp_network_name: Optional[str] = None,
                                        gcp_project_id: Optional[str] = None,
                                        provider_name: Optional[str] = None,
                                        source_region: Optional[str] = None,
                                        subscription_id: Optional[str] = None,
                                        vpc_cidr: Optional[str] = None,
                                        vpc_cidrs: Optional[Sequence[str]] = None,
                                        vpc_id: Optional[str] = None)
    @overload
    def ActiveActiveSubscriptionPeering(resource_name: str,
                                        args: ActiveActiveSubscriptionPeeringArgs,
                                        opts: Optional[ResourceOptions] = None)
    func NewActiveActiveSubscriptionPeering(ctx *Context, name string, args ActiveActiveSubscriptionPeeringArgs, opts ...ResourceOption) (*ActiveActiveSubscriptionPeering, error)
    public ActiveActiveSubscriptionPeering(string name, ActiveActiveSubscriptionPeeringArgs args, CustomResourceOptions? opts = null)
    public ActiveActiveSubscriptionPeering(String name, ActiveActiveSubscriptionPeeringArgs args)
    public ActiveActiveSubscriptionPeering(String name, ActiveActiveSubscriptionPeeringArgs args, CustomResourceOptions options)
    
    type: rediscloud:ActiveActiveSubscriptionPeering
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ActiveActiveSubscriptionPeeringArgs
    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 ActiveActiveSubscriptionPeeringArgs
    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 ActiveActiveSubscriptionPeeringArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ActiveActiveSubscriptionPeeringArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ActiveActiveSubscriptionPeeringArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ActiveActiveSubscriptionPeering 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 ActiveActiveSubscriptionPeering resource accepts the following input properties:

    SubscriptionId string

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    AwsAccountId string

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    DestinationRegion string

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    GcpNetworkName string

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    GcpProjectId string

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    ProviderName string

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    SourceRegion string

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    VpcCidr string

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    VpcCidrs List<string>

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    VpcId string

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    SubscriptionId string

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    AwsAccountId string

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    DestinationRegion string

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    GcpNetworkName string

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    GcpProjectId string

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    ProviderName string

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    SourceRegion string

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    VpcCidr string

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    VpcCidrs []string

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    VpcId string

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    subscriptionId String

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    awsAccountId String

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    destinationRegion String

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    gcpNetworkName String

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    gcpProjectId String

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    providerName String

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    sourceRegion String

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    vpcCidr String

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    vpcCidrs List<String>

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    vpcId String

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    subscriptionId string

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    awsAccountId string

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    destinationRegion string

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    gcpNetworkName string

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    gcpProjectId string

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    providerName string

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    sourceRegion string

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    vpcCidr string

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    vpcCidrs string[]

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    vpcId string

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    subscription_id str

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    aws_account_id str

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    destination_region str

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    gcp_network_name str

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    gcp_project_id str

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    provider_name str

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    source_region str

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    vpc_cidr str

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    vpc_cidrs Sequence[str]

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    vpc_id str

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    subscriptionId String

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    awsAccountId String

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    destinationRegion String

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    gcpNetworkName String

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    gcpProjectId String

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    providerName String

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    sourceRegion String

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    vpcCidr String

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    vpcCidrs List<String>

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    vpcId String

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ActiveActiveSubscriptionPeering resource produces the following output properties:

    AwsPeeringId string

    Identifier of the AWS cloud peering

    GcpPeeringId string

    Identifier of the cloud peering

    GcpRedisNetworkName string

    The name of the Redis Enterprise Cloud network to be peered

    GcpRedisProjectId string

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    AwsPeeringId string

    Identifier of the AWS cloud peering

    GcpPeeringId string

    Identifier of the cloud peering

    GcpRedisNetworkName string

    The name of the Redis Enterprise Cloud network to be peered

    GcpRedisProjectId string

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    Id string

    The provider-assigned unique ID for this managed resource.

    Status string

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    awsPeeringId String

    Identifier of the AWS cloud peering

    gcpPeeringId String

    Identifier of the cloud peering

    gcpRedisNetworkName String

    The name of the Redis Enterprise Cloud network to be peered

    gcpRedisProjectId String

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    awsPeeringId string

    Identifier of the AWS cloud peering

    gcpPeeringId string

    Identifier of the cloud peering

    gcpRedisNetworkName string

    The name of the Redis Enterprise Cloud network to be peered

    gcpRedisProjectId string

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    id string

    The provider-assigned unique ID for this managed resource.

    status string

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    aws_peering_id str

    Identifier of the AWS cloud peering

    gcp_peering_id str

    Identifier of the cloud peering

    gcp_redis_network_name str

    The name of the Redis Enterprise Cloud network to be peered

    gcp_redis_project_id str

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    id str

    The provider-assigned unique ID for this managed resource.

    status str

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    awsPeeringId String

    Identifier of the AWS cloud peering

    gcpPeeringId String

    Identifier of the cloud peering

    gcpRedisNetworkName String

    The name of the Redis Enterprise Cloud network to be peered

    gcpRedisProjectId String

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    id String

    The provider-assigned unique ID for this managed resource.

    status String

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    Look up Existing ActiveActiveSubscriptionPeering Resource

    Get an existing ActiveActiveSubscriptionPeering 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?: ActiveActiveSubscriptionPeeringState, opts?: CustomResourceOptions): ActiveActiveSubscriptionPeering
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aws_account_id: Optional[str] = None,
            aws_peering_id: Optional[str] = None,
            destination_region: Optional[str] = None,
            gcp_network_name: Optional[str] = None,
            gcp_peering_id: Optional[str] = None,
            gcp_project_id: Optional[str] = None,
            gcp_redis_network_name: Optional[str] = None,
            gcp_redis_project_id: Optional[str] = None,
            provider_name: Optional[str] = None,
            source_region: Optional[str] = None,
            status: Optional[str] = None,
            subscription_id: Optional[str] = None,
            vpc_cidr: Optional[str] = None,
            vpc_cidrs: Optional[Sequence[str]] = None,
            vpc_id: Optional[str] = None) -> ActiveActiveSubscriptionPeering
    func GetActiveActiveSubscriptionPeering(ctx *Context, name string, id IDInput, state *ActiveActiveSubscriptionPeeringState, opts ...ResourceOption) (*ActiveActiveSubscriptionPeering, error)
    public static ActiveActiveSubscriptionPeering Get(string name, Input<string> id, ActiveActiveSubscriptionPeeringState? state, CustomResourceOptions? opts = null)
    public static ActiveActiveSubscriptionPeering get(String name, Output<String> id, ActiveActiveSubscriptionPeeringState 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.
    The following state arguments are supported:
    AwsAccountId string

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    AwsPeeringId string

    Identifier of the AWS cloud peering

    DestinationRegion string

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    GcpNetworkName string

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    GcpPeeringId string

    Identifier of the cloud peering

    GcpProjectId string

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    GcpRedisNetworkName string

    The name of the Redis Enterprise Cloud network to be peered

    GcpRedisProjectId string

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    ProviderName string

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    SourceRegion string

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    Status string

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    SubscriptionId string

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    VpcCidr string

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    VpcCidrs List<string>

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    VpcId string

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    AwsAccountId string

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    AwsPeeringId string

    Identifier of the AWS cloud peering

    DestinationRegion string

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    GcpNetworkName string

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    GcpPeeringId string

    Identifier of the cloud peering

    GcpProjectId string

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    GcpRedisNetworkName string

    The name of the Redis Enterprise Cloud network to be peered

    GcpRedisProjectId string

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    ProviderName string

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    SourceRegion string

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    Status string

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    SubscriptionId string

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    VpcCidr string

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    VpcCidrs []string

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    VpcId string

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    awsAccountId String

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    awsPeeringId String

    Identifier of the AWS cloud peering

    destinationRegion String

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    gcpNetworkName String

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    gcpPeeringId String

    Identifier of the cloud peering

    gcpProjectId String

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    gcpRedisNetworkName String

    The name of the Redis Enterprise Cloud network to be peered

    gcpRedisProjectId String

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    providerName String

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    sourceRegion String

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    status String

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    subscriptionId String

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    vpcCidr String

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    vpcCidrs List<String>

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    vpcId String

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    awsAccountId string

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    awsPeeringId string

    Identifier of the AWS cloud peering

    destinationRegion string

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    gcpNetworkName string

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    gcpPeeringId string

    Identifier of the cloud peering

    gcpProjectId string

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    gcpRedisNetworkName string

    The name of the Redis Enterprise Cloud network to be peered

    gcpRedisProjectId string

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    providerName string

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    sourceRegion string

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    status string

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    subscriptionId string

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    vpcCidr string

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    vpcCidrs string[]

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    vpcId string

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    aws_account_id str

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    aws_peering_id str

    Identifier of the AWS cloud peering

    destination_region str

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    gcp_network_name str

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    gcp_peering_id str

    Identifier of the cloud peering

    gcp_project_id str

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    gcp_redis_network_name str

    The name of the Redis Enterprise Cloud network to be peered

    gcp_redis_project_id str

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    provider_name str

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    source_region str

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    status str

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    subscription_id str

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    vpc_cidr str

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    vpc_cidrs Sequence[str]

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    vpc_id str

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    awsAccountId String

    AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    awsPeeringId String

    Identifier of the AWS cloud peering

    destinationRegion String

    Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.

    gcpNetworkName String

    The name of the network to be peered. Modifying this attribute will force creation of a new resource.

    gcpPeeringId String

    Identifier of the cloud peering

    gcpProjectId String

    GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.

    gcpRedisNetworkName String

    The name of the Redis Enterprise Cloud network to be peered

    gcpRedisProjectId String

    Identifier of the Redis Enterprise Cloud GCP project to be peered

    providerName String

    The cloud provider to use with the vpc peering, (either AWS or GCP). Default: ‘AWS’. Modifying this attribute will force creation of a new resource.

    sourceRegion String

    Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.

    AWS ONLY:

    status String

    is set to the current status of the peering - initiating-request, pending-acceptance, active, inactive or failed.

    subscriptionId String

    A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.

    vpcCidr String

    CIDR range of the VPC to be peered. Either this or vpc_cidrs must be specified. Modifying this attribute will force creation of a new resource.

    vpcCidrs List<String>

    CIDR ranges of the VPC to be peered. Either this or vpc_cidr must be specified. Modifying this attribute will force creation of a new resource.

    GCP ONLY:

    vpcId String

    Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.

    Import

    rediscloud_active_active_subscription_peering can be imported using the ID of the Active-Active subscription and the ID of the peering connection, e.g.

     $ pulumi import rediscloud:index/activeActiveSubscriptionPeering:ActiveActiveSubscriptionPeering peering-resource 12345678/1234
    

    Package Details

    Repository
    rediscloud RedisLabs/pulumi-rediscloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the rediscloud Terraform Provider.

    rediscloud logo
    Redis Cloud v1.3.1 published on Friday, Sep 29, 2023 by RedisLabs