Unable to identify root cause of conflict between cluster-level and instance-level Performance Insights in RDS Aurora (Terraform)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- aws, postgresql, terraform
- Lĩnh vực
- cloud, infrastructure
Hướng nghiên cứu
The report describes conflicting cluster and instance Performance Insights KMS settings in the terraform-aws-modules/rds-aurora module, but does not identify a repository file or test. Start by checking whether this repository contains that module or relevant configuration, then compare its cluster and instance settings with the reported AWS behavior. Done means establishing whether the issue applies to this project and documenting a reproducible cause or a concrete validation or documentation change.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
When deploying an RDS Aurora PostgreSQL cluster with the terraform-aws-modules/rds-aurora module (~> 10.0), a recurring error occurs when trying to create cluster instances:
KMSKeyNotAccessibleFault: The specified performanceInsightsKMSKeyId arn:aws:kms:us-east-1:xxx doesn't exist, isn't enabled, or isn't accessible with your permissions.
Research Conducted
- Attempted to set
cluster_performance_insights_kms_key_id = nullto use AWS-managed KMS - Attempted to set
performance_insights_kms_key_id = nullon each instance - Attempted to manually modify Terraform state in S3
- Deleted and recreated the cluster multiple times
- Researched documentation of the
terraform-aws-modules/rds-auroramodule - Spent ~4 hours troubleshooting without success
How Gemini Identified the Root Cause
An alternative AI (Google Gemini) analyzed the problem differently and found:
- Ran
grep -rn "performance_insights_enabled" .terraform/modules/rdsto inspect the module internals - Identified that AWS introduced DB Cluster-level Performance Insights for Aurora, causing the AWS API to complain about conflicting cluster and instance settings when setting KMS keys
- Found that the module attempts to inherit
performance_insights_kms_key_idfrom cluster to instances - Key insight: For Aurora, when Performance Insights is enabled at cluster level, all instances must inherit it. Sending a custom KMS key at instance level is not allowed
Root Cause
AWS has a limitation for Aurora: When Performance Insights is enabled at the cluster level (cluster_performance_insights_enabled = true), all instances must inherit it. Sending a custom performance_insights_kms_key_id at the instance level is not allowed.
The conflict occurs because:
- The
rds-auroramodule tries to inheritperformance_insights_kms_key_idfrom cluster to instances - If the cluster was previously created with a KMS key (even if instance creation failed), AWS remembers that configuration
- Attempting to use a different KMS or
nulltriggers the error
Solution
Temporarily disable Performance Insights on the cluster:
module "rds" {
# ... other parameters ...
cluster_performance_insights_enabled = false
cluster_performance_insights_kms_key_id = null
}
After successfully creating the cluster, Performance Insights can be enabled in a subsequent apply if desired.
Impact
- Wasted time: ~4 hours of research
- Required assistance from another AI (Gemini) to identify the root cause in ~15 minutes
Recommendation
1. Improve module documentation to clarify this AWS limitation
2. Consider adding validations in the module to detect this conflict
3. Update examples to include this consideration
Versions
- Terraform: 1.14.7
- AWS Provider: ~> 5.0
- RDS Aurora Module: ~> 10.0
### Plugins
No plugins installed - Using OpenCode CLI directly
### OpenCode version
Latest version (opencode/minimax-m2.5-free)
### Steps to reproduce
1. Create an RDS Aurora PostgreSQL cluster using terraform-aws-modules/rds-aurora (~> 10.0)
2. Enable Performance Insights with a custom KMS key: cluster_performance_insights_enabled = true
3. Attempt to create cluster instances
4. Observe error: KMSKeyNotAccessibleFault - The specified performanceInsightsKMSKeyId doesn't exist
### Screenshot and/or share link
_No response_
### Operating System
macOS (Darwin)
### Terminal
macOS Terminal / iTerm2
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 588
- Fork
- 83
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MiniMax-AI/MiniMax-M2.5
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
MiniMax-AI/MiniMax-M2.5#41 · 1 bình luận ·
-
Verify evals on Papers with CodeĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 48/100
MiniMax-AI/MiniMax-M2.5#39 ·
-
aa_lcr/ifbench数据集评测疑问Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
MiniMax-AI/MiniMax-M2.5#38 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
MiniMax-AI/MiniMax-M2.5#37 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
MiniMax-AI/MiniMax-M2.5#36 · 3 bình luận ·
Tất cả issue của MiniMax-AI/MiniMax-M2.5
Issue tương tự
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
canton-network/splice#8882 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chameleon: cmx vm horizonĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
cloudmesh-ai/cloudmesh-ai-vm#188 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a list commandĐang mởbackup-operator
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
platform-mesh/platform-mesh#819 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Asset archive reports success when every per-file S3 call failsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
awslabs/visual-asset-management-system#2204 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Azure/azure-policy#1621 ·