Files
floci/docs
Michal Schreiber 75f8f42d5f fix(elasticache): keep a replication group's encryption, snapshot settings, tags and ARN (#2632)
* fix(elasticache): keep a replication group's encryption, snapshot settings, tags and ARN

DescribeReplicationGroups wrote AtRestEncryptionEnabled and
SnapshotRetentionLimit as constants and never emitted KmsKeyId,
SnapshotWindow or ARN, so a group created with them drifted on the next
Terraform plan (kms_key_id forces replacement) and its tags, given at
create, could not even be asked for without an ARN. Store the four
settings and the tags on the group, resolve KmsKeyId through the KMS
store in the request's region to the key ARN a live account reports,
apply the snapshot settings from ModifyReplicationGroup, emit them with
the ARN, and answer ListTagsForResource for replicationgroup ARNs — for
the record the ARN names, since the store keys groups by id alone.
Delete and modify of a group now share one monitor, so a modify cannot
write the group back after a delete removed it. Validation and wording
follow a live account.

Closes #2615

* fix(elasticache): refuse a KMS key with encryption at rest omitted, and change nothing on a refused modify

An omitted AtRestEncryptionEnabled is false on a live account and a
KmsKeyId is refused with it the same way as with an explicit false.
ModifyReplicationGroup applied the snapshot settings to the store's own
object before validating the user ids, so a request refused for an
unknown user had already changed the group; every check now runs before
any change.

* fix(elasticache): read AtRestEncryptionEnabled as a live account does, and refuse an empty snapshot window

A live account reads any AtRestEncryptionEnabled value that is not
"false" as true — banana, yes and "TRUE " all created an encrypted
group — so the flag is read the same way rather than parsed strictly.
A snapshot window whose end equals its start was measured as a full day;
a live account refuses it as shorter than an hour.
2026-08-27 16:53:33 -04:00
..
2026-03-15 17:43:56 -05:00