[autoscaler][aws] Bump max keys per account (#27506)

Signed-off-by: Alex Wu <alex@anyscale.io>

This is a minor QoL improvement to bump the hardcoded limit for number of aws keys per account. The limit is arbitrary and has been bumped before. AFAICT the fundamental aws limit is a 5000 key per region limit which we are not close to.
This commit is contained in:
Alex Wu 2022-08-04 15:12:55 -07:00 committed by GitHub
parent 5298ee83b2
commit eb9c5d8fa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,7 +371,7 @@ def _configure_key_pair(config):
os.makedirs(os.path.expanduser("~/.ssh"), exist_ok=True)
# Try a few times to get or create a good key pair.
MAX_NUM_KEYS = 30
MAX_NUM_KEYS = 60
for i in range(MAX_NUM_KEYS):
key_name = config["provider"].get("key_pair", {}).get("key_name")