Skip to content

Commit bafe060

Browse files
committed
renamed dirs
1 parent 2ac4e05 commit bafe060

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed
File renamed without changes.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/python
2+
3+
import boto3
4+
5+
ec2 = boto3.resource('ec2')
6+
volume_iterator = ec2.volumes.all()
7+
8+
9+
available_volumes = []
10+
11+
for eachvolume in volume_iterator:
12+
if eachvolume.state == "available":
13+
available_volumes.append(eachvolume.id)
14+
15+
16+
print("| Available Volumes |")
17+
print('-'*19)
18+
19+
for vol in available_volumes:
20+
print(vol)
File renamed without changes.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/python
2+
3+
import boto3
4+
5+
ec2 = boto3.resource('ec2')
6+
volume_iterator = ec2.volumes.all()
7+
8+
9+
available_volumes = []
10+
11+
for eachvolume in volume_iterator:
12+
if eachvolume.state == "available":
13+
available_volumes.append(eachvolume.id)
14+
15+
16+
print("| Available Volumes |")
17+
print('-'*19)
18+
19+
for vol in available_volumes:
20+
print(vol)

0 commit comments

Comments
 (0)