Refresh state error

Terraform version : 11.11

Hi Im running terraform to update the APIGW methods and add a lambda on the method,
The code creates a lambda, then adds for each resource the method invoking to that lambda,
so the first resource works fine but then when the second one tries also to add the same lambda to a new method then it fails during the plan in the refresh state.
it seems the error comes when it tries to find the lambda_permissions and compares it with the previous ones

Error: Error refreshing state: 1 error(s) occurred:

  • module.resource_get.aws_lambda_permission.this: 1 error(s) occurred:

  • module.resource_get.aws_lambda_permission.this: aws_lambda_permission.this: Error finding Lambda policy statement: Failed to find statement “APIqcrdjmGET” in Lambda policy:
    [{map[ArnLike:map[AWS:SourceArn:arn:aws:execute-api:us-west-2:00000000000:2ata2ihyj1/*/POST/forecast]] lambda:InvokeFunction arn:aws:lambda:us-west-2:0000000000:function:lambda_fnepmforecastcrud_dev Allow map[Service:apigateway.amazonaws.com] API6v4ucePOST20191114224924269200000001}]

Were you able to resolve this ? We are getting a similar error and in need of help.