### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

After the initial `cdklocal deploy` run, after any change has happened, Localstack will not be able to locate the created SQS queue and will delete it.
![Screenshot 2023-12-08 at 10 16 15](https://github.com/localstack/localstack/assets/16351444/f7a29aa3-43f9-41b2-bba1-c71b1fbc2d8b)


### Expected Behavior

No error when adding changes after having provisioned SQS queue

### How are you starting LocalStack?

With the `localstack` script

### Steps To Reproduce

How to replicate:
1. In an empty folder initialise a new CDK project using `cdklocal init -l python`
2. Substitute the `..._stack.py` file with.
```
from aws_cdk import Duration, Stack, aws_sqs as sqs, aws_s3 as s3
from constructs import Construct


class LocalstackTestStack(Stack):
    def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
        super().__init__(scope, construct_id, **kwargs)

        # The code that defines your stack goes here

        # example resource
        queue = sqs.Queue(
            self,
            "LocalstackTestQueue",
            visibility_timeout=Duration.seconds(300),
        )
```
3. Run `cdklocal bootstrap`and `cdklocal deploy`.
4. Make any "significant" change in ..._stack.py file. For example add a bucket.
```
from aws_cdk import Duration, Stack, aws_sqs as sqs, aws_s3 as s3
from constructs import Construct


class LocalstackTestStack(Stack):
    def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
        super().__init__(scope, construct_id, **kwargs)

        # The code that defines your stack goes here

        # example resource
        queue = sqs.Queue(
            self,
            "LocalstackTestQueue",
            visibility_timeout=Duration.seconds(300),
        )

        self.input_bucket = s3.Bucket(
            self,
            "input_bucket",
            block_public_access=s3.BlockPublicAccess.BLOCK_ALL,
        )
```
5. Run `cdklocal deploy`. This will throw the error.


### Environment

```markdown
- OS: macOS Sonoma Version 14.1.1
- LocalStack:

> cdklocal --version
2.114.1 (build 02bbb1d)

>localstack --version
3.0.2
```
```


### Anything else?

![Screenshot 2023-12-08 at 10 21 44](https://github.com/localstack/localstack/assets/16351444/e9960a4e-6c39-4827-9550-b71606125a77)
![Screenshot 2023-12-08 at 10 21 59](https://github.com/localstack/localstack/assets/16351444/7f2e67a1-4d27-482f-8dae-8263f8e7d63d)

`localstack config show` output
"AWS::ECR::Repository": "ResourceProvider",
    "AWS::EKS::Nodegroup": "ResourceProvider",
    "AWS::ElasticBeanstalk::Application": "ResourceProvider",
    "AWS::ElasticBeanstalk::ApplicationVersion": "ResourceProvider",
    "AWS::ElasticBeanstalk::ConfigurationTemplate": "ResourceProvider",
    "AWS::ElasticBeanstalk::Environment": "ResourceProvider",
    "AWS::Events::Connection": "ResourceProvider",
    "AWS::Events::EventBus": "ResourceProvider",
    "AWS::Events::EventBusPolicy": "ResourceProvider",
    "AWS::Events::Rule": "ResourceProvider",
    "AWS::IAM::AccessKey": "ResourceProvider",
    "AWS::IAM::Group": "ResourceProvider",
    "AWS::IAM::InstanceProfile": "ResourceProvider",
    "AWS::IAM::ManagedPolicy": "ResourceProvider",
    "AWS::IAM::Policy": "ResourceProvider",
    "AWS::IAM::Role": "ResourceProvider",
    "AWS::IAM::ServiceLinkedRole": "ResourceProvider",
    "AWS::IAM::User": "ResourceProvider",
    "AWS::KMS::Alias": "ResourceProvider",
    "AWS::KMS::Key": "ResourceProvider",
    "AWS::Kinesis::Stream": "ResourceProvider",
    "AWS::Kinesis::StreamConsumer": "ResourceProvider",
    "AWS::KinesisAnalytics::Application": "ResourceProvider",
    "AWS::KinesisFirehose::DeliveryStream": "ResourceProvider",
    "AWS::Lambda::Alias": "ResourceProvider",
    "AWS::Lambda::CodeSigningConfig": "ResourceProvider",
    "AWS::Lambda::EventInvokeConfig": "ResourceProvider",
    "AWS::Lambda::EventSourceMapping": "ResourceProvider",
    "AWS::Lambda::LayerVersion": "ResourceProvider",
    "AWS::Lambda::LayerVersionPermission": "ResourceProvider",