This repository was archived by the owner on Mar 6, 2022. It is now read-only.
fixed keygen script to reflect changes in aws-cli #133
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the current aws-cli version (installed from latest pip3 repository) outputs regions like this:
haojixu@haojis-MacBook-Pro ~ % aws ec2 describe-regions --output text REGIONS ec2.eu-north-1.amazonaws.com opt-in-not-required eu-north-1 REGIONS ec2.ap-south-1.amazonaws.com opt-in-not-required ap-south-1 REGIONS ec2.eu-west-3.amazonaws.com opt-in-not-required eu-west-3 REGIONS ec2.eu-west-2.amazonaws.com opt-in-not-required eu-west-2 REGIONS ec2.eu-west-1.amazonaws.com opt-in-not-required eu-west-1 REGIONS ec2.ap-northeast-2.amazonaws.com opt-in-not-required ap-northeast-2 REGIONS ec2.ap-northeast-1.amazonaws.com opt-in-not-required ap-northeast-1 REGIONS ec2.sa-east-1.amazonaws.com opt-in-not-required sa-east-1 REGIONS ec2.ca-central-1.amazonaws.com opt-in-not-required ca-central-1 REGIONS ec2.ap-southeast-1.amazonaws.com opt-in-not-required ap-southeast-1 REGIONS ec2.ap-southeast-2.amazonaws.com opt-in-not-required ap-southeast-2 REGIONS ec2.eu-central-1.amazonaws.com opt-in-not-required eu-central-1 REGIONS ec2.us-east-1.amazonaws.com opt-in-not-required us-east-1 REGIONS ec2.us-east-2.amazonaws.com opt-in-not-required us-east-2 REGIONS ec2.us-west-1.amazonaws.com opt-in-not-required us-west-1 REGIONS ec2.us-west-2.amazonaws.com opt-in-not-required us-west-2
so the script should be
print $4
instead ofprint $3
.