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>
  
<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()
</code>
 
  
 +
º
  
 
== See also ==
 
== See also ==

Revision as of 09:40, 24 January 2022

Advertising: