diff options
Diffstat (limited to 'aws-list-ec2.py')
-rw-r--r-- | aws-list-ec2.py | 5 |
1 files changed, 5 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 |