rediscloud.ActiveActiveSubscriptionPeering
Explore with Pulumi AI
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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ActiveActiveSubscriptionPeering(name: string, args: ActiveActiveSubscriptionPeeringArgs, opts?: CustomResourceOptions);
@overload
def ActiveActiveSubscriptionPeering(resource_name: str,
args: ActiveActiveSubscriptionPeeringArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ActiveActiveSubscriptionPeering(resource_name: str,
opts: Optional[ResourceOptions] = None,
subscription_id: Optional[str] = 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,
vpc_cidr: Optional[str] = None,
vpc_cidrs: Optional[Sequence[str]] = None,
vpc_id: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var activeActiveSubscriptionPeeringResource = new Rediscloud.ActiveActiveSubscriptionPeering("activeActiveSubscriptionPeeringResource", new()
{
SubscriptionId = "string",
AwsAccountId = "string",
DestinationRegion = "string",
GcpNetworkName = "string",
GcpProjectId = "string",
ProviderName = "string",
SourceRegion = "string",
VpcCidr = "string",
VpcCidrs = new[]
{
"string",
},
VpcId = "string",
});
example, err := rediscloud.NewActiveActiveSubscriptionPeering(ctx, "activeActiveSubscriptionPeeringResource", &rediscloud.ActiveActiveSubscriptionPeeringArgs{
SubscriptionId: pulumi.String("string"),
AwsAccountId: pulumi.String("string"),
DestinationRegion: pulumi.String("string"),
GcpNetworkName: pulumi.String("string"),
GcpProjectId: pulumi.String("string"),
ProviderName: pulumi.String("string"),
SourceRegion: pulumi.String("string"),
VpcCidr: pulumi.String("string"),
VpcCidrs: pulumi.StringArray{
pulumi.String("string"),
},
VpcId: pulumi.String("string"),
})
var activeActiveSubscriptionPeeringResource = new ActiveActiveSubscriptionPeering("activeActiveSubscriptionPeeringResource", ActiveActiveSubscriptionPeeringArgs.builder()
.subscriptionId("string")
.awsAccountId("string")
.destinationRegion("string")
.gcpNetworkName("string")
.gcpProjectId("string")
.providerName("string")
.sourceRegion("string")
.vpcCidr("string")
.vpcCidrs("string")
.vpcId("string")
.build());
active_active_subscription_peering_resource = rediscloud.ActiveActiveSubscriptionPeering("activeActiveSubscriptionPeeringResource",
subscription_id="string",
aws_account_id="string",
destination_region="string",
gcp_network_name="string",
gcp_project_id="string",
provider_name="string",
source_region="string",
vpc_cidr="string",
vpc_cidrs=["string"],
vpc_id="string")
const activeActiveSubscriptionPeeringResource = new rediscloud.ActiveActiveSubscriptionPeering("activeActiveSubscriptionPeeringResource", {
subscriptionId: "string",
awsAccountId: "string",
destinationRegion: "string",
gcpNetworkName: "string",
gcpProjectId: "string",
providerName: "string",
sourceRegion: "string",
vpcCidr: "string",
vpcCidrs: ["string"],
vpcId: "string",
});
type: rediscloud:ActiveActiveSubscriptionPeering
properties:
awsAccountId: string
destinationRegion: string
gcpNetworkName: string
gcpProjectId: string
providerName: string
sourceRegion: string
subscriptionId: string
vpcCidr: string
vpcCidrs:
- string
vpcId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ActiveActiveSubscriptionPeering resource accepts the following input properties:
- Subscription
Id string - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- Aws
Account stringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- Destination
Region string - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- Gcp
Network stringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- Gcp
Project stringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- Provider
Name string - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - Source
Region string Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.
AWS ONLY:
- Vpc
Cidr 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. - Vpc
Cidrs 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:
- Vpc
Id string - Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.
- Subscription
Id string - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- Aws
Account stringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- Destination
Region string - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- Gcp
Network stringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- Gcp
Project stringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- Provider
Name string - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - Source
Region string Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.
AWS ONLY:
- Vpc
Cidr 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. - Vpc
Cidrs []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:
- Vpc
Id string - Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.
- subscription
Id String - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- aws
Account StringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- destination
Region String - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- gcp
Network StringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- gcp
Project StringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- provider
Name String - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - source
Region String Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.
AWS ONLY:
- vpc
Cidr 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. - vpc
Cidrs 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:
- vpc
Id String - Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.
- subscription
Id string - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- aws
Account stringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- destination
Region string - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- gcp
Network stringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- gcp
Project stringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- provider
Name string - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - source
Region string Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.
AWS ONLY:
- vpc
Cidr 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. - vpc
Cidrs 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:
- vpc
Id 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_ strid - 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_ strname - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- gcp_
project_ strid - 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
orGCP
). 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.
- subscription
Id String - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- aws
Account StringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- destination
Region String - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- gcp
Network StringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- gcp
Project StringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- provider
Name String - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - source
Region String Name of the region to create the VPC peering from. Modifying this attribute will force creation of a new resource.
AWS ONLY:
- vpc
Cidr 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. - vpc
Cidrs 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:
- vpc
Id 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:
- Aws
Peering stringId - Identifier of the AWS cloud peering
- Gcp
Peering stringId - Identifier of the cloud peering
- Gcp
Redis stringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- Gcp
Redis stringProject Id - 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
orfailed
.
- Aws
Peering stringId - Identifier of the AWS cloud peering
- Gcp
Peering stringId - Identifier of the cloud peering
- Gcp
Redis stringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- Gcp
Redis stringProject Id - 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
orfailed
.
- aws
Peering StringId - Identifier of the AWS cloud peering
- gcp
Peering StringId - Identifier of the cloud peering
- gcp
Redis StringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- gcp
Redis StringProject Id - 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
orfailed
.
- aws
Peering stringId - Identifier of the AWS cloud peering
- gcp
Peering stringId - Identifier of the cloud peering
- gcp
Redis stringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- gcp
Redis stringProject Id - 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
orfailed
.
- aws_
peering_ strid - Identifier of the AWS cloud peering
- gcp_
peering_ strid - Identifier of the cloud peering
- gcp_
redis_ strnetwork_ name - The name of the Redis Enterprise Cloud network to be peered
- gcp_
redis_ strproject_ id - 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
orfailed
.
- aws
Peering StringId - Identifier of the AWS cloud peering
- gcp
Peering StringId - Identifier of the cloud peering
- gcp
Redis StringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- gcp
Redis StringProject Id - 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
orfailed
.
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.
- Aws
Account stringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- Aws
Peering stringId - Identifier of the AWS cloud peering
- Destination
Region string - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- Gcp
Network stringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- Gcp
Peering stringId - Identifier of the cloud peering
- Gcp
Project stringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- Gcp
Redis stringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- Gcp
Redis stringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- Provider
Name string - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - Source
Region 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
orfailed
. - Subscription
Id string - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- Vpc
Cidr 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. - Vpc
Cidrs 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:
- Vpc
Id string - Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.
- Aws
Account stringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- Aws
Peering stringId - Identifier of the AWS cloud peering
- Destination
Region string - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- Gcp
Network stringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- Gcp
Peering stringId - Identifier of the cloud peering
- Gcp
Project stringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- Gcp
Redis stringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- Gcp
Redis stringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- Provider
Name string - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - Source
Region 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
orfailed
. - Subscription
Id string - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- Vpc
Cidr 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. - Vpc
Cidrs []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:
- Vpc
Id string - Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.
- aws
Account StringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- aws
Peering StringId - Identifier of the AWS cloud peering
- destination
Region String - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- gcp
Network StringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- gcp
Peering StringId - Identifier of the cloud peering
- gcp
Project StringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- gcp
Redis StringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- gcp
Redis StringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- provider
Name String - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - source
Region 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
orfailed
. - subscription
Id String - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- vpc
Cidr 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. - vpc
Cidrs 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:
- vpc
Id String - Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.
- aws
Account stringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- aws
Peering stringId - Identifier of the AWS cloud peering
- destination
Region string - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- gcp
Network stringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- gcp
Peering stringId - Identifier of the cloud peering
- gcp
Project stringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- gcp
Redis stringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- gcp
Redis stringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- provider
Name string - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - source
Region 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
orfailed
. - subscription
Id string - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- vpc
Cidr 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. - vpc
Cidrs 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:
- vpc
Id string - Identifier of the VPC to be peered. Modifying this attribute will force creation of a new resource.
- aws_
account_ strid - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- aws_
peering_ strid - 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_ strname - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- gcp_
peering_ strid - Identifier of the cloud peering
- gcp_
project_ strid - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- gcp_
redis_ strnetwork_ name - The name of the Redis Enterprise Cloud network to be peered
- gcp_
redis_ strproject_ id - 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
orGCP
). 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
orfailed
. - 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.
- aws
Account StringId - AWS account ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- aws
Peering StringId - Identifier of the AWS cloud peering
- destination
Region String - Name of the region to create the VPC peering to. Modifying this attribute will force creation of a new resource.
- gcp
Network StringName - The name of the network to be peered. Modifying this attribute will force creation of a new resource.
- gcp
Peering StringId - Identifier of the cloud peering
- gcp
Project StringId - GCP project ID that the VPC to be peered lives in. Modifying this attribute will force creation of a new resource.
- gcp
Redis StringNetwork Name - The name of the Redis Enterprise Cloud network to be peered
- gcp
Redis StringProject Id - Identifier of the Redis Enterprise Cloud GCP project to be peered
- provider
Name String - The cloud provider to use with the vpc peering, (either
AWS
orGCP
). Default: ‘AWS’. Modifying this attribute will force creation of a new resource. - source
Region 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
orfailed
. - subscription
Id String - A valid Active-Active subscription predefined in the current account. Modifying this attribute will force creation of a new resource.
- vpc
Cidr 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. - vpc
Cidrs 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:
- vpc
Id 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- rediscloud RedisLabs/pulumi-rediscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rediscloud
Terraform Provider.