You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/17 00:41:33 UTC

[GitHub] [airflow] ss-nef edited a comment on issue #16770: AWS hook should automatically refresh credentials when using temporary credentials

ss-nef edited a comment on issue #16770:
URL: https://github.com/apache/airflow/issues/16770#issuecomment-944298277


   Hello, 
   
   I am not able to understand how to enable the automatic refresh when using the ECSOperator to orchestrate Fargate Containers.
   
   The container I am running is taking more than one hour to complete its task, which is why I am getting the following error when using the ECSOperator:
   
   
   ```
   ERROR - Task failed with exception
   Traceback (most recent call last):
     File "/home/airflow/.local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 1157, in _run_raw_task
       self._prepare_and_execute_task_with_callbacks(context, task)
     File "/home/airflow/.local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 1331, in _prepare_and_execute_task_with_callbacks
       result = self._execute_task(context, task_copy)
     File "/home/airflow/.local/lib/python3.8/site-packages/airflow/models/taskinstance.py", line 1361, in _execute_task
       result = task_copy.execute(context=context)
     File "/home/airflow/.local/lib/python3.8/site-packages/airflow/providers/amazon/aws/operators/ecs.py", line 220, in execute
       self._wait_for_task_ended()
     File "/home/airflow/.local/lib/python3.8/site-packages/airflow/providers/amazon/aws/operators/ecs.py", line 293, in _wait_for_task_ended
       waiter.wait(cluster=self.cluster, tasks=[self.arn])
     File "/home/airflow/.local/lib/python3.8/site-packages/botocore/waiter.py", line 53, in wait
       Waiter.wait(self, **kwargs)
     File "/home/airflow/.local/lib/python3.8/site-packages/botocore/waiter.py", line 334, in wait
       raise WaiterError(
   botocore.exceptions.WaiterError: Waiter TasksStopped failed: An error occurred (ExpiredTokenException): The security token included in the request is expired
   ```
   
   
   what setting do I need to set to enable automtic refreshing, so that the waiter can wait for longer than one hour?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org