Skip to content

Commit

Permalink
Add docs for root volume resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Mar 20, 2021
1 parent e9fd7b0 commit de37b50
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions aegea/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@
API.
The return value (stdout) is a JSON object with one key, ``instance_id``.
"""
Examples:
- Launch an on-demand t3.micro instance with the root volume enlarged to 64GB and another 64GB volume attached at /mnt:
aegea launch my-instance --storage /=64GB /mnt=64GB
- Launch a spot r5d.xlarge instance with the home directory mounted on EFS:
aegea launch my-instance --spot-price 1 --instance-type r5d.xlarge --efs-home
"""
from __future__ import absolute_import, division, print_function, unicode_literals

import os, sys, time, datetime, base64, json
Expand Down Expand Up @@ -240,7 +247,7 @@ def instance_types(self, **kwargs):
parser.add_argument("--duration-hours", type=float, help="Terminate the spot instance after this number of hours")
parser.add_argument("--cores", type=int, help="Minimum number of cores to request (spot fleet API)")
parser.add_argument("--min-mem-per-core-gb", type=float)
parser.add_argument("--instance-type", "-t").completer = instance_type_completer
parser.add_argument("--instance-type", "-t", help="See https://ec2instances.info/").completer = instance_type_completer
parser.add_argument("--spot-price", type=float,
help="Maximum bid price for spot instances. Defaults to 1.2x the ondemand price.")
parser.add_argument("--no-dns", dest="use_dns", action="store_false", help="""
Expand Down

0 comments on commit de37b50

Please sign in to comment.