We have an OpenSearch cluster deployed on production with removalPolicy: RemovalPolicy.RETAIN
because we don’t want to lose data if the stack is destroyed.
So that works but when I try to redeploy the stack I get this kind of error:
Resource handler returned message: “Resource of type ‘AWS::OpenSear
chService::Domain’ with identifier ‘books-index’ already exists.
I know the resource already exists, and that’s okay; it’s intentional. But now that I want to redeploy my stack again, I want to hook it up to the existing resource again.
Is this possible and all?
And if it is how does that work?
5