-
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
Consider splitting azurerm_iothub resource into several smaller ones #3303
Comments
Have you had any time to think about this issue? Like I said, I am willing to implement the change, so the only thing needed right now is an OK/nope from the core team with some possible comments :) |
ping |
hey @maxbog Thanks for opening this issue / apologies for the delayed response here. Taking a look into this, I think splitting this out would make sense - from what I can see I think this'd be simplest to start with the
WDYT? Thanks! |
Hi, thanks for the response! I agree with you on all the points and this is actually how I planned to proceed. However, I'd like to make one clarification before I proceed. Currently, there is a single field named What do you think? Either way, please expect some PRs in the coming weeks :) |
@maxbog yep, totally agree on splitting those out into the 4 sub-resources 👍 (sorry I should have clarified that) Thanks! |
This has been released in version 1.38.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 = "~> 1.38.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! |
Community Note
Description
Right now, all endpoints and routes for IoTHub must be known at the moment of IoTHub creation. In my case, this causes unwanted coupling, which I'd like to eliminate. It's best to show an example.
Let's say we have two terraform modules:
I want IoTHub to have several routes which forward messages to different Event Hubs. Right now, I would have to define all of those event hubs in the
iothub
module, so that I can pass the connection string to theazurerm_iothub
resource. However, what I'd like to be able to do is to define IoTHub only in theiothub
module and configure endpoints and routing in thereporting
module.New or Affected Resource(s)
Potential Terraform Configuration
I am willing to work on this if you think it's in line with how the azurerm provider is developing.
References
The text was updated successfully, but these errors were encountered: