-
Notifications
You must be signed in to change notification settings - Fork 709
Identify Resource in Terraform Registry
At this stage, identify the resource in the Terraform Registry.
To begin, check the current version of the azurerm
that the caf framework uses. This can be found at the following link:
As of this writing, the version used by caf
is 2.55.0
. This is declared in the following snippet:
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 2.55.0"
}
}
}
In version 2.55.0
this resource is not supported
![no resource available](https://user-images.githubusercontent.com/31919569/123892484-479cb300-d98d-11eb-9123-cdc59cea9ae2.png)
Hence, in scenarios like this, find an appropriate version that supports the resource. In this example, we use version 2.61.0
because as of this writing, the team was already planning on upgrading the provider version to 2.61.0
![](https://user-images.githubusercontent.com/31919569/123892546-61d69100-d98d-11eb-80f9-1de4bfc64e82.png)
Start with the highest level attributes and identify keywords like required
and optional
. Also take note of the quantity of the attribute because this will influence the design pattern use. Refer to specific design patterns for more information.
![](https://user-images.githubusercontent.com/31919569/123760912-e07ef000-d8f3-11eb-9c2c-7c6ff1fcd8d2.png)
Next, scan through the documentation and identify any potential errors. In the documentation for provider version, there was an error in the description for the dimension
block as shown below. If such errors are identified, do make a PR to the terraform-provider-azurerm repository.
![](https://user-images.githubusercontent.com/31919569/123761087-0dcb9e00-d8f4-11eb-856e-e730776f27ed.png)
Using this example, a PR was submitted at terraform-provider-azurerm pr
This resulted in an update to the documentation that fixes the error:
![](https://user-images.githubusercontent.com/31919569/123761390-5b480b00-d8f4-11eb-98cc-b3b179addb4c.png)
The update will only be released in later versions of the provider. In this example, it was released in version 2.63.0
:
![](https://user-images.githubusercontent.com/31919569/123761689-a5c98780-d8f4-11eb-884a-08e48d6cd000.png)