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

azurerm_api_management_named_value not supporting versionless keyvault secret id. #12637

Closed
nairraghunathgopinath opened this issue Jul 19, 2021 · 5 comments · Fixed by #12641

Comments

@nairraghunathgopinath
Copy link
Contributor

nairraghunathgopinath commented Jul 19, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Affected Resource(s)

  • azurerm_XXXXX

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp

Debug Output

Panic Output

Expected Behaviour

Should allow create a named value in api managment azurerm_api_management_named_value resource without any errors.

Actual Behaviour

image

Steps to Reproduce

  1. terraform apply
  2. set value_from_key_vault {
    secret_id = azurerm_key_vault_secret.MasterData-InternalProductLimit.versionless_id
    identity_client_id = var.object_id
    }
  3. See the errors
    image

Important Factoids

References

  • #0000
@nairraghunathgopinath
Copy link
Contributor Author

nairraghunathgopinath commented Jul 19, 2021

I suspect the LOC on the resource in provider key vault secret id validation need to replace with func NestedItemIdWithOptionalVersion from "secret_id": {
Type: pluginsdk.TypeString,
Required: true,
ValidateFunc: keyVaultValidate.NestedItemId,

@nairraghunathgopinath
Copy link
Contributor Author

nairraghunathgopinath commented Jul 19, 2021

@tombuildsstuff Can we've a ETA for the same? Would be appreciated if we've any workaround for the same. Its blocking from creation of named value pairs for api management resources.

@nairraghunathgopinath
Copy link
Contributor Author

nairraghunathgopinath commented Jul 19, 2021

@tombuildsstuff raised a PR for the fix #12641. Please review and let me know :) Thanks. Please run all set of checks as well on my PR would be appreciated. :)

@github-actions
Copy link

This functionality has been released in v2.69.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, 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 Aug 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.