@@ -15,20 +15,21 @@ from aec.main import build_parser
15
15
cog.out(f"```\n{build_parser()._subparsers._actions[1].choices['ec2'].format_help()}```")
16
16
]]] -->
17
17
```
18
- usage: aec ec2 [-h] {create-key-pair,describe,launch,logs,modify,start,stop,rename,tag,tags,status,templates,terminate,user-data} ...
18
+ usage: aec ec2 [-h] {create-key-pair,describe,launch,logs,modify,start,stop,subnets, rename,tag,tags,status,templates,terminate,user-data} ...
19
19
20
20
optional arguments:
21
21
-h, --help show this help message and exit
22
22
23
23
subcommands:
24
- {create-key-pair,describe,launch,logs,modify,start,stop,rename,tag,tags,status,templates,terminate,user-data}
24
+ {create-key-pair,describe,launch,logs,modify,start,stop,subnets, rename,tag,tags,status,templates,terminate,user-data}
25
25
create-key-pair Create a key pair.
26
26
describe List EC2 instances in the region.
27
27
launch Launch a tagged EC2 instance with an EBS volume.
28
28
logs Show the system logs.
29
29
modify Change an instance's type.
30
30
start Start EC2 instance.
31
31
stop Stop EC2 instance.
32
+ subnets Describe subnets.
32
33
rename Rename EC2 instance(s).
33
34
tag Tag EC2 instance(s).
34
35
tags List EC2 instances or volumes with their tags.
@@ -79,8 +80,8 @@ aec ec2 describe
79
80
80
81
InstanceId State Name Type DnsName LaunchTime ImageId
81
82
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
82
- i-787bfc64b53337dbb running alice t3.small ec2-54-214-45-74 .compute-1.amazonaws.com 2024-01-24 09:43:25 +00:00 ami-03cf127a
83
- i-f9f09548c218a73a5 running sam t3.small ec2-54-214-132-201 .compute-1.amazonaws.com 2024-01-24 09:43:26 +00:00 ami-03cf127a
83
+ i-b39b1ea60119e503e running alice t3.small ec2-54-214-187-100 .compute-1.amazonaws.com 2024-01-24 10:50:11 +00:00 ami-03cf127a
84
+ i-52d4b17a9a8586a31 running sam t3.small ec2-54-214-105-52 .compute-1.amazonaws.com 2024-01-24 10:50:11 +00:00 ami-03cf127a
84
85
```
85
86
<!-- [[[end]]] -->
86
87
@@ -118,8 +119,8 @@ aec ec2 describe -c Name,SubnetId,Volumes,Image.CreationDate
118
119
119
120
Name SubnetId Volumes Image.CreationDate
120
121
──────────────────────────────────────────────────────────────────────
121
- alice subnet-338b9497 ['Size=15 GiB'] 2024-01-24T09:43:25 .000Z
122
- sam subnet-338b9497 ['Size=15 GiB'] 2024-01-24T09:43:25 .000Z
122
+ alice subnet-8ffb733b ['Size=15 GiB'] 2024-01-24T10:50:11 .000Z
123
+ sam subnet-8ffb733b ['Size=15 GiB'] 2024-01-24T10:50:11 .000Z
123
124
```
124
125
<!-- [[[end]]] -->
125
126
@@ -204,6 +205,25 @@ aec ec2 describe -it i-02a840e0ca609c432 -c StateReason
204
205
{'Code': 'Client.InternalError', 'Message': 'Client.InternalError: Client error on launch'}
205
206
```
206
207
208
+ Describe subnets:
209
+
210
+ <!-- [[[cog
211
+ cog.out(f"```\n{docs('aec ec2 subnets', ec2.subnets(config))}\n```")
212
+ ]]] -->
213
+ ```
214
+ aec ec2 subnets
215
+
216
+ SubnetId VpcId AvailabilityZone CidrBlock Name
217
+ ───────────────────────────────────────────────────────────────────────────
218
+ subnet-8ffb733b vpc-df045ae9 us-east-1a 172.31.0.0/20
219
+ subnet-50f11bb4 vpc-df045ae9 us-east-1b 172.31.16.0/20
220
+ subnet-93811557 vpc-df045ae9 us-east-1c 172.31.32.0/20
221
+ subnet-f17e6261 vpc-df045ae9 us-east-1d 172.31.48.0/20
222
+ subnet-1a5d6685 vpc-df045ae9 us-east-1e 172.31.64.0/20
223
+ subnet-b12557cf vpc-df045ae9 us-east-1f 172.31.80.0/20
224
+ ```
225
+ <!-- [[[end]]] -->
226
+
207
227
## Columns
208
228
209
229
Columns special to aec:
0 commit comments