You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
provider"azurerm" {
version="=2.6"features {}
}
resource"azurerm_resource_group""test-cors" {
name="test-cors-RG"location="West Europe"
}
resource"azurerm_storage_account""test-cors" {
name="terraformtestcors"resource_group_name=azurerm_resource_group.test-cors.namelocation=azurerm_resource_group.test-cors.locationaccount_tier="Standard"account_replication_type="LRS"enable_https_traffic_only=trueaccount_kind="StorageV2"static_website {
index_document="index.html"
}
blob_properties {
cors_rule {
allowed_headers=["x-ms-*"]
allowed_methods=[
"PUT",
"OPTIONS",
"POST",
"GET",
"HEAD",
"DELETE",
"MERGE",
"PATCH", # Not allowed by terraform CLI, but present on Azure
]
allowed_origins=["http://localhost:61674"]
exposed_headers=["x-ms-*"]
max_age_in_seconds=86400
}
}
tags={"DETELEME":"THIS IS A TEST"}
}
Debug Output
terraform validate:
Error: expected blob_properties.0.cors_rule.0.allowed_methods.7 to be one of [DELETE GET HEAD MERGE POST OPTIONS PUT], got PATCH
on test-cors.tf line 11, in resource "azurerm_storage_account""test-cors":
11: resource "azurerm_storage_account""test-cors" {
Expected Behavior
PATH To be a valid method.
Actual Behavior
Error from the validator
Steps to Reproduce
terraform init
terraform validate
Additional Context
In the Azure portal the patch is listed as a valid method:
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!
ghost
locked and limited conversation to collaborators
Jun 17, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This issue was originally opened by @diegopeinador as hashicorp/terraform#24941. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Debug Output
terraform validate:
Expected Behavior
PATH To be a valid method.
Actual Behavior
Error from the validator
Steps to Reproduce
terraform init
terraform validate
Additional Context
In the Azure portal the patch is listed as a valid method:
References
The documentation is consistent with the validator and doesn't list PATCH as a valid method for this parameter:
https://www.terraform.io/docs/providers/azurerm/r/storage_account.html#allowed_methods
The text was updated successfully, but these errors were encountered: