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
Fastly provider version 0.6.0
AWS provider version 2.8.0
Actual Behavior
condition blocks used to accept a lowercase type (request, response, etc). Now it appears they require uppercase types (REQUEST, RESPONSE).
The lowercase types stopped working sometime after April 15th. We never bumped the major version of Terraform or the Fastly provider so did not expect a breaking change.
Expected Behavior
I would expect the lowercase types to continue working when using the same Terraform and provider versions.
The text was updated successfully, but these errors were encountered:
👋 I can't confirm the described behavior. You can still use lowercase values for the type attribute. However, by doing so the plan command will always detect a difference. For example request is not equal to REQUEST because the Go programming language is case sensitive and the Fastly API will always respond with an uppercase value even if the condition was created with a lowercase type value.
Also, both the Fastly API and the Fastly Terraform docs require uppercase values for the condition type attribute. This hasn't changed since conditions are supported. Please have a look here in case you want to prove it yourself. The only issue I see is that the provider should throw an error if the value for the type attribute is not uppercase and not one of the required types.
Terraform Version
0.11.7 Linux AMD 64
Affected Resource(s)
Fastly provider version 0.6.0
AWS provider version 2.8.0
Actual Behavior
condition
blocks used to accept a lowercase type (request
,response
, etc). Now it appears they require uppercase types (REQUEST
,RESPONSE
).The lowercase types stopped working sometime after April 15th. We never bumped the major version of Terraform or the Fastly provider so did not expect a breaking change.
Expected Behavior
I would expect the lowercase types to continue working when using the same Terraform and provider versions.
The text was updated successfully, but these errors were encountered: