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.

gefragt vor einem Jahr228 Aufrufe
1 Antwort
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen