-
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 resource azurerm_resource_provider #7951
New resource azurerm_resource_provider #7951
Conversation
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.
Hi @Humoiz thanks for this PR! This new resource is very useful.
But I suppose the resource name azurerm_resource_provider
is not quite clear enough since this resource does not really manage all of the things from a resource provider (it cannot manage features for example) but only the registration, how about rename this to azurerm_resource_provider_registration
which should be more specific?
Also I think maybe this resource could just go to the resources
category, what do you think?
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 👍
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.
@Humoiz, thanks for the PR, this LGTM! 🚀
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.
Thank you for this pr @Humoiz! overall looks good but i have a few UX concerns that i've commented on inline
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
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.
hey @Humoiz
Thanks for pushing those changes - I've taken a look through and left some comments inline but if we can fix those up (and the tests pass) then this otherwise looks good to me 👍
Thanks!
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/resource/resource_arm_provider_registration.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/resource/tests/resource_arm_provider_registration_test.go
Outdated
Show resolved
Hide resolved
dismissing since changes have been pushed
@tombuildsstuff Thanks for the feedback. I`ll review it and address it soon. |
@tombuildsstuff - Thank you for your feedback. I have addressed all the code comments. Tests are passing after making the changes.
|
hey @Humoiz Apologies for the delayed response here - thought I'd replied to this - but thanks for pushing those changes. Chatting with @grayzu last week, we think there's 4 scenarios we need to cover:
Does that make sense? |
@tombuildsstuff - For the scenario, where auto-registration is enabled, and a user tries to register an RP. How do I determine the ones which terraform is registering or not registering? |
@Humoiz at the moment that's a little tricky since you'll have a circular reference - I'll refactor this tomorrow so that's not the case but in theory you'd get this list and string compare them (but as mentioned before, that's not possible right now due to a circular reference). I'll post an update in the morning once that's been moved which'll make this possible - sorry for the delay. |
This is required to unblock #7951, which has a circular reference otherwise
Co-authored-by: Hussain <[email protected]>
…ster RP's Unfortunately the Azure API's error messages when an RP is unregistered are unhelpful as such we recommend folks unfamiliar with the specifics of Resource Provider Registration don't use this resource by default.
dismissing since changes have been pushed
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 👍
This has been released in version 2.40.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.40.0"
}
# ... other configuration ... |
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 👉 [email protected]. Thanks! |
Implementing feature mentioned in the feature request: #1832
This PR adds following new resource, tests and its documentation:
azurerm_resource_provider_registration
It allows to register specified resource providers.
(fixes #1832)