diff --git a/aws/resource_aws_vpn_gateway_attachment.go b/aws/resource_aws_vpn_gateway_attachment.go index b94059bed55..7d3df7dd22e 100644 --- a/aws/resource_aws_vpn_gateway_attachment.go +++ b/aws/resource_aws_vpn_gateway_attachment.go @@ -85,7 +85,7 @@ func resourceAwsVpnGatewayAttachmentRead(d *schema.ResourceData, meta interface{ if err != nil { awsErr, ok := err.(awserr.Error) - if ok && awsErr.Code() == "InvalidVPNGatewayID.NotFound" { + if ok && awsErr.Code() == "InvalidVpnGatewayID.NotFound" { log.Printf("[WARN] VPN Gateway %q not found.", vgwId) d.SetId("") return nil @@ -130,7 +130,7 @@ func resourceAwsVpnGatewayAttachmentDelete(d *schema.ResourceData, meta interfac awsErr, ok := err.(awserr.Error) if ok { switch awsErr.Code() { - case "InvalidVPNGatewayID.NotFound": + case "InvalidVpnGatewayID.NotFound": return nil case "InvalidVpnGatewayAttachment.NotFound": return nil @@ -176,7 +176,7 @@ func vpnGatewayAttachmentStateRefresh(conn *ec2.EC2, vpcId, vgwId string) resour awsErr, ok := err.(awserr.Error) if ok { switch awsErr.Code() { - case "InvalidVPNGatewayID.NotFound": + case "InvalidVpnGatewayID.NotFound": fallthrough case "InvalidVpnGatewayAttachment.NotFound": return nil, "", nil