Difference between revisions of "Boto3"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
* <code>[[import]] boto3</code>
 
* <code>[[import]] boto3</code>
  
 +
<pre>
 +
[[for]] i in ec2.instances.all():
 +
    if i.state['Name'] == 'stopped':
 +
        i.start()
 +
</pre>
  
  

Revision as of 09:39, 24 January 2022

Advertising: