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

Remove dependency from toolkit on CDK #352

Merged
merged 1 commit into from
Jul 17, 2018
Merged

Conversation

eladb
Copy link
Contributor

@eladb eladb commented Jul 17, 2018

Due to a cyclic dependency caused by the need for CDK libraries to depend on the toolkit for testing purposes, we decided not to use the CDK to define the "toolkit stack". It's a very simple stack that essentially contains a single bucket.

Therefore, we just embed the template in the toolkit code, and finally we don't have cycles anymore.

Tested this manually by:

  • Bootstrapping the toolkit stack in my dev account
  • Updating the toolkit stack
  • Verifying that "deploy" can discover the bucket and upload a template

The empty "WaitHandle" stack also used the CDK, so this was also embedded inline.

--reject-cycles is enabled now

Fixes #293

Due to a cyclic dependency caused by the need for
CDK libraries to depend on the toolkit for testing
purposes, we decided not to use the CDK to define
the "toolkit stack". It's a very simple stack
that essentially contains a single bucket.

Therefore, we just embed the template in the
toolkit code, and finally we don't have cycles
anymore.

Tested this manually by bootstrapping the toolkit
stack in my dev account and also updating it.

The empty "WaitHandle" stack also used the CDK,
so this was also embedded inline.

--reject-cycles is enabled now

Fixes #293
@eladb eladb requested review from RomainMuller and rix0rrr July 17, 2018 11:12
@eladb eladb merged commit e1c61fb into master Jul 17, 2018
@eladb eladb deleted the benisrae/remove-dep-cycle branch July 17, 2018 11:24
@NGL321 NGL321 added the contribution/core This is a PR that came from AWS. label Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove dependency from cdk toolkit on @aws-cdk/*
3 participants