설명
새 Redshift 프로비저닝 클러스터는 기본으로 암호화됩니다. Terraform 구성을 바꾸기 전에 기존 클러스터와 스냅샷의 실제 설정을 확인하세요.
잠재적 영향
암호화되지 않은 스냅샷에서는 저장 데이터가 노출될 수 있습니다. KMS 키에 접근할 수 없게 되면 데이터 읽기나 복구도 실패할 수 있습니다.
해결 방법
encrypted = true를 지정하고 정책에서 요구하는 KMS 키를 선택하세요. 기존 비암호화 클러스터는 Terraform 계획을 확인한 뒤 지원되는 암호화 전환 절차를 사용하세요. 백업과 키 접근 권한을 유지하세요. Redshift가 데이터를 옮기는 동안은 읽기 전용이므로 쓰기 작업 일정을 조정하세요. 전환 후 암호화와 데이터 일관성, 애플리케이션 연결, 복구를 확인하세요.
예시
해당 리전에서 지원하는 단일 노드 유형을 선택하세요. 비밀번호는 안전하게 전달하고 Terraform 상태 접근을 제한하세요. 네트워크와 백업 정책은 별도로 설정하세요.
암호화 비활성화 요청
hcl
resource "aws_redshift_cluster" "analytics" {
cluster_identifier = "tf-redshift-cluster"
database_name = "mydb"
master_username = "foo"
master_password = var.redshift_password
node_type = var.redshift_node_type
cluster_type = "single-node"
encrypted = false
}
현재 생성 API는 명시적인 encrypted = false 요청을 거부합니다.
암호화 활성화 요청
hcl
resource "aws_redshift_cluster" "analytics" {
cluster_identifier = "tf-redshift-cluster"
database_name = "mydb"
master_username = "foo"
master_password = var.redshift_password
node_type = var.redshift_node_type
cluster_type = "single-node"
encrypted = true
}
encrypted = true는 암호화를 요청합니다. 배포된 클러스터와 새 스냅샷에 사용된 키를 확인하세요.