Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

fix: Ignore apigateway model-template fetch if model not exists #876

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions resources/services/apigateway/rest_apis.go
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,10 @@ func resolveApigatewayRestAPIModelModelTemplate(ctx context.Context, meta schema
// select * from aws_apigateway_rest_api_models where model_template is nil
return nil
}
if cl.IsNotFoundError(err) {
meta.Logger().Debug("GetModelTemplate: model does not exist", "err", err)
zagronitay marked this conversation as resolved.
Show resolved Hide resolved
return nil
}
return diag.WrapError(err)
}
return resource.Set(c.Name, response.Value)
Expand Down