Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where the export CLI is not returning a 0 exit-code for failures. Closes #72 #79

Merged

Conversation

pskrbasu
Copy link
Collaborator

@pskrbasu pskrbasu commented Jul 3, 2024

➜  steampipe_export_aws aws_account --config 'profile="hawkeye"'
[ERROR] 1720001800681: getCallerIdentityUncached: status=failed connection_name=aws api_error="operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid."
[ERROR] 1720001800681: getCommonColumnsUncached: status=failed connection_name=aws region=global error="operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid."
[ERROR] 1720001800681: aws_account.listAccountAlias: common_data_error="operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid."
[WARN]  1720001800681: doList callHydrateWithRetries (aws-1720001800681) returned err operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid.
[WARN]  1720001800681: QueryData StreamError operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid. (aws-1720001800681)
[WARN]  1720001800681: streamRows execution has failed: aws-1720001800681 - calling queryCache.AbortSet (aws: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid.)
[WARN]  1720001800681: queryData.streamRows returned error: aws: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid.
[WARN]  1720001800681: executeForConnection aws returned error aws: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid., writing to CHAN
[WARN]  1720001800681: error channel received aws: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid.
[ERROR] Error receiving data from the channel: aws: operation error STS: GetCallerIdentity, https response error StatusCode: 403, RequestID: f8961301-44a4-4cfc-beac-25455987e31d, api error InvalidClientTokenId: The security token included in the request is invalid.
➜  echo $?
1

@pskrbasu pskrbasu added the bug Something isn't working label Jul 3, 2024
@pskrbasu pskrbasu self-assigned this Jul 3, 2024
@pskrbasu pskrbasu linked an issue Jul 3, 2024 that may be closed by this pull request
@kaidaguerre kaidaguerre merged commit c0a978d into develop Jul 3, 2024
1 check passed
@kaidaguerre kaidaguerre deleted the 72-export-cli-is-not-returning-a-non-zero-code-failures branch July 3, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export CLI is not returning a non-zero code for timeouts
2 participants