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>
+
<code>
 
  [[for]] i in ec2.instances.all():
 
  [[for]] i in ec2.instances.all():
 
     if i.state['Name'] == 'stopped':
 
     if i.state['Name'] == 'stopped':
 
         i.start()
 
         i.start()
</pre>
+
</code>
  
  

Revision as of 09:39, 24 January 2022

Advertising: