Redis elasticache Global datastore

We have created primary and secondary cluster in 2 AWS regions and also one Global datastore with both clusters. Now when we are trying to increase replica in secondary cluster getting below error :
I am using Terraform v0.11.15 and AWS provider 4.18.0 version
Let me know if anyone can help me on this.

Error: error updating ElastiCache Replication Group (authzcache-b-redis-qa-secondary): InvalidParameterValue: Cluster [authzcache-b-redis-qa-secondary] is part of a global cluster [sgaui-authzcache-b-redis-qa-global]. Request rejected.
335 status code: 400, request id: 49b0faf4-497b-4bde-a43c-1328534d3f9e
336
337 on …/…/modules/ads_redis/main.tf line 137, in resource “aws_elasticache_replication_group” “secondary”:
338 137: resource “aws_elasticache_replication_group” “secondary” {
339
340
341