Skip to content

Commit

Permalink
Fix aws_ssm_document_permission table to ignore InvalidDocument error (
Browse files Browse the repository at this point in the history
  • Loading branch information
khushboo9024 authored Oct 28, 2024
1 parent dcb526e commit 3d3d031
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aws/table_aws_ssm_document_permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ func tableAwsSSMDocumentPermission(_ context.Context) *plugin.Table {
KeyColumns: []*plugin.KeyColumn{
{Name: "document_name", Require: plugin.Required},
},
// Getting InvalidDocument error if document is not avaiable in any specific region
// Error: aws: operation error SSM: DescribeDocumentPermission, https response error StatusCode: 400, RequestID: fece9f20-9b41-40d9-abd3-933c1c1e4345, InvalidDocument: Document with name ssm_doc_test_delete does not exist. (SQLSTATE HV000)
IgnoreConfig: &plugin.IgnoreConfig{
ShouldIgnoreErrorFunc: shouldIgnoreErrors([]string{"InvalidDocument"}),
},
},
GetMatrixItemFunc: SupportedRegionMatrix(ssmv1.EndpointsID),
Columns: awsRegionalColumns([]*plugin.Column{
Expand Down

0 comments on commit 3d3d031

Please sign in to comment.