Not able to create redshift cluster from snapshot

0

I'm trying to create redshift cluster from snapshot with the terraform configuration files unfortunately it has not well and getting following error. Error: restoring Redshift Cluster (test123) from snapshot: InvalidRestore: To restore a cluster from a snapshot that uses Amazon Redshift Managed Passwords, use Amazon Redshift Managed Passwords. │ status code: 406, request id: de14478a-ea2c-42a6-b48b-17c3706fcb87

Here is the sample terraform code resource "aws_redshift_cluster" "main2" { cluster_identifier = "test123"

master_username = jsondecode(data.aws_secretsmanager_secret_version.redshift-secret-version.secret_string)["username"]

master_password = jsondecode(data.aws_secretsmanager_secret_version.redshift-secret-version.secret_string)["password"]

master_username = "adminuser"

master_password = "Aws:redshift:cluster:main2-test123"

node_type = "ra3.4xlarge" cluster_type = "multi-node" number_of_nodes = 2 snapshot_identifier = var.snapshot_identifier

iam_roles = var.iam_roles

encrypted = true

iam_roles = var.iam_roles }

Mahesh
asked 4 months ago60 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions