Skip to content

Instantly share code, notes, and snippets.

View a-reda's full-sized avatar
🚴

Reda Aissaoui a-reda

🚴
  • ViacomCBS
View GitHub Profile
@a-reda
a-reda / ec2.py
Created March 7, 2019 11:11
Simple script to control ec2 instances
import boto3
import sys
import pprint
# Let's use Amazon S3
ec2 = boto3.client('ec2')
ec2Res = boto3.resource('ec2')
if len(sys.argv) < 2:
print("No argument provided ... just listing")