To Reproduce:
In table aws_wellarchitected_workload_share remove lines 153-156
if strings.Contains(err.Error(), "ResourceNotFoundException") || strings.Contains(err.Error(), "ValidationException") {
plugin.Logger(ctx).Debug("aws_wellarchitected_workload_share.listWellArchitectedWorkloadShares", "checked_error", err)
return nil, nil
}
then query
> select * from aws_wellarchitected_workload_share where status = 'PENDINGX'
Having the ignore config defined as
IgnoreConfig: &plugin.IgnoreConfig{
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"ValidationException", "ResourceNotFoundException"}),
},
it should not be giving a ValidationException