Skip to content

Commit

Permalink
Rename iot_dps resources to iothub_dps and add missing prop… (#4896)
Browse files Browse the repository at this point in the history
- Fixes #4879
  • Loading branch information
Brunhil authored and katbyte committed Nov 21, 2019
1 parent aa33570 commit a72d54a
Show file tree
Hide file tree
Showing 15 changed files with 1,213 additions and 43 deletions.
2 changes: 2 additions & 0 deletions azurerm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ func Provider() terraform.ResourceProvider {
"azurerm_image": resourceArmImage(),
"azurerm_iot_dps": resourceArmIotDPS(),
"azurerm_iot_dps_certificate": resourceArmIotDPSCertificate(),
"azurerm_iothub_dps": resourceArmIotHubDPS(),
"azurerm_iothub_dps_certificate": resourceArmIotHubDPSCertificate(),
"azurerm_iothub_consumer_group": resourceArmIotHubConsumerGroup(),
"azurerm_iothub": resourceArmIotHub(),
"azurerm_iothub_endpoint_eventhub": resourceArmIotHubEndpointEventHub(),
Expand Down
6 changes: 6 additions & 0 deletions azurerm/resource_arm_iot_dps.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ func resourceArmIotDPS() *schema.Resource {
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
DeprecationMessage: `The 'azurerm_iot_dps' resource is deprecated in favour of the renamed version 'azurerm_iothub_dps'.
Information on migrating to the renamed resource can be found here: https://terraform.io/docs/providers/azurerm/guides/migrating-between-renamed-resources.html
As such the existing 'azurerm_iot_dps' resource is deprecated and will be removed in the next major version of the AzureRM Provider (2.0).
`,

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(30 * time.Minute),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ func resourceArmIotDPSCertificate() *schema.Resource {
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
DeprecationMessage: `The 'azurerm_iot_dps_certificate' resource is deprecated in favour of the renamed version 'azurerm_iothub_dps_certificate'.
Information on migrating to the renamed resource can be found here: https://terraform.io/docs/providers/azurerm/guides/migrating-between-renamed-resources.html
As such the existing 'azurerm_iot_dps_certificate' resource is deprecated and will be removed in the next major version of the AzureRM Provider (2.0).
`,

Timeouts: &schema.ResourceTimeout{
Create: schema.DefaultTimeout(30 * time.Minute),
Expand Down
Loading

0 comments on commit a72d54a

Please sign in to comment.