Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does cdk-local support cdk 2.3.0? #55

Closed
include opened this issue Dec 30, 2021 · 4 comments
Closed

does cdk-local support cdk 2.3.0? #55

include opened this issue Dec 30, 2021 · 4 comments

Comments

@include
Copy link

include commented Dec 30, 2021

Hi,

Does cdk-local support the latest cdk version 2.3.0 (today)?

Is it the 'defacto' local dev strategy with cdk?

Cheers,
F

@whummer
Copy link
Member

whummer commented Jan 5, 2022

Hi @include , thanks for reaching out.

I think it does! In fact, this is what I currently have installed on my machine:

$ cdklocal --version
2.3.0 (build beaa5b2)

Can you please share some details about your use case, and the behavior you're seeing - are you getting any particular errors on cdklocal deploy? (please note that in some cases you first need to run cdklocal bootstrap) If you could share a few snippets of your CDK script as well as the output logs, we'll be happy to take a closer look 👍 . Thanks

@whummer
Copy link
Member

whummer commented Jan 18, 2022

Hi @include , quick follow-up - were you able to get it working with 2.3.0 , can this issue be closed? Thanks

@nekperu15739
Copy link

nekperu15739 commented Jan 20, 2022

the right way to check version is this one:
`npm -g list

npm -g list
/$/.nvm/versions/node/v14.18.2/lib
├── aws-cdk-local@1.65.8
├── aws-cdk@2.3.0
`
looks like not compatible, even bootstrap give an error:

cdklocal log:
`CDKToolkit | 7 | 12:22:56 AM | CREATE_FAILED | AWS::CloudFormation::Stack | CDKToolkit

Failed resources:
❌ Environment aws://000000000000/us-east-1 failed bootstrapping: Error: The stack named CDKToolkit failed to deploy: CREATE_FAILED (Deployment failed)
at Object.waitForStackDeploy (/Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/lib/api/util/cloudformation.ts:309:11)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at prepareAndExecuteChangeSet (/Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/lib/api/deploy-stack.ts:351:26)
at /Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:464:24
at async Promise.all (index 0)
at CdkToolkit.bootstrap (/Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:461:5)
at initCommandLine (/Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/bin/cdk.ts:267:9)
The stack named CDKToolkit failed to deploy: CREATE_FAILED (Deployment failed)
Error: The stack named CDKToolkit failed to deploy: CREATE_FAILED (Deployment failed)
at Object.waitForStackDeploy (/Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/lib/api/util/cloudformation.ts:309:11)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at prepareAndExecuteChangeSet (/Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/lib/api/deploy-stack.ts:351:26)
at /Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:464:24
at async Promise.all (index 0)
at CdkToolkit.bootstrap (/Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/lib/cdk-toolkit.ts:461:5)
at initCommandLine (/Users/charly/.nvm/versions/node/v14.18.2/lib/node_modules/aws-cdk/bin/cdk.ts:267:9)`

localstack log:
localstack_main | 2022-01-21T08:41:21:INFO:localstack.utils.analytics.profiler: Execution of "start_api_services" took 11546.897172927856ms localstack_main | 2022-01-21T08:41:37:WARNING:localstack.utils.cloudformation.template_deployer: Unexpected resource type ECR::Repository when resolving references of resource ContainerAssetsRepository: {'Type': 'AWS::ECR::Repository', 'LogicalResourceId': 'ContainerAssetsRepository', 'Properties': {'RepositoryName': {'Fn::If': ['HasCustomContainerAssetsRepositoryName', {'Fn::Sub': '${ContainerAssetsRepositoryName}'}, {'Fn::Sub': 'cdk-${Qualifier}-container-assets-${AWS::AccountId}-${AWS::Region}'}]}}} localstack_main | 2022-01-21T08:41:37:WARNING:localstack.utils.cloudformation.template_deployer: Unexpected resource type ECR::Repository when resolving references of resource ContainerAssetsRepository: {'Type': 'AWS::ECR::Repository', 'LogicalResourceId': 'ContainerAssetsRepository', 'Properties': {'RepositoryName': 'cdk-hnb659fds-container-assets-000000000000-us-east-1'}} localstack_main | 2022-01-21T08:41:37:INFO:localstack.utils.cloudformation.template_deployer: Action "create" for resource type ECR::Repository not yet implemented - using fallback mechanism

@dominikschubert
Copy link
Member

The bootstrapping issue with ECR @ localstack community should be fixed now as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants