How to generate two keys with the same value in Terraform?

Viewed 204
1 Answers

You need to have 2 Keys in different Azure Key Vaults with same values.

Unfortunately it is not possible to import Key in Azure Key Vault with terraform, but you can use REST call to import Key into Azure Key Vault. You can generate Keys beforehand and import it into both Azure KeyVaults.

https://docs.microsoft.com/en-us/rest/api/keyvault/importkey/importkey

I created Key Import feature request in Azure Terraform provider, please vote.

https://github.com/terraform-providers/terraform-provider-azurerm/issues/10301

Related