y_location = &quot;/home/ubuntu/.ssh/my_key.pem&quot;, security_group = &quot;my_security_group&quot;)</span>
<span class="sd">        &gt;&gt;&gt; cluster = manager.create_cluster(aws_access_key, aws_access_id, num_instances = 2, instance_type = &quot;i3.2xlarge&quot;, ami=&quot;ami-0530ca8899fac469f&quot;, requirements = [&quot;numpy&quot;, &quot;pandas&quot;])</span>
<span class="sd">        &gt;&gt;&gt; cluster.to_json(&quot;my_cluster.json&quot;)</span>

<span class="sd">        You can now close this 