-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Labels
Description
Terraform Version
Terraform v1.6.3
on darwin_arm64Affected Fastly Terraform Resource(s)
Please list the affected resources, for example:
fastly_service_vcl
Terraform Configuration Files
resource "fastly_service_vcl" "this" {
name = "some-service"
activate = true
snippet {
name = "my_snippet"
type = "init"
content = <<EOF
table my_table {
"foo" = "bar"
"bar" = "foo"
}
# Old line
EOF
}
}
Expected Behavior
...
snippet {
name = "my_snippet"
content = <-EOF
... lots of suff ...
- # Old Line
+ # Changed Line
EOF
}Actual Behavior
...
- snippet {
- name = "my_snippet"
- type = "init"
- content = <-EOF
- ... lots of suff ...
- EOF
- }
+ snippet {
+ name = "my_snippet"
+ type = "init"
+ content = <-EOF
+ ... lots of suff ...
+ # Changed Line
+ EOF
+ }Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform plan/apply- make a change to snippet content
terraform plan— see the "wrong" diff (more verbose than necessary)
Important Factoids (optional)
- I'm guessing other types of snippets (dynamic) and also raw VCL should have the same issue
- Is that because of the use of
Type.Setin the resource schema? Would it be possible to use something likeType.Mapand eventually use the name of the snippet as a map (I'm guessing if the name changes it is okay to show it as a new snippet)
AimeeKnight, landrew57, pavelpulec, Daniel-I-Am, kkopachev and 4 more