Hardcode type parameter value.

Current AWS documentation says there's only one type of VPN gateway for
now.
This commit is contained in:
Dan Everton 2015-03-10 09:49:46 +10:00
parent 3339ab90c6
commit d253fff4e5
1 changed files with 1 additions and 9 deletions

View File

@ -25,13 +25,6 @@ func resourceAwsVpnGateway() *schema.Resource {
ForceNew: true, ForceNew: true,
}, },
"type": &schema.Schema{
Type: schema.TypeString,
Default: "ipsec.1",
Optional: true,
ForceNew: true,
},
"vpc_id": &schema.Schema{ "vpc_id": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Optional: true,
@ -48,7 +41,7 @@ func resourceAwsVpnGatewayCreate(d *schema.ResourceData, meta interface{}) error
createOpts := &ec2.CreateVPNGatewayRequest{ createOpts := &ec2.CreateVPNGatewayRequest{
AvailabilityZone: aws.String(d.Get("availability_zone").(string)), AvailabilityZone: aws.String(d.Get("availability_zone").(string)),
Type: aws.String(d.Get("type").(string)), Type: aws.String("ipsec.1"),
} }
// Create the VPN gateway // 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("vpc_id", vpnGateway.VPCAttachments[0].VPCID)
} }
d.Set("availability_zone", vpnGateway.AvailabilityZone) d.Set("availability_zone", vpnGateway.AvailabilityZone)
d.Set("type", vpnGateway.Type)
d.Set("tags", tagsToMapSDK(vpnGateway.Tags)) d.Set("tags", tagsToMapSDK(vpnGateway.Tags))
return nil return nil