Communication problem between Ecs task and s3

0

I have an ecs task that is running docker containers. One of this tasks access an s3 bucket which contains json files and reads one of those files. Everything works fine until you update one of the files(the ecs task are running). After you update the files then the read from s3 failes with "Json decode error". If you restart the ECS tasks everything works well.

質問済み 1年前228ビュー
1回答
0

This sound like you implemented the S3 GetObject API incorrectly. I don't think it has anything to do with the communication between ECS and S3, because your code gives the error "Json decode error", which means that it has read the file (so the communication works), but for some reason, the "re-get" method doesn't read the object content.

Hard to give an answer without seeing the code, but I guess that the "re-get" object API call is not doing what you think it is. I would log the object content as a string instead of JSON, which should give you a clue about what happening.

profile picture
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ