-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
New Data Sources: azurerm_key_vault
& azurerm_key_vault_secret
#1202
Conversation
b9fcbb7
to
29a4aee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from some very minor comments
## Example Usage | ||
|
||
```hcl | ||
resource "azurerm_key_vault" "test" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be data "azurerm_key_vault" "test"
?
|
||
* `vault_uri` - The URI of the vault for performing operations on keys and secrets. | ||
|
||
* `location` - The Azure Region in which the Key Vault exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only line that doesn't end with a .
return nil | ||
} | ||
|
||
func flattenKeyVaultDataSourceSku(sku *keyvault.Sku) []interface{} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, is there a reason sku
is a list/block instead of a string value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's also possible to set some additional fields here, but we don't expose them
|
||
* `name` - (Required) Specifies the name of the Key Vault. | ||
|
||
* `resource_group_name` - The name of the Resource Group in which the Key Vault exists. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line doesn't specify if its optional or required
name = "mykeyvault" | ||
resource_group_name = "some-resource-group" | ||
} | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No output in example
The following attributes are exported: | ||
|
||
* `id` - The Key Vault Secret ID. | ||
* `value` - The value of the Key Vault Secret |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only line without a .
…/terraform-provider-azurerm into data-source-keyvault
Hi, |
@mikaelkrief it'll be released as a part of v1.5.0 very soon :) |
Looks like a larger audience might be need this release. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Key Vault Tests Pass:
Key Vault Secret Tests Pass:
Fixes #606