widdix / aws-ec2-ssh

Manage AWS EC2 SSH access with IAM
https://cloudonaut.io/manage-aws-ec2-ssh-access-with-iam/
MIT License
828 stars 289 forks source link

Provision user's `authorized_keys` in `import_users.sh` #153

Closed peay closed 3 years ago

peay commented 4 years ago

I have been testing a modification to import_users.sh will provision that user's .ssh/authorized_keys file during the regular users update from IAM.

My motivation is as follows:

This change would be optional in import_users.sh, and AuthorizedKeysCommand can still be used if an almost-immediate update to keys of existing users is required and the up-to-10m delay is not acceptable for key updates.

Would this be a welcome contribution to the project?

csakshaug commented 4 years ago

@peay What about creating a PR and perhaps @michaelwittig would merge it or make some changes to it :-)

import_users.sh

michaelwittig commented 4 years ago

I think this could better be a separate project? Feel free to create a link in the README to point to the "cached" solution.