pulumi_wasm_providers_aws_mini::ec2

Module vpn_gateway_attachment

source
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 the vpc_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§

Functions§

  • Registers a new resource with the given unique name and arguments