cloudamqp.VpcGcpPeering
Explore with Pulumi AI
This resouce creates a VPC peering configuration for the CloudAMQP instance. The configuration will connect to another VPC network hosted on Google Cloud Platform (GCP). See the GCP documentation for more information on how to create the VPC peering configuration.
Note: Creating a VPC peering will automatically add firewall rules for the peered subnet.
Default VPC peering firewall rule
Example Usage
VPC peering before v1.16.0
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
// CloudAMQP instance
const instance = new cloudamqp.Instance("instance", {
name: "terraform-vpc-peering",
plan: "bunny-1",
region: "google-compute-engine::europe-north1",
tags: ["terraform"],
vpcSubnet: "10.40.72.0/24",
});
// VPC information
const vpcInfo = instance.id.apply(id => cloudamqp.getVpcGcpInfoOutput({
instanceId: id,
}));
// VPC peering configuration
const vpcPeeringRequest = new cloudamqp.VpcGcpPeering("vpc_peering_request", {
instanceId: instance.id,
peerNetworkUri: "https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>",
});
import pulumi
import pulumi_cloudamqp as cloudamqp
# CloudAMQP instance
instance = cloudamqp.Instance("instance",
name="terraform-vpc-peering",
plan="bunny-1",
region="google-compute-engine::europe-north1",
tags=["terraform"],
vpc_subnet="10.40.72.0/24")
# VPC information
vpc_info = instance.id.apply(lambda id: cloudamqp.get_vpc_gcp_info_output(instance_id=id))
# VPC peering configuration
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
instance_id=instance.id,
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>")
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// CloudAMQP instance
instance, err := cloudamqp.NewInstance(ctx, "instance", &cloudamqp.InstanceArgs{
Name: pulumi.String("terraform-vpc-peering"),
Plan: pulumi.String("bunny-1"),
Region: pulumi.String("google-compute-engine::europe-north1"),
Tags: pulumi.StringArray{
pulumi.String("terraform"),
},
VpcSubnet: pulumi.String("10.40.72.0/24"),
})
if err != nil {
return err
}
// VPC information
_ = instance.ID().ApplyT(func(id string) (cloudamqp.GetVpcGcpInfoResult, error) {
return cloudamqp.GetVpcGcpInfoResult(interface{}(cloudamqp.GetVpcGcpInfoOutput(ctx, cloudamqp.GetVpcGcpInfoOutputArgs{
InstanceId: id,
}, nil))), nil
}).(cloudamqp.GetVpcGcpInfoResultOutput)
// VPC peering configuration
_, err = cloudamqp.NewVpcGcpPeering(ctx, "vpc_peering_request", &cloudamqp.VpcGcpPeeringArgs{
InstanceId: instance.ID(),
PeerNetworkUri: pulumi.String("https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
// CloudAMQP instance
var instance = new CloudAmqp.Instance("instance", new()
{
Name = "terraform-vpc-peering",
Plan = "bunny-1",
Region = "google-compute-engine::europe-north1",
Tags = new[]
{
"terraform",
},
VpcSubnet = "10.40.72.0/24",
});
// VPC information
var vpcInfo = CloudAmqp.GetVpcGcpInfo.Invoke(new()
{
InstanceId = instance.Id,
});
// VPC peering configuration
var vpcPeeringRequest = new CloudAmqp.VpcGcpPeering("vpc_peering_request", new()
{
InstanceId = instance.Id,
PeerNetworkUri = "https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.Instance;
import com.pulumi.cloudamqp.InstanceArgs;
import com.pulumi.cloudamqp.CloudamqpFunctions;
import com.pulumi.cloudamqp.inputs.GetVpcGcpInfoArgs;
import com.pulumi.cloudamqp.VpcGcpPeering;
import com.pulumi.cloudamqp.VpcGcpPeeringArgs;
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) {
// CloudAMQP instance
var instance = new Instance("instance", InstanceArgs.builder()
.name("terraform-vpc-peering")
.plan("bunny-1")
.region("google-compute-engine::europe-north1")
.tags("terraform")
.vpcSubnet("10.40.72.0/24")
.build());
// VPC information
final var vpcInfo = CloudamqpFunctions.getVpcGcpInfo(GetVpcGcpInfoArgs.builder()
.instanceId(instance.id())
.build());
// VPC peering configuration
var vpcPeeringRequest = new VpcGcpPeering("vpcPeeringRequest", VpcGcpPeeringArgs.builder()
.instanceId(instance.id())
.peerNetworkUri("https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>")
.build());
}
}
resources:
# CloudAMQP instance
instance:
type: cloudamqp:Instance
properties:
name: terraform-vpc-peering
plan: bunny-1
region: google-compute-engine::europe-north1
tags:
- terraform
vpcSubnet: 10.40.72.0/24
# VPC peering configuration
vpcPeeringRequest:
type: cloudamqp:VpcGcpPeering
name: vpc_peering_request
properties:
instanceId: ${instance.id}
peerNetworkUri: https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>
variables:
# VPC information
vpcInfo:
fn::invoke:
Function: cloudamqp:getVpcGcpInfo
Arguments:
instanceId: ${instance.id}
VPC peering from v1.16.0 (Managed VPC)
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
// Managed VPC resource
const vpc = new cloudamqp.Vpc("vpc", {
name: "<VPC name>",
region: "google-compute-engine::europe-north1",
subnet: "10.56.72.0/24",
tags: [],
});
// CloudAMQP instance
const instance = new cloudamqp.Instance("instance", {
name: "terraform-vpc-peering",
plan: "bunny-1",
region: "google-compute-engine::europe-north1",
tags: ["terraform"],
vpcId: vpc.id,
});
// VPC information
const vpcInfo = cloudamqp.getVpcGcpInfo({
vpcId: vpc.info,
});
// VPC peering configuration
const vpcPeeringRequest = new cloudamqp.VpcGcpPeering("vpc_peering_request", {
vpcId: vpc.id,
peerNetworkUri: "https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>",
});
import pulumi
import pulumi_cloudamqp as cloudamqp
# Managed VPC resource
vpc = cloudamqp.Vpc("vpc",
name="<VPC name>",
region="google-compute-engine::europe-north1",
subnet="10.56.72.0/24",
tags=[])
# CloudAMQP instance
instance = cloudamqp.Instance("instance",
name="terraform-vpc-peering",
plan="bunny-1",
region="google-compute-engine::europe-north1",
tags=["terraform"],
vpc_id=vpc.id)
# VPC information
vpc_info = cloudamqp.get_vpc_gcp_info(vpc_id=vpc.info)
# VPC peering configuration
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
vpc_id=vpc.id,
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>")
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Managed VPC resource
vpc, err := cloudamqp.NewVpc(ctx, "vpc", &cloudamqp.VpcArgs{
Name: pulumi.String("<VPC name>"),
Region: pulumi.String("google-compute-engine::europe-north1"),
Subnet: pulumi.String("10.56.72.0/24"),
Tags: pulumi.StringArray{},
})
if err != nil {
return err
}
// CloudAMQP instance
_, err = cloudamqp.NewInstance(ctx, "instance", &cloudamqp.InstanceArgs{
Name: pulumi.String("terraform-vpc-peering"),
Plan: pulumi.String("bunny-1"),
Region: pulumi.String("google-compute-engine::europe-north1"),
Tags: pulumi.StringArray{
pulumi.String("terraform"),
},
VpcId: vpc.ID(),
})
if err != nil {
return err
}
// VPC information
_, err = cloudamqp.GetVpcGcpInfo(ctx, &cloudamqp.GetVpcGcpInfoArgs{
VpcId: pulumi.StringRef(vpc.Info),
}, nil)
if err != nil {
return err
}
// VPC peering configuration
_, err = cloudamqp.NewVpcGcpPeering(ctx, "vpc_peering_request", &cloudamqp.VpcGcpPeeringArgs{
VpcId: vpc.ID(),
PeerNetworkUri: pulumi.String("https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
// Managed VPC resource
var vpc = new CloudAmqp.Vpc("vpc", new()
{
Name = "<VPC name>",
Region = "google-compute-engine::europe-north1",
Subnet = "10.56.72.0/24",
Tags = new[] {},
});
// CloudAMQP instance
var instance = new CloudAmqp.Instance("instance", new()
{
Name = "terraform-vpc-peering",
Plan = "bunny-1",
Region = "google-compute-engine::europe-north1",
Tags = new[]
{
"terraform",
},
VpcId = vpc.Id,
});
// VPC information
var vpcInfo = CloudAmqp.GetVpcGcpInfo.Invoke(new()
{
VpcId = vpc.Info,
});
// VPC peering configuration
var vpcPeeringRequest = new CloudAmqp.VpcGcpPeering("vpc_peering_request", new()
{
VpcId = vpc.Id,
PeerNetworkUri = "https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.Vpc;
import com.pulumi.cloudamqp.VpcArgs;
import com.pulumi.cloudamqp.Instance;
import com.pulumi.cloudamqp.InstanceArgs;
import com.pulumi.cloudamqp.CloudamqpFunctions;
import com.pulumi.cloudamqp.inputs.GetVpcGcpInfoArgs;
import com.pulumi.cloudamqp.VpcGcpPeering;
import com.pulumi.cloudamqp.VpcGcpPeeringArgs;
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) {
// Managed VPC resource
var vpc = new Vpc("vpc", VpcArgs.builder()
.name("<VPC name>")
.region("google-compute-engine::europe-north1")
.subnet("10.56.72.0/24")
.tags()
.build());
// CloudAMQP instance
var instance = new Instance("instance", InstanceArgs.builder()
.name("terraform-vpc-peering")
.plan("bunny-1")
.region("google-compute-engine::europe-north1")
.tags("terraform")
.vpcId(vpc.id())
.build());
// VPC information
final var vpcInfo = CloudamqpFunctions.getVpcGcpInfo(GetVpcGcpInfoArgs.builder()
.vpcId(vpc.info())
.build());
// VPC peering configuration
var vpcPeeringRequest = new VpcGcpPeering("vpcPeeringRequest", VpcGcpPeeringArgs.builder()
.vpcId(vpc.id())
.peerNetworkUri("https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>")
.build());
}
}
resources:
# Managed VPC resource
vpc:
type: cloudamqp:Vpc
properties:
name: <VPC name>
region: google-compute-engine::europe-north1
subnet: 10.56.72.0/24
tags: []
# CloudAMQP instance
instance:
type: cloudamqp:Instance
properties:
name: terraform-vpc-peering
plan: bunny-1
region: google-compute-engine::europe-north1
tags:
- terraform
vpcId: ${vpc.id}
# VPC peering configuration
vpcPeeringRequest:
type: cloudamqp:VpcGcpPeering
name: vpc_peering_request
properties:
vpcId: ${vpc.id}
peerNetworkUri: https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>
variables:
# VPC information
vpcInfo:
fn::invoke:
Function: cloudamqp:getVpcGcpInfo
Arguments:
vpcId: ${vpc.info}
VPC peering from v1.28.0, wait_on_peering_status
Default peering request, no need to set wait_on_peering_status
. It’s default set to false and will not wait on peering status.
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const vpcPeeringRequest = new cloudamqp.VpcGcpPeering("vpc_peering_request", {
vpcId: vpc.id,
peerNetworkUri: "https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>",
});
import pulumi
import pulumi_cloudamqp as cloudamqp
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
vpc_id=vpc["id"],
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>")
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewVpcGcpPeering(ctx, "vpc_peering_request", &cloudamqp.VpcGcpPeeringArgs{
VpcId: pulumi.Any(vpc.Id),
PeerNetworkUri: pulumi.String("https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var vpcPeeringRequest = new CloudAmqp.VpcGcpPeering("vpc_peering_request", new()
{
VpcId = vpc.Id,
PeerNetworkUri = "https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.VpcGcpPeering;
import com.pulumi.cloudamqp.VpcGcpPeeringArgs;
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 vpcPeeringRequest = new VpcGcpPeering("vpcPeeringRequest", VpcGcpPeeringArgs.builder()
.vpcId(vpc.id())
.peerNetworkUri("https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>")
.build());
}
}
resources:
vpcPeeringRequest:
type: cloudamqp:VpcGcpPeering
name: vpc_peering_request
properties:
vpcId: ${vpc.id}
peerNetworkUri: https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>
Peering request and waiting for peering status.
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
const vpcPeeringRequest = new cloudamqp.VpcGcpPeering("vpc_peering_request", {
vpcId: vpc.id,
waitOnPeeringStatus: true,
peerNetworkUri: "https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>",
});
import pulumi
import pulumi_cloudamqp as cloudamqp
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
vpc_id=vpc["id"],
wait_on_peering_status=True,
peer_network_uri="https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>")
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudamqp.NewVpcGcpPeering(ctx, "vpc_peering_request", &cloudamqp.VpcGcpPeeringArgs{
VpcId: pulumi.Any(vpc.Id),
WaitOnPeeringStatus: pulumi.Bool(true),
PeerNetworkUri: pulumi.String("https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
var vpcPeeringRequest = new CloudAmqp.VpcGcpPeering("vpc_peering_request", new()
{
VpcId = vpc.Id,
WaitOnPeeringStatus = true,
PeerNetworkUri = "https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.VpcGcpPeering;
import com.pulumi.cloudamqp.VpcGcpPeeringArgs;
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 vpcPeeringRequest = new VpcGcpPeering("vpcPeeringRequest", VpcGcpPeeringArgs.builder()
.vpcId(vpc.id())
.waitOnPeeringStatus(true)
.peerNetworkUri("https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>")
.build());
}
}
resources:
vpcPeeringRequest:
type: cloudamqp:VpcGcpPeering
name: vpc_peering_request
properties:
vpcId: ${vpc.id}
waitOnPeeringStatus: true
peerNetworkUri: https://www.googleapis.com/compute/v1/projects/<PROJECT-NAME>/global/networks/<NETWORK-NAME>
With Additional Firewall Rules
VPC peering before v1.16.0
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
// VPC peering configuration
const vpcPeeringRequest = new cloudamqp.VpcGcpPeering("vpc_peering_request", {
instanceId: instance.id,
peerNetworkUri: peerNetworkUri,
});
// Firewall rules
const firewallSettings = new cloudamqp.SecurityFirewall("firewall_settings", {
instanceId: instance.id,
rules: [
{
ip: peerSubnet,
ports: [15672],
services: [
"AMQP",
"AMQPS",
"STREAM",
"STREAM_SSL",
],
description: "VPC peering for <NETWORK>",
},
{
ip: "192.168.0.0/24",
ports: [
4567,
4568,
],
services: [
"AMQP",
"AMQPS",
"HTTPS",
],
},
],
}, {
dependsOn: [vpcPeeringRequest],
});
import pulumi
import pulumi_cloudamqp as cloudamqp
# VPC peering configuration
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
instance_id=instance["id"],
peer_network_uri=peer_network_uri)
# Firewall rules
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
instance_id=instance["id"],
rules=[
{
"ip": peer_subnet,
"ports": [15672],
"services": [
"AMQP",
"AMQPS",
"STREAM",
"STREAM_SSL",
],
"description": "VPC peering for <NETWORK>",
},
{
"ip": "192.168.0.0/24",
"ports": [
4567,
4568,
],
"services": [
"AMQP",
"AMQPS",
"HTTPS",
],
},
],
opts = pulumi.ResourceOptions(depends_on=[vpc_peering_request]))
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// VPC peering configuration
vpcPeeringRequest, err := cloudamqp.NewVpcGcpPeering(ctx, "vpc_peering_request", &cloudamqp.VpcGcpPeeringArgs{
InstanceId: pulumi.Any(instance.Id),
PeerNetworkUri: pulumi.Any(peerNetworkUri),
})
if err != nil {
return err
}
// Firewall rules
_, err = cloudamqp.NewSecurityFirewall(ctx, "firewall_settings", &cloudamqp.SecurityFirewallArgs{
InstanceId: pulumi.Any(instance.Id),
Rules: cloudamqp.SecurityFirewallRuleArray{
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.Any(peerSubnet),
Ports: pulumi.IntArray{
pulumi.Int(15672),
},
Services: pulumi.StringArray{
pulumi.String("AMQP"),
pulumi.String("AMQPS"),
pulumi.String("STREAM"),
pulumi.String("STREAM_SSL"),
},
Description: pulumi.String("VPC peering for <NETWORK>"),
},
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("192.168.0.0/24"),
Ports: pulumi.IntArray{
pulumi.Int(4567),
pulumi.Int(4568),
},
Services: pulumi.StringArray{
pulumi.String("AMQP"),
pulumi.String("AMQPS"),
pulumi.String("HTTPS"),
},
},
},
}, pulumi.DependsOn([]pulumi.Resource{
vpcPeeringRequest,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
// VPC peering configuration
var vpcPeeringRequest = new CloudAmqp.VpcGcpPeering("vpc_peering_request", new()
{
InstanceId = instance.Id,
PeerNetworkUri = peerNetworkUri,
});
// Firewall rules
var firewallSettings = new CloudAmqp.SecurityFirewall("firewall_settings", new()
{
InstanceId = instance.Id,
Rules = new[]
{
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = peerSubnet,
Ports = new[]
{
15672,
},
Services = new[]
{
"AMQP",
"AMQPS",
"STREAM",
"STREAM_SSL",
},
Description = "VPC peering for <NETWORK>",
},
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "192.168.0.0/24",
Ports = new[]
{
4567,
4568,
},
Services = new[]
{
"AMQP",
"AMQPS",
"HTTPS",
},
},
},
}, new CustomResourceOptions
{
DependsOn =
{
vpcPeeringRequest,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.VpcGcpPeering;
import com.pulumi.cloudamqp.VpcGcpPeeringArgs;
import com.pulumi.cloudamqp.SecurityFirewall;
import com.pulumi.cloudamqp.SecurityFirewallArgs;
import com.pulumi.cloudamqp.inputs.SecurityFirewallRuleArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// VPC peering configuration
var vpcPeeringRequest = new VpcGcpPeering("vpcPeeringRequest", VpcGcpPeeringArgs.builder()
.instanceId(instance.id())
.peerNetworkUri(peerNetworkUri)
.build());
// Firewall rules
var firewallSettings = new SecurityFirewall("firewallSettings", SecurityFirewallArgs.builder()
.instanceId(instance.id())
.rules(
SecurityFirewallRuleArgs.builder()
.ip(peerSubnet)
.ports(15672)
.services(
"AMQP",
"AMQPS",
"STREAM",
"STREAM_SSL")
.description("VPC peering for <NETWORK>")
.build(),
SecurityFirewallRuleArgs.builder()
.ip("192.168.0.0/24")
.ports(
4567,
4568)
.services(
"AMQP",
"AMQPS",
"HTTPS")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(vpcPeeringRequest)
.build());
}
}
resources:
# VPC peering configuration
vpcPeeringRequest:
type: cloudamqp:VpcGcpPeering
name: vpc_peering_request
properties:
instanceId: ${instance.id}
peerNetworkUri: ${peerNetworkUri}
# Firewall rules
firewallSettings:
type: cloudamqp:SecurityFirewall
name: firewall_settings
properties:
instanceId: ${instance.id}
rules:
- ip: ${peerSubnet}
ports:
- 15672
services:
- AMQP
- AMQPS
- STREAM
- STREAM_SSL
description: VPC peering for <NETWORK>
- ip: 192.168.0.0/24
ports:
- 4567
- 4568
services:
- AMQP
- AMQPS
- HTTPS
options:
dependson:
- ${vpcPeeringRequest}
VPC peering from v1.16.0 (Managed VPC)
import * as pulumi from "@pulumi/pulumi";
import * as cloudamqp from "@pulumi/cloudamqp";
// VPC peering configuration
const vpcPeeringRequest = new cloudamqp.VpcGcpPeering("vpc_peering_request", {
vpcId: vpc.id,
peerNetworkUri: peerNetworkUri,
});
// Firewall rules
const firewallSettings = new cloudamqp.SecurityFirewall("firewall_settings", {
instanceId: instance.id,
rules: [
{
ip: peerSubnet,
ports: [15672],
services: [
"AMQP",
"AMQPS",
"STREAM",
"STREAM_SSL",
],
description: "VPC peering for <NETWORK>",
},
{
ip: "0.0.0.0/0",
ports: [],
services: ["HTTPS"],
description: "MGMT interface",
},
],
}, {
dependsOn: [vpcPeeringRequest],
});
import pulumi
import pulumi_cloudamqp as cloudamqp
# VPC peering configuration
vpc_peering_request = cloudamqp.VpcGcpPeering("vpc_peering_request",
vpc_id=vpc["id"],
peer_network_uri=peer_network_uri)
# Firewall rules
firewall_settings = cloudamqp.SecurityFirewall("firewall_settings",
instance_id=instance["id"],
rules=[
{
"ip": peer_subnet,
"ports": [15672],
"services": [
"AMQP",
"AMQPS",
"STREAM",
"STREAM_SSL",
],
"description": "VPC peering for <NETWORK>",
},
{
"ip": "0.0.0.0/0",
"ports": [],
"services": ["HTTPS"],
"description": "MGMT interface",
},
],
opts = pulumi.ResourceOptions(depends_on=[vpc_peering_request]))
package main
import (
"github.com/pulumi/pulumi-cloudamqp/sdk/v3/go/cloudamqp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// VPC peering configuration
vpcPeeringRequest, err := cloudamqp.NewVpcGcpPeering(ctx, "vpc_peering_request", &cloudamqp.VpcGcpPeeringArgs{
VpcId: pulumi.Any(vpc.Id),
PeerNetworkUri: pulumi.Any(peerNetworkUri),
})
if err != nil {
return err
}
// Firewall rules
_, err = cloudamqp.NewSecurityFirewall(ctx, "firewall_settings", &cloudamqp.SecurityFirewallArgs{
InstanceId: pulumi.Any(instance.Id),
Rules: cloudamqp.SecurityFirewallRuleArray{
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.Any(peerSubnet),
Ports: pulumi.IntArray{
pulumi.Int(15672),
},
Services: pulumi.StringArray{
pulumi.String("AMQP"),
pulumi.String("AMQPS"),
pulumi.String("STREAM"),
pulumi.String("STREAM_SSL"),
},
Description: pulumi.String("VPC peering for <NETWORK>"),
},
&cloudamqp.SecurityFirewallRuleArgs{
Ip: pulumi.String("0.0.0.0/0"),
Ports: pulumi.IntArray{},
Services: pulumi.StringArray{
pulumi.String("HTTPS"),
},
Description: pulumi.String("MGMT interface"),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
vpcPeeringRequest,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using CloudAmqp = Pulumi.CloudAmqp;
return await Deployment.RunAsync(() =>
{
// VPC peering configuration
var vpcPeeringRequest = new CloudAmqp.VpcGcpPeering("vpc_peering_request", new()
{
VpcId = vpc.Id,
PeerNetworkUri = peerNetworkUri,
});
// Firewall rules
var firewallSettings = new CloudAmqp.SecurityFirewall("firewall_settings", new()
{
InstanceId = instance.Id,
Rules = new[]
{
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = peerSubnet,
Ports = new[]
{
15672,
},
Services = new[]
{
"AMQP",
"AMQPS",
"STREAM",
"STREAM_SSL",
},
Description = "VPC peering for <NETWORK>",
},
new CloudAmqp.Inputs.SecurityFirewallRuleArgs
{
Ip = "0.0.0.0/0",
Ports = new() { },
Services = new[]
{
"HTTPS",
},
Description = "MGMT interface",
},
},
}, new CustomResourceOptions
{
DependsOn =
{
vpcPeeringRequest,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudamqp.VpcGcpPeering;
import com.pulumi.cloudamqp.VpcGcpPeeringArgs;
import com.pulumi.cloudamqp.SecurityFirewall;
import com.pulumi.cloudamqp.SecurityFirewallArgs;
import com.pulumi.cloudamqp.inputs.SecurityFirewallRuleArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// VPC peering configuration
var vpcPeeringRequest = new VpcGcpPeering("vpcPeeringRequest", VpcGcpPeeringArgs.builder()
.vpcId(vpc.id())
.peerNetworkUri(peerNetworkUri)
.build());
// Firewall rules
var firewallSettings = new SecurityFirewall("firewallSettings", SecurityFirewallArgs.builder()
.instanceId(instance.id())
.rules(
SecurityFirewallRuleArgs.builder()
.ip(peerSubnet)
.ports(15672)
.services(
"AMQP",
"AMQPS",
"STREAM",
"STREAM_SSL")
.description("VPC peering for <NETWORK>")
.build(),
SecurityFirewallRuleArgs.builder()
.ip("0.0.0.0/0")
.ports()
.services("HTTPS")
.description("MGMT interface")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(vpcPeeringRequest)
.build());
}
}
resources:
# VPC peering configuration
vpcPeeringRequest:
type: cloudamqp:VpcGcpPeering
name: vpc_peering_request
properties:
vpcId: ${vpc.id}
peerNetworkUri: ${peerNetworkUri}
# Firewall rules
firewallSettings:
type: cloudamqp:SecurityFirewall
name: firewall_settings
properties:
instanceId: ${instance.id}
rules:
- ip: ${peerSubnet}
ports:
- 15672
services:
- AMQP
- AMQPS
- STREAM
- STREAM_SSL
description: VPC peering for <NETWORK>
- ip: 0.0.0.0/0
ports: []
services:
- HTTPS
description: MGMT interface
options:
dependson:
- ${vpcPeeringRequest}
Depedency
Before v1.16.0
This resource depends on CloudAMQP instance identifier, cloudamqp_instance.instance.id
.
From v1.16.0
This resource depends on CloudAMQP managed VPC identifier, cloudamqp_vpc.vpc.id
or instance identifier, cloudamqp_instance.instance.id
.
Create VPC Peering with additional firewall rules
To create a VPC peering configuration with additional firewall rules, it’s required to chain the cloudamqp.SecurityFirewall resource to avoid parallel conflicting resource calls. This is done by adding dependency from the firewall resource to the VPC peering resource.
Furthermore, since all firewall rules are overwritten, the otherwise automatically added rules for the VPC peering also needs to be added.
See example below.
Create VpcGcpPeering Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcGcpPeering(name: string, args: VpcGcpPeeringArgs, opts?: CustomResourceOptions);
@overload
def VpcGcpPeering(resource_name: str,
args: VpcGcpPeeringArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VpcGcpPeering(resource_name: str,
opts: Optional[ResourceOptions] = None,
peer_network_uri: Optional[str] = None,
instance_id: Optional[int] = None,
sleep: Optional[int] = None,
timeout: Optional[int] = None,
vpc_id: Optional[str] = None,
wait_on_peering_status: Optional[bool] = None)
func NewVpcGcpPeering(ctx *Context, name string, args VpcGcpPeeringArgs, opts ...ResourceOption) (*VpcGcpPeering, error)
public VpcGcpPeering(string name, VpcGcpPeeringArgs args, CustomResourceOptions? opts = null)
public VpcGcpPeering(String name, VpcGcpPeeringArgs args)
public VpcGcpPeering(String name, VpcGcpPeeringArgs args, CustomResourceOptions options)
type: cloudamqp:VpcGcpPeering
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 VpcGcpPeeringArgs
- 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 VpcGcpPeeringArgs
- 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 VpcGcpPeeringArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcGcpPeeringArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcGcpPeeringArgs
- 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 vpcGcpPeeringResource = new CloudAmqp.VpcGcpPeering("vpcGcpPeeringResource", new()
{
PeerNetworkUri = "string",
InstanceId = 0,
Sleep = 0,
Timeout = 0,
VpcId = "string",
WaitOnPeeringStatus = false,
});
example, err := cloudamqp.NewVpcGcpPeering(ctx, "vpcGcpPeeringResource", &cloudamqp.VpcGcpPeeringArgs{
PeerNetworkUri: pulumi.String("string"),
InstanceId: pulumi.Int(0),
Sleep: pulumi.Int(0),
Timeout: pulumi.Int(0),
VpcId: pulumi.String("string"),
WaitOnPeeringStatus: pulumi.Bool(false),
})
var vpcGcpPeeringResource = new VpcGcpPeering("vpcGcpPeeringResource", VpcGcpPeeringArgs.builder()
.peerNetworkUri("string")
.instanceId(0)
.sleep(0)
.timeout(0)
.vpcId("string")
.waitOnPeeringStatus(false)
.build());
vpc_gcp_peering_resource = cloudamqp.VpcGcpPeering("vpcGcpPeeringResource",
peer_network_uri="string",
instance_id=0,
sleep=0,
timeout=0,
vpc_id="string",
wait_on_peering_status=False)
const vpcGcpPeeringResource = new cloudamqp.VpcGcpPeering("vpcGcpPeeringResource", {
peerNetworkUri: "string",
instanceId: 0,
sleep: 0,
timeout: 0,
vpcId: "string",
waitOnPeeringStatus: false,
});
type: cloudamqp:VpcGcpPeering
properties:
instanceId: 0
peerNetworkUri: string
sleep: 0
timeout: 0
vpcId: string
waitOnPeeringStatus: false
VpcGcpPeering 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 VpcGcpPeering resource accepts the following input properties:
- Peer
Network stringUri - Network uri of the VPC network to which you will peer with.
- Instance
Id int - The CloudAMQP instance identifier. Deprecated from v1.16.0
- Sleep int
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- Timeout int
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- Vpc
Id string - The managed VPC identifier. Available from v1.16.0
- Wait
On boolPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- Peer
Network stringUri - Network uri of the VPC network to which you will peer with.
- Instance
Id int - The CloudAMQP instance identifier. Deprecated from v1.16.0
- Sleep int
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- Timeout int
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- Vpc
Id string - The managed VPC identifier. Available from v1.16.0
- Wait
On boolPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- peer
Network StringUri - Network uri of the VPC network to which you will peer with.
- instance
Id Integer - The CloudAMQP instance identifier. Deprecated from v1.16.0
- sleep Integer
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- timeout Integer
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- vpc
Id String - The managed VPC identifier. Available from v1.16.0
- wait
On BooleanPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- peer
Network stringUri - Network uri of the VPC network to which you will peer with.
- instance
Id number - The CloudAMQP instance identifier. Deprecated from v1.16.0
- sleep number
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- timeout number
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- vpc
Id string - The managed VPC identifier. Available from v1.16.0
- wait
On booleanPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- peer_
network_ struri - Network uri of the VPC network to which you will peer with.
- instance_
id int - The CloudAMQP instance identifier. Deprecated from v1.16.0
- sleep int
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- timeout int
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- vpc_
id str - The managed VPC identifier. Available from v1.16.0
- wait_
on_ boolpeering_ status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- peer
Network StringUri - Network uri of the VPC network to which you will peer with.
- instance
Id Number - The CloudAMQP instance identifier. Deprecated from v1.16.0
- sleep Number
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- timeout Number
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- vpc
Id String - The managed VPC identifier. Available from v1.16.0
- wait
On BooleanPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcGcpPeering resource produces the following output properties:
- Auto
Create boolRoutes - VPC peering auto created routes
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- VPC peering state
- State
Details string - VPC peering state details
- Auto
Create boolRoutes - VPC peering auto created routes
- Id string
- The provider-assigned unique ID for this managed resource.
- State string
- VPC peering state
- State
Details string - VPC peering state details
- auto
Create BooleanRoutes - VPC peering auto created routes
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- VPC peering state
- state
Details String - VPC peering state details
- auto
Create booleanRoutes - VPC peering auto created routes
- id string
- The provider-assigned unique ID for this managed resource.
- state string
- VPC peering state
- state
Details string - VPC peering state details
- auto_
create_ boolroutes - VPC peering auto created routes
- id str
- The provider-assigned unique ID for this managed resource.
- state str
- VPC peering state
- state_
details str - VPC peering state details
- auto
Create BooleanRoutes - VPC peering auto created routes
- id String
- The provider-assigned unique ID for this managed resource.
- state String
- VPC peering state
- state
Details String - VPC peering state details
Look up Existing VpcGcpPeering Resource
Get an existing VpcGcpPeering 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?: VpcGcpPeeringState, opts?: CustomResourceOptions): VpcGcpPeering
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_create_routes: Optional[bool] = None,
instance_id: Optional[int] = None,
peer_network_uri: Optional[str] = None,
sleep: Optional[int] = None,
state: Optional[str] = None,
state_details: Optional[str] = None,
timeout: Optional[int] = None,
vpc_id: Optional[str] = None,
wait_on_peering_status: Optional[bool] = None) -> VpcGcpPeering
func GetVpcGcpPeering(ctx *Context, name string, id IDInput, state *VpcGcpPeeringState, opts ...ResourceOption) (*VpcGcpPeering, error)
public static VpcGcpPeering Get(string name, Input<string> id, VpcGcpPeeringState? state, CustomResourceOptions? opts = null)
public static VpcGcpPeering get(String name, Output<String> id, VpcGcpPeeringState 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.
- Auto
Create boolRoutes - VPC peering auto created routes
- Instance
Id int - The CloudAMQP instance identifier. Deprecated from v1.16.0
- Peer
Network stringUri - Network uri of the VPC network to which you will peer with.
- Sleep int
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- State string
- VPC peering state
- State
Details string - VPC peering state details
- Timeout int
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- Vpc
Id string - The managed VPC identifier. Available from v1.16.0
- Wait
On boolPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- Auto
Create boolRoutes - VPC peering auto created routes
- Instance
Id int - The CloudAMQP instance identifier. Deprecated from v1.16.0
- Peer
Network stringUri - Network uri of the VPC network to which you will peer with.
- Sleep int
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- State string
- VPC peering state
- State
Details string - VPC peering state details
- Timeout int
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- Vpc
Id string - The managed VPC identifier. Available from v1.16.0
- Wait
On boolPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- auto
Create BooleanRoutes - VPC peering auto created routes
- instance
Id Integer - The CloudAMQP instance identifier. Deprecated from v1.16.0
- peer
Network StringUri - Network uri of the VPC network to which you will peer with.
- sleep Integer
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- state String
- VPC peering state
- state
Details String - VPC peering state details
- timeout Integer
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- vpc
Id String - The managed VPC identifier. Available from v1.16.0
- wait
On BooleanPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- auto
Create booleanRoutes - VPC peering auto created routes
- instance
Id number - The CloudAMQP instance identifier. Deprecated from v1.16.0
- peer
Network stringUri - Network uri of the VPC network to which you will peer with.
- sleep number
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- state string
- VPC peering state
- state
Details string - VPC peering state details
- timeout number
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- vpc
Id string - The managed VPC identifier. Available from v1.16.0
- wait
On booleanPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- auto_
create_ boolroutes - VPC peering auto created routes
- instance_
id int - The CloudAMQP instance identifier. Deprecated from v1.16.0
- peer_
network_ struri - Network uri of the VPC network to which you will peer with.
- sleep int
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- state str
- VPC peering state
- state_
details str - VPC peering state details
- timeout int
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- vpc_
id str - The managed VPC identifier. Available from v1.16.0
- wait_
on_ boolpeering_ status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
- auto
Create BooleanRoutes - VPC peering auto created routes
- instance
Id Number - The CloudAMQP instance identifier. Deprecated from v1.16.0
- peer
Network StringUri - Network uri of the VPC network to which you will peer with.
- sleep Number
- Configurable sleep time (seconds) between retries when requesting or reading peering. Default set to 10 seconds. Available from v1.29.0
- state String
- VPC peering state
- state
Details String - VPC peering state details
- timeout Number
- Configurable timeout time (seconds) before retries times out. Default set to 1800 seconds. Available from v1.29.0
- vpc
Id String - The managed VPC identifier. Available from v1.16.0
- wait
On BooleanPeering Status - Makes the resource wait until the peering is connected. Default set to false. Available from v1.28.0
Import
Not possible to import this resource.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- CloudAMQP pulumi/pulumi-cloudamqp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudamqp
Terraform Provider.