diff --git a/.projen/deps.json b/.projen/deps.json index c0215ba5..84f6a051 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -49,7 +49,7 @@ }, { "name": "aws-cdk-lib", - "version": "2.99.1", + "version": "2.110.0", "type": "build" }, { @@ -173,7 +173,7 @@ }, { "name": "aws-cdk-lib", - "version": "^2.99.1", + "version": "^2.110.0", "type": "peer" }, { diff --git a/.projenrc.ts b/.projenrc.ts index 94a9344e..f21ad22f 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -49,7 +49,7 @@ const project = new awscdk.AwsCdkConstructLibrary({ gitignore: ['.idea'], // dependency config jsiiVersion: '~5.0.0', - cdkVersion: '2.99.1', + cdkVersion: '2.110.0', bundledDeps: ['esbuild'] /* Runtime dependencies of this module. */, devDeps: [ '@aws-crypto/sha256-js', diff --git a/API.md b/API.md index 108363cb..6cd8ba71 100644 --- a/API.md +++ b/API.md @@ -988,6 +988,7 @@ new NextjsImage(scope: Construct, id: string, props: NextjsImageProps) | configureAsyncInvoke | Configures options for asynchronous invocation. | | considerWarningOnInvokeFunctionPermissions | A warning will be added to functions under the following conditions: - permissions that include `lambda:InvokeFunction` are added to the unqualified function. | | grantInvoke | Grant the given identity permissions to invoke this Lambda. | +| grantInvokeCompositePrincipal | Grant multiple principals the ability to invoke this Lambda via CompositePrincipal. | | grantInvokeUrl | Grant the given identity permissions to invoke this Lambda Function URL. | | metric | Return the given named metric for this Function. | | metricDuration | How long execution of this Lambda takes. | @@ -1180,6 +1181,20 @@ Grant the given identity permissions to invoke this Lambda. --- +##### `grantInvokeCompositePrincipal` + +```typescript +public grantInvokeCompositePrincipal(compositePrincipal: CompositePrincipal): Grant[] +``` + +Grant multiple principals the ability to invoke this Lambda via CompositePrincipal. + +###### `compositePrincipal`Required + +- *Type:* aws-cdk-lib.aws_iam.CompositePrincipal + +--- + ##### `grantInvokeUrl` ```typescript diff --git a/examples/app-router/src/stack.ts b/examples/app-router/src/stack.ts index 4cff0a33..18c2f3f5 100644 --- a/examples/app-router/src/stack.ts +++ b/examples/app-router/src/stack.ts @@ -8,7 +8,8 @@ export class AppRouterStack extends Stack { const nextjs = new Nextjs(this, 'nextjs', { nextjsPath: '../../open-next/examples/app-router', - // skipBuild: true, + buildCommand: 'npx open-next@^2 build', + skipBuild: true, }); new CfnOutput(this, "CloudFrontDistributionDomain", { diff --git a/package.json b/package.json index 1385f36d..63205802 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@types/node": "^18", "@typescript-eslint/eslint-plugin": "^5", "@typescript-eslint/parser": "^5", - "aws-cdk-lib": "2.99.1", + "aws-cdk-lib": "2.110.0", "aws-lambda": "^1.0.7", "constructs": "10.0.5", "esbuild": "^0.19.2", @@ -81,7 +81,7 @@ "undici": "^5.23.0" }, "peerDependencies": { - "aws-cdk-lib": "^2.99.1", + "aws-cdk-lib": "^2.110.0", "constructs": "^10.0.5" }, "dependencies": { diff --git a/src/utils/common-lambda-props.ts b/src/utils/common-lambda-props.ts index e67025ed..bef26b80 100644 --- a/src/utils/common-lambda-props.ts +++ b/src/utils/common-lambda-props.ts @@ -10,7 +10,7 @@ export function getCommonFunctionProps(scope: Construct): Omit