Using Console
Using CLI
Using Python
create_vpc
method from the ec2
client in Boto3 to create a VPC.create_subnet
method from the ec2
client in Boto3 to create subnets.create_internet_gateway
method from the ec2
client in Boto3 to create an Internet Gateway.create_route_table
method from the ec2
client in Boto3 to create route tables.associate_route_table
method from the ec2
client in Boto3 to associate subnets with route tables.Ec2SubnetId
parameter to launch the cluster within the VPC.Ec2SubnetId
parameter to the ID of the subnet where you want to launch the EMR cluster.sg-12345678
with actual security group IDs and customize the code as per your specific requirements.