Basically, i have a simple stack(Virginia) which will have resources like
- S3 Bucket(Data is there)
- Glue_Table
- Glue Job
Now, i want to deploy the same stack on Europe regions like eu-central-1.
when i try to deploy the aws-cdk-stack on eu-central-1, I am receiving this error
Bucket_Name already exists Exception
Command to deploy the stack is like cdk deploy <stack-name>
Goal
I want to deploy the existing stack into another region without deleting existing s3 bucket.
Can anyone suggest a solution for this?
 
                        
Based on the docs:
When creating an S3 bucket, the
bucketNameis optional. If you leave out thebucketNamea unique bucket name will be generated for you.The additional resources in your cdk project can take the bucket name via reference.
Example: