Open m-ahsan-nazer opened 1 year ago
Hi @m-ahsan-nazer thank you for opening this issue.
Indeed, as you noticed, this is not currently supported, regardless of which language you use. I don't have a workaround ready for you either... I suspect you'd have to do this operation outside of Pulumi and then import the resulting resources.
The issue is tracked upstream in https://github.com/hashicorp/terraform-provider-aws/issues/20657
Hi,
We have an existing Elasticache Redis Cluster (cluster mode disabled, single node). We want to add a second read replica node to this existing cluster. The AWS documentations https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/Replication.CreatingReplGroup.ExistingCluster.html explain that it is a two step process (1) create a replication group and pass the existing cluster via --primary-cluster-id (2) Create a new replica cluster that references the existing cluster and replication group.
The problem is we can't find a way to pass --primary-cluster-id to the ReplicationGroup in Pulumi. I found the comment " Note: We currently do not support passing a
primaryClusterId
in order to create the Replication Group." in https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/elasticache/replicationGroup.ts . I am assuming the Python version can't handle this either.What is the solution to this? A solution that does not involve building a replication group from scratch.