Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh-key upload using awscli v2 #75

Closed
kniec opened this issue May 26, 2020 · 1 comment · Fixed by #85
Closed

ssh-key upload using awscli v2 #75

kniec opened this issue May 26, 2020 · 1 comment · Fixed by #85

Comments

@kniec
Copy link
Contributor

kniec commented May 26, 2020

Just a small update on the “Using Spot Instances with EKS” lab.
On the “Create an SSH key page”:
https://ec2spotworkshops.com/using_ec2_spot_instances_with_eks/prerequisites/sshkey.html

Now that we have AWS CLI 2.0 the command to upload the public key to AWS fails:

aws ec2 import-key-pair --key-name "eksworkshop" \
        --public-key-material file://~/.ssh/id_rsa.pub

will generate an error Invalid base64

The command needs a minor tweak to work:

aws ec2 import-key-pair --key-name "eksworkshop" \
        --public-key-material fileb://~/.ssh/id_rsa.pub” will work as desired.

Simply changing file:// to fileb:// is all it takes.

Worth updating as this caught out everyone and had us stuck for about 15 minutes. Not fun with 20 customers in a virtual event J

Cheers,
Greg

@allamand
Copy link
Contributor

allamand commented Jun 4, 2020

I think this is addressed in #77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants