跳至內容

aws transfer start-directory-listing does not return error

0

User credentials are no longer valid on remote SFTP server. I am expecting above command to throw an error but it completes with output:

{ "ListingId": "<<hash-code>>", "OutputFileName": "<<connector-id>>-<<hash-code>>json" }

Output file does not exist in S3 bucket as operation would have failed to connect to remote SFTP server.

How do I programmatically find out the status of start-directory-listing for such scenario?

已提問 2 年前檢視次數 535 次

2 個答案
1
已接受的答案

Hello! You have two options to check the status of Start-Directory-Listing operation.

First, the SFTP connector would emit to eventbridge an event after attempting the Start-Directroy-Listing operation, containing the operation status detail. You can subscribe to these events, and target downstream actions based on the operation status. Please find more details in Transfer Family documentation here - https://docs.aws.amazon.com/transfer/latest/userguide/events-detail-reference.html#event-detail-sftp-connector-events

The Start-Directory-Listing operation also generates detailed logs in your cloudwatch account, along with the status of operation. You can use CloudWatch to track the operation status.

The service team is also looking to understand your feedback to inform future enhancements for the SFTP connector offering. In case the above options do not suffice, and you'd like to discuss your use-case and requirements in more detail, please do reach out to the service team via AWS Support or your account team.

AWS

已回答 2 年前

專家

已審閱 2 年前

0

https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/transfer/

Looking at the documentation, I'm not sure I see anything like describe-directory-listing.

已回答 1 年前

  • Also, what happens if we don't give a logging role to the SFTP connector. Does eventbridge create a log, or does it just not log?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。