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

Automatic creation of key-pair for EC2 Machines #1

Open
krisdante opened this issue Feb 4, 2020 · 3 comments
Open

Automatic creation of key-pair for EC2 Machines #1

krisdante opened this issue Feb 4, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@krisdante
Copy link
Member

krisdante commented Feb 4, 2020

Background

Currently, the creation of key-pair is not automated.
The key needs to be created by hand and it's the name provided in settings.

Need

It could be possible to offload this to automation. One of the solutions would be to generate the key elsewhere and put the key itself into settings. Then this key will be added to AWS.

Why?

This would allow us to generate those keys in CI when CI does not know them yet, and also allow users to provide their private (sic!) keys.

@krisdante krisdante created this issue from a note in Ansible Infrastructure Contribution Ideas (To do) Feb 4, 2020
@krisdante krisdante added the enhancement New feature or request label Feb 4, 2020
@pinkeen
Copy link
Contributor

pinkeen commented Feb 10, 2020

I see one problem with that - the private key needs to be persisted in a safe place, otherwise, we risk losing it. Usually, the workspace of the CI job that runs initial provisioning is temporary and depending on the setup it may be wiped up after each build.

This could be a part of the workflow when setting up a new project though.

@pinkeen
Copy link
Contributor

pinkeen commented Feb 10, 2020

This would be a perfect feature for integrating a secret storage system like Hashicorp Vault though. Something to think about...

@krisdante
Copy link
Member Author

"One of the solutions would be to generate the key elsewhere and put the key itself into settings."
I rather assume that some system will first generate the key and than just pass it to AWS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants