AttributeError: 'EMR' object has no attribute 'put_auto_termination_policy' #23573
Unanswered
pankajmakwana6
asked this question in
General
Replies: 3 comments 1 reply
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
0 replies
-
The boto/botocore@fee8473#diff-9860af22ee80cdd56a1bf858e62f6541924bfd9dd044d85957139322c21a7effR514-R523 "PutAutoTerminationPolicy":{
"name":"PutAutoTerminationPolicy",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"PutAutoTerminationPolicyInput"},
"output":{"shape":"PutAutoTerminationPolicyOutput"},
"documentation":"<p>Creates or updates an auto-termination policy for an Amazon EMR cluster. An auto-termination policy defines the amount of idle time in seconds after which a cluster automatically terminates. For alternative cluster termination options, see <a href=\"https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-plan-termination.html\">Control cluster termination</a>.</p>"
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
Converted to discussion until we have missing information from the user. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions