Vpn Gateway
Provides a resource to create a VPC VPN Gateway.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.VpnGateway;
import com.pulumi.aws.ec2.VpnGatewayArgs;
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 vpnGw = new VpnGateway("vpnGw", VpnGatewayArgs.builder()
.vpcId(aws_vpc.main().id())
.tags(Map.of("Name", "main"))
.build());
}
}
Content copied to clipboard
Import
VPN Gateways can be imported using the vpn gateway id
, e.g.,
$ pulumi import aws:ec2/vpnGateway:VpnGateway testvpngateway vgw-9a4cacf3
Content copied to clipboard
Properties
Link copied to clipboard
The Autonomous System Number (ASN) for the Amazon side of the gateway. If you don't specify an ASN, the virtual private gateway is created with the default ASN.
Link copied to clipboard
The Availability Zone for the virtual private gateway.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard