From d253fff4e51cf291515d10050c06b3496c630509 Mon Sep 17 00:00:00 2001 From: Dan Everton Date: Tue, 10 Mar 2015 09:49:46 +1000 Subject: [PATCH] Hardcode type parameter value. Current AWS documentation says there's only one type of VPN gateway for now. --- builtin/providers/aws/resource_aws_vpn_gateway.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/builtin/providers/aws/resource_aws_vpn_gateway.go b/builtin/providers/aws/resource_aws_vpn_gateway.go index 3a9ad8563..4b047af32 100644 --- a/builtin/providers/aws/resource_aws_vpn_gateway.go +++ b/builtin/providers/aws/resource_aws_vpn_gateway.go @@ -25,13 +25,6 @@ func resourceAwsVpnGateway() *schema.Resource { ForceNew: true, }, - "type": &schema.Schema{ - Type: schema.TypeString, - Default: "ipsec.1", - Optional: true, - ForceNew: true, - }, - "vpc_id": &schema.Schema{ Type: schema.TypeString, Optional: true, @@ -48,7 +41,7 @@ func resourceAwsVpnGatewayCreate(d *schema.ResourceData, meta interface{}) error createOpts := &ec2.CreateVPNGatewayRequest{ AvailabilityZone: aws.String(d.Get("availability_zone").(string)), - Type: aws.String(d.Get("type").(string)), + Type: aws.String("ipsec.1"), } // Create the VPN gateway @@ -88,7 +81,6 @@ func resourceAwsVpnGatewayRead(d *schema.ResourceData, meta interface{}) error { d.Set("vpc_id", vpnGateway.VPCAttachments[0].VPCID) } d.Set("availability_zone", vpnGateway.AvailabilityZone) - d.Set("type", vpnGateway.Type) d.Set("tags", tagsToMapSDK(vpnGateway.Tags)) return nil