@@ -15,20 +15,21 @@ from aec.main import build_parser
1515cog.out(f"```\n{build_parser()._subparsers._actions[1].choices['ec2'].format_help()}```")
1616]]] -->
1717```
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} ...
1919
2020optional arguments:
2121 -h, --help show this help message and exit
2222
2323subcommands:
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}
2525 create-key-pair Create a key pair.
2626 describe List EC2 instances in the region.
2727 launch Launch a tagged EC2 instance with an EBS volume.
2828 logs Show the system logs.
2929 modify Change an instance's type.
3030 start Start EC2 instance.
3131 stop Stop EC2 instance.
32+ subnets Describe subnets.
3233 rename Rename EC2 instance(s).
3334 tag Tag EC2 instance(s).
3435 tags List EC2 instances or volumes with their tags.
@@ -79,8 +80,8 @@ aec ec2 describe
7980
8081 InstanceId State Name Type DnsName LaunchTime ImageId
8182 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
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
8485```
8586<!-- [[[end]]] -->
8687
@@ -118,8 +119,8 @@ aec ec2 describe -c Name,SubnetId,Volumes,Image.CreationDate
118119
119120 Name SubnetId Volumes Image.CreationDate
120121 ──────────────────────────────────────────────────────────────────────
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
123124```
124125<!-- [[[end]]] -->
125126
@@ -204,6 +205,25 @@ aec ec2 describe -it i-02a840e0ca609c432 -c StateReason
204205 {'Code': 'Client.InternalError', 'Message': 'Client.InternalError: Client error on launch'}
205206```
206207
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+
207227## Columns
208228
209229Columns special to aec:
0 commit comments