Sonu
Sonu

Reputation: 39

Creating EMR Cluster based on AMI using Boto3

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

Answers (1)

Marcin
Marcin

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

Related Questions