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.

질문됨 일 년 전254회 조회
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠