Commit c199bb3
authored
Add blocked_encryption_types variable to fix perpetual SSE config drift (#289)
Exposes blocked_encryption_types on the aws_s3_bucket_server_side_encryption_configuration
rule block. Defaults to null (attribute omitted) to preserve compatibility with
hashicorp/aws provider versions older than 6.22.0.
On provider >= 6.22.0, GetBucketEncryption returns blocked_encryption_types = ["NONE"]
by default, which does not round-trip with an omitted/empty list and causes perpetual
in-place diffs. Callers on 6.22.0+ can set this to ["NONE"] to silence the drift.
Fixes #2871 parent 4352853 commit c199bb3
3 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
461 | 477 | | |
462 | 478 | | |
463 | 479 | | |
| |||
0 commit comments