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

Rename iot_dps resources to iothub_dps and add missing properties #4896

Merged
merged 17 commits into from
Nov 21, 2019

Conversation

jackbatzner
Copy link
Contributor

  • Rename Iot Hub resources to be consistent
    • azurerm_iot_dps --> azurerm_iothub_dps
    • azurerm_iot_dps_certificate --> azurerm_iothub_dps_certificate
  • Consolidates all IoT Hub pages under an IoT Hub group in the website for providers
  • Fixes Add missing properties to azurerm_iot_dps #4879
    • Adds following properties as outputs:
      • service_operation_host_name
      • device_provisioning_host_name
      • id_scope
      • allocation_policy

Abandoned PR 4881 as I had rebased from master and messed up history. This pulls in only the changes from that branch :).

@katbyte katbyte changed the title IoT Hub Updates Rename iot_dps resources to iothub_dps and add missing properties Nov 17, 2019
@katbyte katbyte added this to the v1.37.0 milestone Nov 17, 2019
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.

Thank you so much for renaming these @Brunhil! one less thing i have to do for 2.0 😃

However we do typically keep the old resources around so there are no breaking changes, as such could we just copy the old files back in, mark them as deprecated & add that they will be removed in 2.0 to the upgrade guide?

Other then that and 2 minor comments this looks good to go!

-kt

azurerm/provider.go Outdated Show resolved Hide resolved
azurerm/resource_arm_iothub_dps.go Outdated Show resolved Hide resolved
website/docs/r/iothub_dps.html.markdown Outdated Show resolved Hide resolved
@ghost ghost added size/XXL and removed size/L labels Nov 20, 2019
@jackbatzner jackbatzner requested a review from katbyte November 20, 2019 18:35
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 for adding those files back @Brunhil,

Looks like there are a few things that need to be renamed - could we also update the 2.0upgrade guide the the rename/deprecations? thanks!

azurerm/resource_arm_iot_dps.go Outdated Show resolved Hide resolved
azurerm/resource_arm_iot_dps_cerificate.go Outdated Show resolved Hide resolved
azurerm/resource_arm_iot_dps_certificate_test.go Outdated Show resolved Hide resolved
azurerm/resource_arm_iot_dps_certificate_test.go Outdated Show resolved Hide resolved
azurerm/resource_arm_iot_dps_certificate_test.go Outdated Show resolved Hide resolved
azurerm/resource_arm_iot_dps_certificate_test.go Outdated Show resolved Hide resolved
azurerm/resource_arm_iot_dps_certificate_test.go Outdated Show resolved Hide resolved
azurerm/resource_arm_iot_dps_certificate_test.go Outdated Show resolved Hide resolved
@tombuildsstuff tombuildsstuff modified the milestones: v1.37.0, v1.38.0 Nov 21, 2019
- Rename internal resources to match the correct resource (arm_iot vs arm_iothub)
- Add changes to 2.0 upgrade guide
    - Add removal of iot_dps_* resources
    - Combine some resources that were already listed in the guide
- Restructure renamed resources guide for these changes
@@ -9,20 +9,17 @@ description: |-

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I went a head and made changes here to support future versions. Let me know your thoughts @katbyte

@jackbatzner jackbatzner requested a review from katbyte November 21, 2019 18:36
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 for the revisions @Brunhil! LGTM 🎉

@katbyte katbyte modified the milestones: v1.38.0, v1.37.0 Nov 21, 2019
@katbyte katbyte merged commit a72d54a into hashicorp:master Nov 21, 2019
katbyte added a commit that referenced this pull request Nov 21, 2019
@ghost
Copy link

ghost commented Nov 26, 2019

This has been released in version 1.37.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.37.0"
}
# ... other configuration ...

@ghost ghost removed the waiting-response label Nov 26, 2019
@jackbatzner jackbatzner deleted the iot_updates branch December 14, 2019 19:30
@ghost
Copy link

ghost commented Dec 22, 2019

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 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Dec 22, 2019
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.

Add missing properties to azurerm_iot_dps
3 participants