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
When applying a change to a vcl service with a conditioned header and trying to change the condition and header type the apply fails with a Bad Request: Cannot change type message. I believe this is when changing the Condition type, which also can't be done in the UI.
The below example fails when trying to change the condition type from CACHE to REQUEST and the header type from cache to request.
The condition will be replaced with an appropriate condition, removing and re-adding on as necessary without external involvement.
Actual Behavior
I receive this error message:
│ Error: 400 - Bad Request:
│
│ Title: Bad request
│ Detail: Cannot change type
│
│ with module.fastly_service_images_glitch_global.fastly_service_v1.service,
│ on ../modules/fastly_vcl/main.tf line 15, in resource "fastly_service_v1" "service":
│ 15: resource "fastly_service_v1" "service" {
line 15 is the opening of the fastly_service_v1 resource definition.
The apply does clone the active version, so I have a bunch of phantom versions hanging about now.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Have an existing service with a CACHE condition and a cache header
change the condition type to REQUEST and the header type to request
terraform apply
The text was updated successfully, but these errors were encountered:
I ended up having to manually delete the condition in the UI (I also deleted the associated header, but that may not have been necessary) on one of the extra versions previous terraform apply executions had created, active that version, and then run another apply to get it in place (after sorting out that I had the wrong condition type on the header record).
When applying a change to a vcl service with a conditioned header and trying to change the condition and header type the apply fails with a Bad Request: Cannot change type message. I believe this is when changing the Condition type, which also can't be done in the UI.
The below example fails when trying to change the condition type from
CACHE
toREQUEST
and the header type fromcache
torequest
.Terraform Version
Terraform v1.1.1
on darwin_amd64
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
main module file
"called" with a block like this
Debug Output
https://gist.github.com/cori/74951793bd3f1acc4df89f89a5de4fc5
Expected Behavior
The condition will be replaced with an appropriate condition, removing and re-adding on as necessary without external involvement.
Actual Behavior
I receive this error message:
line 15 is the opening of the
fastly_service_v1
resource definition.The apply does clone the active version, so I have a bunch of phantom versions hanging about now.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
CACHE
condition and acache
headerREQUEST
and the header type torequest
terraform apply
The text was updated successfully, but these errors were encountered: