Reputation: 39
I have a custom AMI.I want to create an EMR Cluster based on that AMI using boto3. I checked the documentation , found CLI version but didnt find about boto3 version.
CLI Version :
aws emr create-cluster --name "Cluster with My Custom AMI" \
--custom-ami-id MyAmiID --ebs-root-volume-size 20 \
--release-label emr-5.7.0 --use-default-roles \
--instance-count 2 --instance-type m5.xlarge
Can anyone please help ? Thanks.
Upvotes: 0
Views: 490
Reputation: 238081
In boto3 you use run_job_flow to create new cluster:
RunJobFlow creates and starts running a new cluster (job flow).
Upvotes: 1