Commit 7753c69
committed
feat: Allow overriding Performance Insights KMS key
Add performance_insights_kms_key_arn variable to allow specifying a
custom KMS key ARN for Performance Insights encryption. When null
(default), falls back to the component's RDS CMK.
This is needed when a cluster was initially created with PI disabled
(or with a different KMS key), and PI is later enabled via Terraform.
In that scenario, the cluster already has a PI KMS key assigned by AWS
(typically the default aws/rds managed key), and the component
unconditionally tries to set the RDS CMK — which AWS rejects because
PI KMS keys cannot be changed after cluster creation.
The new variable allows users to pass the ARN of the key already in
use, preventing the InvalidParameterCombination error:
"You can't change your Performance Insights KMS key."1 parent 4cdb023 commit 7753c69
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| |||
0 commit comments