Customer Gateway Args
data class CustomerGatewayArgs(val bgpAsn: Output<String>? = null, val bgpAsnExtended: Output<String>? = null, val certificateArn: Output<String>? = null, val deviceName: Output<String>? = null, val ipAddress: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val type: Output<String>? = null) : ConvertibleToJava<CustomerGatewayArgs>
Provides a customer gateway inside a VPC. These objects can be connected to VPN gateways via VPN connections, and allow you to establish tunnels between your network and the VPC.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const main = new aws.ec2.CustomerGateway("main", {
bgpAsn: "65000",
ipAddress: "172.83.124.10",
type: "ipsec.1",
tags: {
Name: "main-customer-gateway",
},
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
main = aws.ec2.CustomerGateway("main",
bgp_asn="65000",
ip_address="172.83.124.10",
type="ipsec.1",
tags={
"Name": "main-customer-gateway",
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var main = new Aws.Ec2.CustomerGateway("main", new()
{
BgpAsn = "65000",
IpAddress = "172.83.124.10",
Type = "ipsec.1",
Tags =
{
{ "Name", "main-customer-gateway" },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ec2.NewCustomerGateway(ctx, "main", &ec2.CustomerGatewayArgs{
BgpAsn: pulumi.String("65000"),
IpAddress: pulumi.String("172.83.124.10"),
Type: pulumi.String("ipsec.1"),
Tags: pulumi.StringMap{
"Name": pulumi.String("main-customer-gateway"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.CustomerGateway;
import com.pulumi.aws.ec2.CustomerGatewayArgs;
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 main = new CustomerGateway("main", CustomerGatewayArgs.builder()
.bgpAsn(65000)
.ipAddress("172.83.124.10")
.type("ipsec.1")
.tags(Map.of("Name", "main-customer-gateway"))
.build());
}
}
Content copied to clipboard
resources:
main:
type: aws:ec2:CustomerGateway
properties:
bgpAsn: 65000
ipAddress: 172.83.124.10
type: ipsec.1
tags:
Name: main-customer-gateway
Content copied to clipboard
Import
Using pulumi import
, import Customer Gateways using the id
. For example:
$ pulumi import aws:ec2/customerGateway:CustomerGateway main cgw-b4dc3961
Content copied to clipboard
Properties
Link copied to clipboard
The gateway's Border Gateway Protocol (BGP) Autonomous System Number (ASN). Valid values are from 2147483648
to 4294967295
Conflicts with bgp_asn
.
Link copied to clipboard
The Amazon Resource Name (ARN) for the customer gateway certificate.
Link copied to clipboard
A name for the customer gateway device.