Expand description
Provides a Virtual Private Gateway attachment resource, allowing for an existing hardware VPN gateway to be attached and/or detached from a VPC.
Note: The
aws.ec2.VpnGateway
resource can also automatically attach the Virtual Private Gateway it creates to an existing VPC by setting thevpc_id
attribute accordingly.
§Example Usage
resources:
network:
type: aws:ec2:Vpc
properties:
cidrBlock: 10.0.0.0/16
vpn:
type: aws:ec2:VpnGateway
properties:
tags:
Name: example-vpn-gateway
vpnAttachment:
type: aws:ec2:VpnGatewayAttachment
name: vpn_attachment
properties:
vpcId: ${network.id}
vpnGatewayId: ${vpn.id}
See Virtual Private Cloud and Virtual Private Gateway user guides for more information.
§Import
You cannot import this resource.
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments