Hey Y'all,
I've been running the flow as a separate ECS task using the ECS infrastructure block; however, we need to provide AWS credentials; is there a way to avoid this and run the task through the block using a custom IAM role created for Prefect?
k
Kalise Richmond
11/14/2022, 6:48 PM
Hi Vishnu, this is a great question for #C048K0MGHNK. It looks like the credentials provided to the ECS task is optional and as long as your task arn is using the custom IAM role permissions you should be able to do this.
v
Vishnu Duggirala
11/15/2022, 3:49 PM
@Kalise Richmond Thank you for responding; I saw that it was optional, but I still got an error; the problem was that I attached the perfect policy to the Task execution role, which controls the permissions of the task when it launches; it turns out that if I attach that perfect policy to the Task role, it works!
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.