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

New datasource: azurerm_key_vault_secrets #12147

Merged
merged 10 commits into from
Jun 17, 2021
Merged

New datasource: azurerm_key_vault_secrets #12147

merged 10 commits into from
Jun 17, 2021

Conversation

favoretti
Copy link
Collaborator

@favoretti favoretti commented Jun 9, 2021

TODO:

  • Add docs

Fixes #12146

2021/06/09 17:27:37 [DEBUG] not using binary driver name, it's no longer needed
2021/06/09 17:27:38 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccDataSourceKeyVaultSecrets_basic
=== PAUSE TestAccDataSourceKeyVaultSecrets_basic
=== CONT  TestAccDataSourceKeyVaultSecrets_basic
--- PASS: TestAccDataSourceKeyVaultSecrets_basic (351.90s)
PASS

@ghost ghost added size/M labels Jun 9, 2021
@aristosvo
Copy link
Collaborator

@favoretti Nice, quit useful! What about a (prefix) filter option? 🤤😬

@favoretti
Copy link
Collaborator Author

favoretti commented Jun 9, 2021

@favoretti Nice, quit useful! What about a (prefix) filter option? 🤤😬

Yah, sure. Regexp, or a list of wanted secrets? And I wanna get HC to weigh in on a generic implementation first and then build on top :) FWIW, this might get thrown out of the window for rework.

@ghost ghost added size/L and removed size/M labels Jun 9, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @favoretti - just a couple questions but other wise looks good!

favoretti and others added 10 commits June 17, 2021 11:21
TODO:
[ ] Add docs once implementation is deemed ok

```
2021/06/09 17:27:37 [DEBUG] not using binary driver name, it's no longer needed
2021/06/09 17:27:38 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccDataSourceKeyVaultSecrets_basic
=== PAUSE TestAccDataSourceKeyVaultSecrets_basic
=== CONT  TestAccDataSourceKeyVaultSecrets_basic
--- PASS: TestAccDataSourceKeyVaultSecrets_basic (351.90s)
PASS
```
@favoretti
Copy link
Collaborator Author

favoretti commented Jun 17, 2021

$ TF_ACC=1 go test -v ./azurerm/internal/services/keyvault -timeout=1000m -run='TestAccDataSourceKeyVaultSecrets'
2021/06/17 12:41:54 [DEBUG] not using binary driver name, it's no longer needed
2021/06/17 12:41:55 [DEBUG] not using binary driver name, it's no longer needed
=== RUN   TestAccDataSourceKeyVaultSecrets_basic
=== PAUSE TestAccDataSourceKeyVaultSecrets_basic
=== CONT  TestAccDataSourceKeyVaultSecrets_basic
--- PASS: TestAccDataSourceKeyVaultSecrets_basic (612.78s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/keyvault	614.229s

Removed max_results altogether, since its working is... weird. Fetching all names all the time.

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @favoretti - GLGTM 🍰

@katbyte katbyte added this to the v2.64.0 milestone Jun 17, 2021
@katbyte katbyte merged commit 478699a into hashicorp:master Jun 17, 2021
katbyte added a commit that referenced this pull request Jun 17, 2021
@github-actions
Copy link

This functionality has been released in v2.64.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for azurerm_key_vault_secrets data source to bulk download secrets.
3 participants