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

CI/CD for CDK apps #49

Closed
6 tasks done
eladb opened this issue Dec 10, 2019 · 6 comments · Fixed by aws/aws-cdk#8868
Closed
6 tasks done

CI/CD for CDK apps #49

eladb opened this issue Dec 10, 2019 · 6 comments · Fixed by aws/aws-cdk#8868
Assignees
Labels
management/tracking status/done Implementation complete

Comments

@eladb
Copy link
Contributor

eladb commented Dec 10, 2019

PR Champion
#3437 @eladb

Description

Teams should be able to "git push" a change into their CDK app repo and have this change automatically picked up, built, tested and deployed according to a deployment flow they define.

Any changes in resources, assets or stacks in their apps will automatically be added. To that end, the deployment pipeline itself will also be continuously delivered and updated throughout the same workflow. No manual deployments to production (incl. the pipeline) will be required.

Progress

  • Tracking Issue Created
  • RFC PR Created
  • Core Team Member Assigned
  • Initial Approval / Final Comment Period
  • Ready For Implementation
  • Resolved
@MrArnoldPalmer MrArnoldPalmer added the status/proposed Newly proposed RFC label Jan 3, 2020
@eladb eladb added status/approved Ready for implementation and removed status/proposed Newly proposed RFC labels Jan 26, 2020
eladb pushed a commit to aws/aws-cdk that referenced this issue Jan 26, 2020
This PR includes the RFC for supporting CI/CD for CDK apps of any complexity.

It also includes the RFC for cdk-assets which is a tool for publishing CDK assets, and is part of the CI/CD solution.

Tracking issue: aws/aws-cdk-rfcs#49
Addresses: #1312
@gustakasn0v
Copy link

@eladb Are you looking/open to external contributors to build this? I couldn't find issues/labels in the aws-cdk repo related to this, so I’m assuming no

@eladb
Copy link
Contributor Author

eladb commented Apr 12, 2020

Hi @gustakasn0v thanks so much for reaching out. We are actively working on implementing this RFC. Many aspects of which are already released (such as asset publishing, new bootstrapping logic, etc). At the moment we are not looking for help with implementation but as soon as we release some initial bits we would love your feedback! Copy @rix0rrr who leads this project.

@gustakasn0v
Copy link

@eladb Thanks for the quick reply! I'm happy to provide feedback! I'll look out for new releases.

Separately, I'm merging a Typescript example that partially implements some of the concepts in your RFC, feel free to take a look if it helps: aws-samples/aws-cdk-examples#269

@polothy
Copy link

polothy commented Apr 16, 2020

such as asset publishing

@eladb is that just during cdk deploy? I was expecting a cdk assets command, but not finding it.

@ottokruse
Copy link

In case people are looking for a solution now, this gist may help: https://gist.github.com/ottokruse/41694de3831d6bfe9080743b352aa2fe

It's a small script to publish CDK assets (e.g. Lambda function code) to S3 and generate parameter files, so you can combine cdk synth with CloudFormation deployments. This is essentially the equivalent of sam package but then for CDK. Works for Lambda and S3 deployments, but not for CDK's ECS magic.

Looking forward to the CDK native way to do this!

@eladb eladb added status/implementing RFC is being implemented and removed status/approved Ready for implementation labels Jun 22, 2020
rix0rrr added a commit to aws/aws-cdk that referenced this issue Jun 30, 2020
Adds an initial, Developer Preview version of CDK Pipelines, a
higher-level construct library to make it easy to set up CI/CD
pipelines for CDK apps.

Resolves aws/aws-cdk-rfcs#49.
rix0rrr added a commit to aws/aws-cdk that referenced this issue Jul 2, 2020
Adds an initial, Developer Preview version of CDK Pipelines, a
higher-level construct library to make it easy to set up CI/CD
pipelines for CDK apps.

Resolves aws/aws-cdk-rfcs#49.
@jgunnink
Copy link

jgunnink commented Jul 3, 2020

Hi @eladb @rix0rrr a colleague pointed this repo/issue out to me. I have developed something similar which I have deployed to two separate customers with this solution which may be of help.

Additionally the pipeline maintains itself, by running a cloudformation step which causes itself to update. I am happy to help contribute to this issue if can be of any help. Related blog article: https://mechanicalrock.github.io/2020/01/31/inception-pipeline-cdk.html

Cheers

edit: I've just noticed the date of the PR, my comment appears to be outdated!

mergify bot pushed a commit to aws/aws-cdk that referenced this issue Jul 8, 2020
Adds an initial, Developer Preview version of CDK Pipelines, a
higher-level construct library to make it easy to set up CI/CD
pipelines for CDK apps.

Resolves aws/aws-cdk-rfcs#49.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@eladb eladb added the status/done Implementation complete label Jul 27, 2020
@eladb eladb removed the status/implementing RFC is being implemented label Feb 16, 2021
eladb pushed a commit to cdklabs/decdk that referenced this issue Jan 18, 2022
Adds an initial, Developer Preview version of CDK Pipelines, a
higher-level construct library to make it easy to set up CI/CD
pipelines for CDK apps.

Resolves aws/aws-cdk-rfcs#49.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
management/tracking status/done Implementation complete
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants