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

chore: update contract for registerContextProvider #17954

Merged
merged 5 commits into from
Dec 10, 2021
Merged

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Dec 10, 2021

We're trialling open context providers internally. Not ready yet to call this a public API but we will maintain firmer guarantees on this function going forward.

Issues already uncovered by doing this that the more general open framework will have to deal with:

  • SdkProvider would need to be open and stable
  • What if the provider doesn't need account/region?
  • Schema validation in query and response
  • Side channel instructions to the context framework
  • (not to mention: how will the code get on the user's machine?)

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

We're trialling open context providers internally. Not ready yet to call this a public API but we will maintain firmer guarantees on this function going forward.
@rix0rrr rix0rrr requested a review from a team December 10, 2021 16:41
@rix0rrr rix0rrr self-assigned this Dec 10, 2021
@gitpod-io
Copy link

gitpod-io bot commented Dec 10, 2021

@rix0rrr rix0rrr changed the title chore: update contract for registerContractProvider chore: update contract for registerContextProvider Dec 10, 2021
@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label Dec 10, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Dec 10, 2021
@rix0rrr rix0rrr added the pr/do-not-merge This PR should not be merged at this time. label Dec 10, 2021
@rix0rrr rix0rrr removed the pr/do-not-merge This PR should not be merged at this time. label Dec 10, 2021
@github-actions github-actions bot added the @aws-cdk/custom-resources Related to AWS CDK Custom Resources label Dec 10, 2021
@mergify
Copy link
Contributor

mergify bot commented Dec 10, 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: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 2b32fcb
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify mergify bot merged commit 203c42b into master Dec 10, 2021
@mergify mergify bot deleted the rix0rrr-patch-1 branch December 10, 2021 19:06
@mergify
Copy link
Contributor

mergify bot commented Dec 10, 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).

@RichiCoder1
Copy link
Contributor

Excited to see an API like this moving forward! A few growing pains I've seen could absolutely have been solved via a custom Context Provider. Ready to play with the bits as soon as this is more stable!

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
We're trialling open context providers internally. Not ready yet to call this a public API but we will maintain firmer guarantees on this function going forward.

Issues already uncovered by doing this that the more general open framework will have to deal with:

* `SdkProvider` would need to be open and stable
* What if the provider doesn't need account/region?
* Schema validation in query and response
* Side channel instructions to the context framework
* (not to mention: how will the code get on the user's machine?)

----

*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
@aws-cdk/aws-lambda Related to AWS Lambda @aws-cdk/custom-resources Related to AWS CDK Custom Resources contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants