-
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
managed_hsm_*
: add managed hsm nested key ids
#25324
Conversation
// Copyright (c) HashiCorp, Inc. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
package managedhsm | ||
|
||
//go:generate go run ../../tools/generator-resource-id/main.go -path=./ -name=ManagedHSMNestedKeyWithVersion -id=/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.KeyVault/managedHSMs/mhsm1/keys/key1/versions/version1 | ||
//go:generate go run ../../tools/generator-resource-id/main.go -path=./ -name=ManagedHSMNestedKeyVersionless -id=/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.KeyVault/managedHSMs/mhsm1/keys/key1 |
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 legacy Resource ID generator shouldn't be used for new Resources going forwards - can we instead update these to use the new Resource ID interface that hashicorp/go-azure-sdk
etc uses?
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.
Also shouldn't these be the Data Plane IDs rather than the Resource Manager IDs?
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 seems the parser of the new resource ID cannot suuport the Data Plane ID like https://hsm-name.managedhsm.azure.net/keys/key-name/version
. I'd like to create a PR to support it. Also we have to keep this reosurce manager ID for some other resource may reference to a ARM ID instead of the data plane id. WDYT?
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 created a PR to make the new resource id parser support data plane id: hashicorp/go-azure-helpers#222
@wuxu92 👋 Thanks for using our new PR template and including a description! Can you please update it to include an accurate changelog portion and check the appropriate boxes for this PR? This helps with the review process and also future users understanding of what is happening in this PR. Thanks! |
@wuxu92 we have a ton of CI failures? |
@katbyte The PR is dependent on hashicorp/go-azure-helpers#222, and I am going to convert this PR to draft... |
hey @wuxu92 Thanks for this PR - taking a look through here there's already an existing Resource Manager ID parser within I've ended up digging into this and have discovered that we want to take a different approach than the one used here, since this'll also end up being used for Key Vault in the future too - and as such I hope you don't mind but I'm going to close this PR in favour of #25601 which implements the Data Plane specific Resource ID parsers. Thanks! |
superceeded by #25601 |
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. |
Dependent on hashicorp/go-azure-helpers#222.
Community Note
Description
add the managed hsm key id which is required by #25069 and other places.
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_resource
- support for thething1
property [GH-00000]This is a (please select all that apply):
Related Issue(s)
Note
If this PR changes meaningfully during the course of review please update the title and description as required.