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

feat(cdk-assets): add external asset support #12259

Merged
merged 21 commits into from Jan 11, 2021
Merged

Conversation

CaerusKaru
Copy link
Contributor

In the event that assets are not actually available at synthesis
time, we still want to support JIT (just-in-time) asset
generation via external tooling. This would, for instance, enable
a third party tool to fetch additional resources prior to
bundling/building and subsequent uploading.

This adds a new interface for both File and Docker asset types
that allows users to specify an executable. The executable,
depending on the asset type, must then reply with a specific key
on stdout, which will then get picked up and used by CDK Assets.

This also updates the default stack synthesizer to support adding
external sources directly. This is technically a breaking change
for anyone who currently extends the class.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented Dec 29, 2020

@github-actions github-actions bot added the @aws-cdk/assets Related to the @aws-cdk/assets package label Dec 29, 2020
@CaerusKaru CaerusKaru changed the title feat(assets): add external asset support feat(cdk-assets): add external asset support Dec 29, 2020
@eladb
Copy link
Contributor

eladb commented Dec 29, 2020

@CaerusKaru this is interesting. Have you discussed this with anyone from the CDK team before submitting? I suspect we may want a quick RFC to better understand the use case behind this and see if this is indeed the best approach.

@CaerusKaru
Copy link
Contributor Author

@eladb Yeah, @rix0rrr and @NetaNir were both part of the discussion. This draft is to validate the exact API change before full readiness (tests, README, etc).

I'm ok doing an RFC, though in this case it feels like this falls more on the side of a minor change to me.

@eladb
Copy link
Contributor

eladb commented Dec 29, 2020

Okay that's what I assumed. I'll let @rix0rrr and @NetaNir chime in if they think this requires additional thinking.

@rix0rrr rix0rrr self-assigned this Jan 4, 2021
Adam Plumer added 2 commits January 5, 2021 04:27
In the event that assets are not actually available at synthesis
time, we still want to support JIT (just-in-time) asset
generation via external tooling. This would, for instance, enable
a third party tool to fetch additional resources prior to
bundling/building and subsequent uploading.

This adds a new interface for both File and Docker asset types
that allows users to specify an executable. The executable,
depending on the asset type, must then reply with a specific key
on stdout, which will then get picked up and used by CDK Assets.

This also updates the default stack synthesizer to support adding
external sources directly. This is technically a breaking change
for anyone who currently extends the class.
@CaerusKaru CaerusKaru marked this pull request as ready for review January 6, 2021 19:54
rix0rrr
rix0rrr previously approved these changes Jan 7, 2021
@mergify mergify bot dismissed rix0rrr’s stale review January 7, 2021 15:30

Pull request has been modified.

rix0rrr
rix0rrr previously approved these changes Jan 7, 2021
@mergify mergify bot dismissed rix0rrr’s stale review January 7, 2021 16:23

Pull request has been modified.

rix0rrr
rix0rrr previously approved these changes Jan 7, 2021
@mergify
Copy link
Contributor

mergify bot commented Jan 7, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot dismissed rix0rrr’s stale review January 7, 2021 19:09

Pull request has been modified.

rix0rrr
rix0rrr previously approved these changes Jan 8, 2021
@mergify mergify bot dismissed rix0rrr’s stale review January 8, 2021 12:29

Pull request has been modified.

@CaerusKaru
Copy link
Contributor Author

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Jan 8, 2021

@CaerusKaru is not allowed to run commands

@mergify
Copy link
Contributor

mergify bot commented Jan 11, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: b8393da
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Jan 11, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 05a9980 into aws:master Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/assets Related to the @aws-cdk/assets package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants