Skip to content

Commit 1102adf

Browse files
authored
fix readme output (#117)
1 parent fac4741 commit 1102adf

File tree

1 file changed

+30
-21
lines changed

1 file changed

+30
-21
lines changed

README.md

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ c5.large
8282
c5a.large
8383
c5ad.large
8484
c5d.large
85+
c6a.large
86+
c6i.large
8587
t2.medium
8688
t3.medium
8789
t3a.medium
@@ -93,9 +95,12 @@ $ ec2-instance-selector --network-performance 100 --usage-class spot -r us-east-
9395
c5n.18xlarge
9496
c5n.metal
9597
c6gn.16xlarge
98+
dl1.24xlarge
9699
g4dn.metal
100+
g5.48xlarge
97101
i3en.24xlarge
98102
i3en.metal
103+
im4gn.16xlarge
99104
inf1.24xlarge
100105
m5dn.24xlarge
101106
m5dn.metal
@@ -107,8 +112,6 @@ p3dn.24xlarge
107112
p4d.24xlarge
108113
r5dn.24xlarge
109114
r5dn.metal
110-
r5n.24xlarge
111-
r5n.metal
112115
```
113116

114117
**Short Table Output**
@@ -120,6 +123,8 @@ c5.large 2 4
120123
c5a.large 2 4
121124
c5ad.large 2 4
122125
c5d.large 2 4
126+
c6a.large 2 4
127+
c6i.large 2 4
123128
t2.medium 2 4
124129
t3.medium 2 4
125130
t3a.medium 2 4
@@ -128,15 +133,17 @@ t3a.medium 2 4
128133
**Wide Table Output**
129134
```
130135
$ ec2-instance-selector --memory 4 --vcpus 2 --cpu-architecture x86_64 -r us-east-1 -o table-wide
131-
Instance Type VCPUs Mem (GiB) Hypervisor Current Gen Hibernation Support CPU Arch Network Performance ENIs GPUs GPU Mem (GiB) GPU Info On-Demand Price/Hr
132-
------------- ----- --------- ---------- ----------- ------------------- -------- ------------------- ---- ---- ------------- -------- ------------------
133-
c5.large 2 4 nitro true true x86_64 Up to 10 Gigabit 3 0 0 -No Price Filter Specified-
134-
c5a.large 2 4 nitro true false x86_64 Up to 10 Gigabit 3 0 0 -No Price Filter Specified-
135-
c5ad.large 2 4 nitro true false x86_64 Up to 10 Gigabit 3 0 0 -No Price Filter Specified-
136-
c5d.large 2 4 nitro true false x86_64 Up to 10 Gigabit 3 0 0 -No Price Filter Specified-
137-
t2.medium 2 4 xen true true i386, x86_64 Low to Moderate 3 0 0 -No Price Filter Specified-
138-
t3.medium 2 4 nitro true true x86_64 Up to 5 Gigabit 3 0 0 -No Price Filter Specified-
139-
t3a.medium 2 4 nitro true true x86_64 Up to 5 Gigabit 3 0 0 -No Price Filter Specified-
136+
Instance Type VCPUs Mem (GiB) Hypervisor Current Gen Hibernation Support CPU Arch Network Performance ENIs GPUs GPU Mem (GiB) GPU Info On-Demand Price/Hr Spot Price/Hr (30d avg)
137+
------------- ----- --------- ---------- ----------- ------------------- -------- ------------------- ---- ---- ------------- -------- ------------------ -----------------------
138+
c5.large 2 4 nitro true true x86_64 Up to 10 Gigabit 3 0 0 $0.085 $0.03706
139+
c5a.large 2 4 nitro true false x86_64 Up to 10 Gigabit 3 0 0 $0.077 $0.03592
140+
c5ad.large 2 4 nitro true false x86_64 Up to 10 Gigabit 3 0 0 $0.086 $0.0324
141+
c5d.large 2 4 nitro true true x86_64 Up to 10 Gigabit 3 0 0 $0.096 $0.03267
142+
c6a.large 2 4 nitro true false x86_64 Up to 12.5 Gigabit 3 0 0 $0.0765 $0.034
143+
c6i.large 2 4 nitro true false x86_64 Up to 12.5 Gigabit 3 0 0 $0.085 $0.034
144+
t2.medium 2 4 xen true true i386, x86_64 Low to Moderate 3 0 0 $0.0464 $0.01417
145+
t3.medium 2 4 nitro true true x86_64 Up to 5 Gigabit 3 0 0 $0.0416 $0.0125
146+
t3a.medium 2 4 nitro true true x86_64 Up to 5 Gigabit 3 0 0 $0.0376 $0.0116
140147
```
141148

142149
**All CLI Options**
@@ -146,7 +153,7 @@ $ ec2-instance-selector --help
146153
```
147154

148155
```bash#help
149-
ec2-instance-selector is a CLI tool to filter EC2 instance types based on resource criteria.
156+
eec2-instance-selector is a CLI tool to filter EC2 instance types based on resource criteria.
150157
Filtering allows you to select all the instance types that match your application requirements.
151158
Full docs can be found at github.com/aws/amazon-ec2-instance-selector
152159
@@ -162,7 +169,7 @@ Filter Flags:
162169
-z, --availability-zones strings Availability zones or zone ids to check EC2 capacity offered in specific AZs
163170
--baremetal Bare Metal instance types (.metal instances)
164171
-b, --burst-support Burstable instance types
165-
-a, --cpu-architecture string CPU architecture [x86_64/amd64, i386, or arm64]
172+
-a, --cpu-architecture string CPU architecture [x86_64/amd64, x86_64_mac, i386, or arm64]
166173
--current-generation Current generation instance types (explicitly set this to false to not return current generation instance types)
167174
--deny-list string List of instance types which should be excluded w/ regex syntax (Example: m[1-2]\.*)
168175
--efa-support Instance types that support Elastic Fabric Adapters (EFA)
@@ -205,13 +212,15 @@ Suite Flags:
205212
206213
207214
Global Flags:
208-
-h, --help Help
209-
--max-results int The maximum number of instance types that match your criteria to return (default 20)
210-
-o, --output string Specify the output format (table, table-wide, one-line)
211-
--profile string AWS CLI profile to use for credentials and config
212-
-r, --region string AWS Region to use for API requests (NOTE: if not passed in, uses AWS SDK default precedence)
213-
-v, --verbose Verbose - will print out full instance specs
214-
--version Prints CLI version
215+
--cache-dir string Directory to save the pricing and instance type caches (default "~/.ec2-instance-selector/")
216+
--cache-ttl int Cache TTLs in hours for pricing and instance type caches. Setting the cache to 0 will turn off caching and cleanup any on-disk caches. (default 168)
217+
-h, --help Help
218+
--max-results int The maximum number of instance types that match your criteria to return (default 20)
219+
-o, --output string Specify the output format (table, table-wide, one-line)
220+
--profile string AWS CLI profile to use for credentials and config
221+
-r, --region string AWS Region to use for API requests (NOTE: if not passed in, uses AWS SDK default precedence)
222+
-v, --verbose Verbose - will print out full instance specs
223+
--version Prints CLI version
215224
```
216225

217226

@@ -287,7 +296,7 @@ func main() {
287296
$ git clone https://github.com/aws/amazon-ec2-instance-selector.git
288297
$ cd amazon-ec2-instance-selector/
289298
$ go run cmd/examples/example1.go
290-
[c4.large c5.large c5a.large c5d.large t2.medium t3.medium t3.small t3a.medium t3a.small]
299+
[c4.large c5.large c5a.large c5ad.large c5d.large c6i.large t2.medium t3.medium t3.small t3a.medium t3a.small]
291300
```
292301

293302
## Building

0 commit comments

Comments
 (0)