I have a Redis Cluster
which was created by using aws-cdk(python)
. Basically i created this redis-cluster
as a part of service-stack
my service-stack looks like below
s3 bucket
ecs cluster
lambda function
redis cluster
I want to seperate redis cluster
from service-stack
and want to place in another stack like redis-stack
Possible solution
I need to remove redis cluster
from service-stack
and create an another stack called redis-stack
and deploy my redis cluster
Issue
My redis cluster
is already deployed in PROD
. I dont want to delete redis cluster
Goal
without deleting existing redis cluster
, I want to move the redis cluster
from service-stack
to redis-stack
Can anyone suggest a solution for this?
Generally it is possible to do it through import procedure as explained in Moving resources between stacks.
However, AWS::ElastiCache::CacheCluster
does not support import procedure. Only some resources support it. Sadly, ElastiCache is not one of these resources.
So if you don't want to touch your prod cluster, for now you are stuck with what you have. Maybe in a near future support for importing, and subsequently moving AWS::ElastiCache::CacheCluster
will be added to CloudFormation. Otherwise you would have to snapshot it, and recreated in a new stack.