diff options
-rw-r--r-- | aws-list-ec2.py | 5 | ||||
-rw-r--r-- | foo.py | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/aws-list-ec2.py b/aws-list-ec2.py new file mode 100644 index 0000000..1a7fc5a --- /dev/null +++ b/aws-list-ec2.py @@ -0,0 +1,5 @@ +import boto3 + +ec2 = boto3.resource('ec2') +for i in ec2.instances.all(): + print(i.id)
\ No newline at end of file @@ -0,0 +1,10 @@ +class Foo: + pass +def hello(): + print('hello, world') +x = 13 + +class Square(): + def __init__(self, x): + self.inital = x + self.squared = x**2 |