azurenoops / terraform-azurerm-overlays-virtual-machine

Terraform module overlay to deploy single or multiple SCCA compliant Virtual Machines of Linux or Windows with optional features to be used with Azure NoOps.
MIT License
1 stars 1 forks source link

Support for placing the SSH private key into an existing Key Vault for Bastion access #18

Open sstjean opened 1 year ago

sstjean commented 1 year ago

Is there an existing issue for this?

Description

This module lets the user pass an admin user name and public SSH key into the VM when created. When the end user wants to access the VM through Bastion they need to provide the Private Key.

Bastion has the ability to look into a key vault for the Private Key when connecting.

I recommend adding a feature to the Linux VM module where the user can provide both the private and public SSH keys and a key vault resource ID and we can place the private key in there.

New or Affected Resource(s)/Data Source(s)

keyvault

Potential Terraform Configuration

No response

References

No response