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.

posta un anno fa254 visualizzazioni
1 Risposta
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande