title: How to use aws cli in python or node.js programming language?
body: <ol>
  <li>How do i use awscli command in python or node.js programming?</li>
  <li><p>My final aim is to attach security group to running instances in AWS.  </p>
  
  <pre><code>aws --region us-east-1 ec2 modify-instance-attribute --instance-id i-782cc9fb --groups sg-47fb243f
  </code></pre></li>
  </ol>
  
  <p>I want to run this command through python programming code or nodejs . is there any way to do?</p>