Luca Vehbiu

08/26/2022, 6:02 PM
Hi guys, I have a task querying a Redshift database whose credentials are set outside the task. I use a docker storage and ecs run. Locally the flow runs fine, on the ecs it times out connection to redshift cluster. If I remove the task decorator the database is queried fine. I think only database credentials are not passed because loading to s3 works so its not aws credentials. Has this to do with mapping in tasks?

Rob Freedy

08/29/2022, 10:05 PM
Hey Luca!! How are you setting those variables and accessing them within the task?
Also, it might be worth checking your IAM permissions for the agent and the tasks. I have found this article to be super useful when running in ECS: