pankajmakwana6 opened a new issue, #23347:
URL: https://github.com/apache/airflow/issues/23347

   ### Apache Airflow version
   
   2.0.0
   
   ### What happened
   
   not able to update AutoTermination policy of EMR cluster through AWS managed 
Airflow
   
     response = client.put_auto_termination_policy(
           ClusterId=job_flow_id,
           AutoTerminationPolicy={
               'IdleTimeout': 5
           }
       )
   
   
   tried with different version of EMR clusters like 5.30.0 , 6.3.0 etc .
   
   
   
    File "/usr/local/airflow/dags/success_file_test.py", line 37, in 
auto_term_policy
       response = client.put_auto_termination_policy(
     File "/usr/local/lib/python3.7/site-packages/botocore/client.py", line 
616, in __getattr__
       self.__class__.__name__, item)
   AttributeError: 'EMR' object has no attribute 'put_auto_termination_policy'
   [2022-04-29 05:23:58,727] {{taskinstance.py:1532}} INFO - Marking task as 
FAILED. dag_id=success-file-test, task_id=run_jobs, 
execution_date=20220429T052346, start_date=20220429T052351, 
end_date=20220429T052358
   
   
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   ubuntu
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   MWAA
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to