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

Need the ability to reuse ssh key pair in Azure subscription #153

Closed
ramramhariram opened this issue Nov 19, 2020 · 3 comments · Fixed by #159
Closed

Need the ability to reuse ssh key pair in Azure subscription #153

ramramhariram opened this issue Nov 19, 2020 · 3 comments · Fixed by #159

Comments

@ramramhariram
Copy link

Currently it appears that when creating a non-windows VM resource, the only option for providing SSH key pair is in the user's local directory. This assumes that the user will their TF code locally which is not always the case (TF cloud being a great alternative). Having the ability instead to use/reuse SSH key pairs that are created in the Azure portal for a subscription is a much better alternative. This is generally the recommended and default for many other TF providers.

Screen Shot 2020-11-18 at 4 30 46 PM

Attached screenshot is the error i got when trying to create an Azure compute resource currently via TF cloud. If the SSH keys were in the subscription and if we had a resource to call it, it will solve this problem.

@azureterraformbot
Copy link

Thanks for opening this issue!

@yupwei68
Copy link
Contributor

Hi @ramramhariram , thanks for opening this issue.
We may enhance this feature in the future. But currently I could not give a plan for it.
You're welcome to contribute to this module by raising a PR as well.
If you want to open a PR, please add this feature into the test in test/fixture to integrate the test CI and add this feature in example in README.

@AliAllomani
Copy link
Contributor

created PR #159 to add the ability of passing the keys as strings in addition to paths to the module.

to be able to use this feature with azure pre-defined ssh keys, we need a data source to read the keys from azure, as per current azure provider version i don't see any data source to do so.

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

Successfully merging a pull request may close this issue.

3 participants