-
Notifications
You must be signed in to change notification settings - Fork 4k
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(custom-resources): make physical resource id optional (provider framework) #4946
Conversation
…framework) In order to make it easier to get started and implement custom resources that do not require changes to physical resource IDs, the provider framework now allows `onEvent` to omit the `PhysicalResourceId` return value. For `CREATE` operations, it will default to the `RequestId`. For `UPDATE` and `DELETE` it will return the current `PhysicalResourceId`. Misc: in aws-custom-resource, use `fs.readFileSync(__dirname)` instead of `require` to load `sdk-api-metadata.json`, so that the typescript compiler won't yell that this file is not defined in tsconfig.json.
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
packages/@aws-cdk/custom-resources/lib/aws-custom-resource/aws-custom-resource.ts
Show resolved
Hide resolved
packages/@aws-cdk/custom-resources/lib/provider-framework/runtime/framework.ts
Show resolved
Hide resolved
.../custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.ts
Show resolved
Hide resolved
.../custom-resources/test/provider-framework/integration-test-fixtures/s3-file-handler/index.ts
Show resolved
Hide resolved
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Without it the bin is not hoisted to `node_modules/.bin` and cannot be called from individual package directories.
Fix the Mergify operator for author condition. The current value for `author` is meant to be a regexp so the `~=` operator must be used to match it, not just `=`.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
In order to make it easier to get started and implement custom resources that do not require changes to physical resource IDs, the provider framework now allows
onEvent
to omit thePhysicalResourceId
return value.For
CREATE
operations, it will default to theRequestId
. ForUPDATE
andDELETE
it will return the currentPhysicalResourceId
.Misc: in aws-custom-resource, use
fs.readFileSync(__dirname)
instead ofrequire
to loadsdk-api-metadata.json
, so that the typescript compiler won't yell that this file is not defined in tsconfig.json.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license