Skip to content

Commit

Permalink
r/aws_apigatewayv2_integration: No need for diff-suppression for new …
Browse files Browse the repository at this point in the history
…resources.
  • Loading branch information
ewbankkit committed Jul 23, 2020
1 parent ea09bb9 commit f0d2232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_apigatewayv2_integration.go
Expand Up @@ -64,7 +64,7 @@ func resourceAwsApiGatewayV2Integration() *schema.Resource {
ValidateFunc: validateHTTPMethod(),
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
// Default HTTP method for Lambda integration is POST.
if v := d.Get("integration_type").(string); (v == apigatewayv2.IntegrationTypeAws || v == apigatewayv2.IntegrationTypeAwsProxy) && old == "POST" && new == "" {
if v := d.Get("integration_type").(string); d.Id() != "" && (v == apigatewayv2.IntegrationTypeAws || v == apigatewayv2.IntegrationTypeAwsProxy) && old == "POST" && new == "" {
return true
}

Expand Down

0 comments on commit f0d2232

Please sign in to comment.