VpnGatewayRoutePropagation

Requests automatic route propagation between a VPN gateway and a route table.

Note: This resource should not be used with a route table that has the propagating_vgws argument set. If that argument is set, any route propagation not explicitly listed in its value will be removed.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Aws.Ec2.VpnGatewayRoutePropagation("example", new Aws.Ec2.VpnGatewayRoutePropagationArgs
        {
            VpnGatewayId = aws_vpn_gateway.Example.Id,
            RouteTableId = aws_route_table.Example.Id,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ec2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ec2.NewVpnGatewayRoutePropagation(ctx, "example", &ec2.VpnGatewayRoutePropagationArgs{
			VpnGatewayId: pulumi.Any(aws_vpn_gateway.Example.Id),
			RouteTableId: pulumi.Any(aws_route_table.Example.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

example = aws.ec2.VpnGatewayRoutePropagation("example",
    vpn_gateway_id=aws_vpn_gateway["example"]["id"],
    route_table_id=aws_route_table["example"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.ec2.VpnGatewayRoutePropagation("example", {
    vpnGatewayId: aws_vpn_gateway.example.id,
    routeTableId: aws_route_table.example.id,
});

Create a VpnGatewayRoutePropagation Resource

new VpnGatewayRoutePropagation(name: string, args: VpnGatewayRoutePropagationArgs, opts?: CustomResourceOptions);
@overload
def VpnGatewayRoutePropagation(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               route_table_id: Optional[str] = None,
                               vpn_gateway_id: Optional[str] = None)
@overload
def VpnGatewayRoutePropagation(resource_name: str,
                               args: VpnGatewayRoutePropagationArgs,
                               opts: Optional[ResourceOptions] = None)
func NewVpnGatewayRoutePropagation(ctx *Context, name string, args VpnGatewayRoutePropagationArgs, opts ...ResourceOption) (*VpnGatewayRoutePropagation, error)
public VpnGatewayRoutePropagation(string name, VpnGatewayRoutePropagationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args VpnGatewayRoutePropagationArgs
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 VpnGatewayRoutePropagationArgs
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 VpnGatewayRoutePropagationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args VpnGatewayRoutePropagationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

VpnGatewayRoutePropagation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The VpnGatewayRoutePropagation resource accepts the following input properties:

RouteTableId string
The id of the aws.ec2.RouteTable to propagate routes into.
VpnGatewayId string
The id of the aws.ec2.VpnGateway to propagate routes from.
RouteTableId string
The id of the aws.ec2.RouteTable to propagate routes into.
VpnGatewayId string
The id of the aws.ec2.VpnGateway to propagate routes from.
routeTableId string
The id of the aws.ec2.RouteTable to propagate routes into.
vpnGatewayId string
The id of the aws.ec2.VpnGateway to propagate routes from.
route_table_id str
The id of the aws.ec2.RouteTable to propagate routes into.
vpn_gateway_id str
The id of the aws.ec2.VpnGateway to propagate routes from.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing VpnGatewayRoutePropagation Resource

Get an existing VpnGatewayRoutePropagation 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?: VpnGatewayRoutePropagationState, opts?: CustomResourceOptions): VpnGatewayRoutePropagation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        route_table_id: Optional[str] = None,
        vpn_gateway_id: Optional[str] = None) -> VpnGatewayRoutePropagation
func GetVpnGatewayRoutePropagation(ctx *Context, name string, id IDInput, state *VpnGatewayRoutePropagationState, opts ...ResourceOption) (*VpnGatewayRoutePropagation, error)
public static VpnGatewayRoutePropagation Get(string name, Input<string> id, VpnGatewayRoutePropagationState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

RouteTableId string
The id of the aws.ec2.RouteTable to propagate routes into.
VpnGatewayId string
The id of the aws.ec2.VpnGateway to propagate routes from.
RouteTableId string
The id of the aws.ec2.RouteTable to propagate routes into.
VpnGatewayId string
The id of the aws.ec2.VpnGateway to propagate routes from.
routeTableId string
The id of the aws.ec2.RouteTable to propagate routes into.
vpnGatewayId string
The id of the aws.ec2.VpnGateway to propagate routes from.
route_table_id str
The id of the aws.ec2.RouteTable to propagate routes into.
vpn_gateway_id str
The id of the aws.ec2.VpnGateway to propagate routes from.

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.