Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
fix(core): LambdaProxyIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
pahud committed Nov 15, 2020
1 parent af008a3 commit 501b7b3
Show file tree
Hide file tree
Showing 4 changed files with 346 additions and 309 deletions.
3 changes: 2 additions & 1 deletion .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {
GithubWorkflow,
} = require('projen');

const AWS_CDK_LATEST_RELEASE = '1.62.0';
const AWS_CDK_LATEST_RELEASE = '1.73.0';
const PROJECT_NAME = 'cdk-serverless-lamp';
const PROJECT_DESCRIPTION = 'A JSII construct lib to build AWS Serverless LAMP with AWS CDK';
const AUTOMATION_TOKEN = 'PROJEN_GITHUB_TOKEN';
Expand Down Expand Up @@ -40,6 +40,7 @@ const project = new AwsCdkConstructLibrary({
'@aws-cdk/core',
'@aws-cdk/aws-apigateway',
'@aws-cdk/aws-apigatewayv2',
'@aws-cdk/aws-apigatewayv2-integrations',
'@aws-cdk/aws-ec2',
'@aws-cdk/aws-iam',
'@aws-cdk/aws-lambda',
Expand Down
38 changes: 20 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"organization": false
},
"devDependencies": {
"@aws-cdk/assert": "^1.62.0",
"@aws-cdk/assert": "^1.73.0",
"@types/jest": "^26.0.7",
"@types/node": "^10.17.0",
"@typescript-eslint/eslint-plugin": "^4.3.0",
Expand All @@ -49,31 +49,33 @@
"jsii-pacmak": "^1.11.0",
"jsii-release": "^0.1.6",
"json-schema": "^0.2.5",
"projen": "^0.3.164",
"projen": "^0.3.167",
"standard-version": "^9.0.0",
"ts-jest": "^26.1.0",
"typescript": "^3.9.5"
},
"peerDependencies": {
"@aws-cdk/aws-apigateway": "^1.62.0",
"@aws-cdk/aws-apigatewayv2": "^1.62.0",
"@aws-cdk/aws-ec2": "^1.62.0",
"@aws-cdk/aws-iam": "^1.62.0",
"@aws-cdk/aws-lambda": "^1.62.0",
"@aws-cdk/aws-rds": "^1.62.0",
"@aws-cdk/aws-secretsmanager": "^1.62.0",
"@aws-cdk/core": "^1.62.0",
"@aws-cdk/aws-apigateway": "^1.73.0",
"@aws-cdk/aws-apigatewayv2": "^1.73.0",
"@aws-cdk/aws-apigatewayv2-integrations": "^1.73.0",
"@aws-cdk/aws-ec2": "^1.73.0",
"@aws-cdk/aws-iam": "^1.73.0",
"@aws-cdk/aws-lambda": "^1.73.0",
"@aws-cdk/aws-rds": "^1.73.0",
"@aws-cdk/aws-secretsmanager": "^1.73.0",
"@aws-cdk/core": "^1.73.0",
"constructs": "^3.2.0"
},
"dependencies": {
"@aws-cdk/aws-apigateway": "^1.62.0",
"@aws-cdk/aws-apigatewayv2": "^1.62.0",
"@aws-cdk/aws-ec2": "^1.62.0",
"@aws-cdk/aws-iam": "^1.62.0",
"@aws-cdk/aws-lambda": "^1.62.0",
"@aws-cdk/aws-rds": "^1.62.0",
"@aws-cdk/aws-secretsmanager": "^1.62.0",
"@aws-cdk/core": "^1.62.0"
"@aws-cdk/aws-apigateway": "^1.73.0",
"@aws-cdk/aws-apigatewayv2": "^1.73.0",
"@aws-cdk/aws-apigatewayv2-integrations": "^1.73.0",
"@aws-cdk/aws-ec2": "^1.73.0",
"@aws-cdk/aws-iam": "^1.73.0",
"@aws-cdk/aws-lambda": "^1.73.0",
"@aws-cdk/aws-rds": "^1.73.0",
"@aws-cdk/aws-secretsmanager": "^1.73.0",
"@aws-cdk/core": "^1.73.0"
},
"bundledDependencies": [],
"keywords": [
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

import * as path from 'path';
import * as apigateway from '@aws-cdk/aws-apigatewayv2';
import { LambdaProxyIntegration } from '@aws-cdk/aws-apigatewayv2-integrations';
import { IVpc, InstanceType, SecurityGroup, Port } from '@aws-cdk/aws-ec2';
import * as iam from '@aws-cdk/aws-iam';
import * as lambda from '@aws-cdk/aws-lambda';
Expand Down Expand Up @@ -115,7 +116,7 @@ export class ServerlessApi extends cdk.Construct {
}

const endpoint = new apigateway.HttpApi(this, 'apiservice', {
defaultIntegration: new apigateway.LambdaProxyIntegration({
defaultIntegration: new LambdaProxyIntegration({
handler: this.handler,
}),
});
Expand Down
Loading

0 comments on commit 501b7b3

Please sign in to comment.