summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--aws-list-ec2.py5
-rw-r--r--foo.py10
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
diff --git a/foo.py b/foo.py
new file mode 100644
index 0000000..823d1f7
--- /dev/null
+++ b/foo.py
@@ -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