Difference between revisions of "Boto3"
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
- Installation:
pip install boto3
import boto3
[[for]] i in ec2.instances.all(): if i.state['Name'] == 'stopped': i.start()
See also
- Python, PIP, GIL, Flask, Django, Marshmallow,
def
, logging, Pandas, Numpy, AWS Chalice,import
,from
,tuple
,list
, Python exceptions,virtualenv
,.append
,pytz
,TZ
,print
,python3 -c
,os
, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs
, Black (Python), Python list structure, Mypy,variables
, Casting,try:
, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help
, Data Classes, raise - AWS CLI, AWS Cloudformation, AWS CDK, Boto3
Advertising: