Skip to content

Commit

Permalink
chore(amplify-alpha): migrate asset deployment handler (#27955)
Browse files Browse the repository at this point in the history
This PR moves the migrate asset deployment handler to our new centralized location for custom resource handlers in the [@aws-cdk](https://github.com/aws-cdk) package.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
colifran authored Nov 14, 2023
1 parent 358fc6b commit 331369f
Show file tree
Hide file tree
Showing 23 changed files with 313 additions and 241 deletions.
10 changes: 2 additions & 8 deletions packages/@aws-cdk/aws-amplify-alpha/lib/branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,7 @@ class AmplifyAssetDeploymentProvider extends NestedStack {
this,
'amplify-asset-deployment-on-event',
{
entry: path.join(
__dirname,
'asset-deployment-handler/index.js',
),
entry: path.join(__dirname, '..', '..', 'custom-resource-handlers', 'dist', 'aws-amplify-alpha', 'asset-deployment-handler', 'index.js'),
handler: 'onEvent',
initialPolicy: [
new iam.PolicyStatement({
Expand All @@ -257,10 +254,7 @@ class AmplifyAssetDeploymentProvider extends NestedStack {
this,
'amplify-asset-deployment-is-complete',
{
entry: path.join(
__dirname,
'asset-deployment-handler/index.js',
),
entry: path.join(__dirname, '..', '..', 'custom-resource-handlers', 'dist', 'aws-amplify-alpha', 'asset-deployment-handler', 'index.js'),
handler: 'isComplete',
initialPolicy: [
new iam.PolicyStatement({
Expand Down

This file was deleted.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 331369f

Please sign in to comment.