Search code examples
amazon-web-servicesamazon-ec2boto3amazon-emr

Get EMR cluster to kill its EC2 instances on termination


My question is simple, is there anyway to get an EMR cluster to automatically kill the instances (Master + slave(s)) on termination? If yes can it be done with boto3 ?

Thank you.


Solution

  • As suggested by @sakhti srinivas, "KeepJobFlowAliveWhenNoSteps" and "TerminationProtected" parameters can indeed be set link