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

Dependency update #58

Merged
merged 2 commits into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/cognito/bootstrap-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ Resources:
Fn::Sub: arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:parameter/*
- Action:
- apigateway:GET
- apigateway:PATCH
- apigateway:POST
- apigateway:DELETE
Effect: Allow
Expand Down
19 changes: 10 additions & 9 deletions tests/cognito/lib/cognito-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class CognitoStack extends cdk.Stack {
physicalResourceId: cr.PhysicalResourceId.of(
clientWithSecret.userPoolClientId
),
outputPath: "UserPoolClient.ClientSecret",
outputPaths: ["UserPoolClient.ClientSecret"],
};
const clientSecretGetter = new cr.AwsCustomResource(
this,
Expand Down Expand Up @@ -175,18 +175,19 @@ export class CognitoStack extends cdk.Stack {
},
}
);
const apiAuthorizer = new apigwauth.HttpLambdaAuthorizer({
authorizerName: "LambdaAuthorizer",
responseTypes: [apigwauth.HttpLambdaResponseType.SIMPLE],
handler: lambdaAuthorizer,
});
const apiAuthorizer = new apigwauth.HttpLambdaAuthorizer(
"LambdaAuthorizer",
lambdaAuthorizer,
{
authorizerName: "LambdaAuthorizer",
responseTypes: [apigwauth.HttpLambdaResponseType.SIMPLE],
}
);
const httpApi = new apigw.HttpApi(this, "HttpApi");
httpApi.addRoutes({
path: "/mock",
methods: [apigw.HttpMethod.GET],
integration: new apigwint.LambdaProxyIntegration({
handler: mock,
}),
integration: new apigwint.HttpLambdaIntegration("MockIntegration", mock),
authorizer: apiAuthorizer,
});

Expand Down
Loading