-
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
azurerm_cdn_frontdoor_rule - documentation of transforms is wrong #18470
Comments
@evandeworp, thank you for opening this issue. This issue will be fixed with my latest FrontDoor PR #18231. Fixed with this commit. |
Since the documentation is being fixed, might as well fix the example in the documentation as well. The example in https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_frontdoor_rule fails with: │ Error: Missing required argument In the documented example, please change: resource "azurerm_cdn_frontdoor_profile" "example" { To: resource "azurerm_cdn_frontdoor_profile" "example" { |
@evandeworp, thanks for the comment, this is a known issue and will be fixed moving forward. As these resources are still currently under development these examples are not guaranteed to work but are only offered as a possible configuration once the resources have been fully released. This is my last task once everything has been finalized with the resources. I will add examples and fix all of the example configurations in the documentation. This is an incredibly complex and difficult resource to implement, so I appreciate your patience while we work this out. 🚀 |
…18551 * initial check-in * still refactoring but should be functional * Doc updates * deprecate health_probes_enabled property * Update website/docs/r/cdn_frontdoor_custom_domain_secret_validator.html.markdown Co-authored-by: Sebastian <[email protected]> * Update website/docs/r/cdn_frontdoor_custom_domain_txt_validator.html.markdown Co-authored-by: Sebastian <[email protected]> * refactor CIDR validation into validation packages * fix naked return lint error in cidr overlap func * Update code comments to add context * Fix for 18249 * Remove txt and secret validators * Remove validator ids, parse/validation packages * Update rules doc for depends_on usage * Doc updates * Update test cases * Correct skip txt for origin test * More test and doc updates * Update test and docs to use new subnet field * Fix for 18370 * Update docs per PR comment * Incremental fixed per PR review * Initial additon of association and doc fix * Custom domain assoc mostly working * Additional progress... * Fix lint errors * Fix lint errors * Last of the PR comments addressed... * Fix for issue #18551 * Mostly working not done with the disable resource * Done Co-authored-by: Sebastian <[email protected]>
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.2.9
AzureRM Provider Version
3.23.0
Affected Resource(s)/Data Source(s)
azurerm_cdn_frontdoor_rule
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Successful plan should be created since, according to documentation https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_frontdoor_rule, the argument name in multiple places is "transform" but all these arguments in the documentation should be "transforms".
(Even the example of https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_frontdoor_rule has "transforms" being used instead of "transform").
Actual Behaviour
PS C:> terraform plan
╷
│ Error: Unsupported argument
│
│ on main.tf line 96, in resource "azurerm_cdn_frontdoor_rule" "example":
│ 96: transform = ["Lowercase", "Trim"]
│
│ An argument named "transform" is not expected here. Did you mean "transforms"?
╵
╷
│ Error: Unsupported argument
│
│ on main.tf line 109, in resource "azurerm_cdn_frontdoor_rule" "example":
│ 109: transform = ["Uppercase"]
│
│ An argument named "transform" is not expected here. Did you mean "transforms"?
╵
╷
│ Error: Unsupported argument
│
│ on main.tf line 122, in resource "azurerm_cdn_frontdoor_rule" "example":
│ 122: transform = ["Lowercase", "RemoveNulls", "Trim"]
│
│ An argument named "transform" is not expected here. Did you mean "transforms"?
Steps to Reproduce
terraform plan
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: