terraform/ecc-aws-164-redshift_clusters_audit_logging_enabled/red1/redshift.tf (17 lines of code) (raw):
resource "aws_redshift_cluster" "this" {
cluster_identifier = "redshift-164-red"
database_name = "redshift164red"
master_username = "root"
master_password = random_password.this.result
node_type = "dc2.large"
skip_final_snapshot = true
}
resource "random_password" "this" {
length = 12
special = true
numeric = true
min_numeric = 1
min_upper = 1
min_lower = 1
override_special = "!#$%*()-_=+[]{}:?"
}