Skip to content

Commit

Permalink
Update docs (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
zodiac403 authored Sep 9, 2022
1 parent a18ecfb commit ef3a39c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a Terraform module for simple writing and reading secrets from an Azure

## Usage

### Write secrets to Key Vault
Write secrets to Key Vault:

```terraform
resource "azurerm_key_vault" "example" {
Expand All @@ -13,9 +13,9 @@ resource "azurerm_key_vault" "example" {
module "secrets" {
source = "zodiac403/key-vault-secrets/azurerm"
version = "0.1.0"
version = "1.0.0"
key_vault_id = azurerm_key_vault.example.id
key_vault_id = azurerm_key_vault.example.id
input_secrets = {
db-connection-string = "[secret connection string]",
db-password = "[secret database password]",
Expand All @@ -26,14 +26,14 @@ module "secrets" {
}
```

### Read secrets from Key Vault
Read secrets from Key Vault:

```terraform
module "secrets" {
source = "zodiac403/key-vault-secrets/azurerm"
version = "0.1.0"
version = "1.0.0"
key_vault_id = azurerm_key_vault.example.id
key_vault_id = azurerm_key_vault.example.id
output_secrets = {
db_connection_string = "db-connection-string",
db_password = "db-password"
Expand All @@ -43,12 +43,10 @@ module "secrets" {
output "db_connection_string" {
value = module.secrets.from_key_fault.db_connection_string
}
# output: "[secret connection string]"
output "db_password" {
value = module.secrets.from_key_fault.db_password
}
# output: "[secret database password]"
```

## References
Expand Down

0 comments on commit ef3a39c

Please sign in to comment.