8000 Get and create project ssh keys · Issue #153 · equinix/metal-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Get and create project ssh keys #153

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

Open
displague opened this issue Oct 4, 2021 · 2 comments
8000
Open

Get and create project ssh keys #153

displague opened this issue Oct 4, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@displague
Copy link
Member

What problem are you facing?

It should be possible to list project SSH keys:

metal ssh-keys list --project-id=...
metal ssh-keys create --project-id=...

How could the Equinix Metal CLI help solve this problem?

Introduce a project-id argument for ssh-keys get/create commands.

This argument should not use the 'default project id' since this would make accessing user ssh keys difficult.

@displague displague added the enhancement New feature or request label Oct 4, 2021
@alexellis
Copy link

Thanks for logging this, I needed it for the terraform provider which uses project-level SSH keys

This is the endpoint / API, and users have to look up and then run a bespoke curl statement which makes the flow harder to use.

https://metal.equinix.com/developers/api/sshkeys/#retrieve-a-projects-ssh-keys

https://github.com/jsiebens/terraform-equinix-faasd

cc @jsiebens

@displague
Copy link
Member Author

For https://github.com/jsiebens/terraform-equinix-faasd, it sounds like you might prefer to have the ssh keys added as an attribute to data.metal_project, or to have a data_metal_ssh_keys (multiple records) data source. Would you mind opening an issue if so (or let me know and I'll get it created).

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

No branches or pull requests

2 participants
0