Skip to content

Commit

Permalink
chore: trying to make wso2-api work again (error during deployment)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviostutz committed Jan 27, 2024
1 parent c71af29 commit 4904edf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/pnpm-lock.yaml

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

6 changes: 3 additions & 3 deletions lib/src/wso2/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-console */
import { existsSync } from 'fs';

import { Duration, RemovalPolicy, ScopedAws } from 'aws-cdk-lib';
import { Duration, ScopedAws } from 'aws-cdk-lib';
import { PolicyStatement } from 'aws-cdk-lib/aws-iam';
import { Runtime } from 'aws-cdk-lib/aws-lambda';
import { RetentionDays } from 'aws-cdk-lib/aws-logs';
Expand Down Expand Up @@ -35,13 +35,13 @@ export const addLambdaAndProviderForWso2Operations = (args: {
// lambda function used for invoking WSO2 APIs during CFN operations
const customResourceFunction = new BaseNodeJsFunction(args.scope, `${args.id}-custom-lambda`, {
...args.props.customResourceConfig,
stage: 'dev',
stage: 'w',
timeout: Duration.seconds(120),
runtime: Runtime.NODEJS_18_X,
eventType: EventType.CustomResource,
createLiveAlias: false,
createDefaultLogGroup: true,
logGroupRemovalPolicy: RemovalPolicy.DESTROY,
logGroupRemovalPolicy: args.props.removalPolicy,
entry: wso2LambdaEntry,
initialPolicy: [
PolicyStatement.fromJson({
Expand Down

0 comments on commit 4904edf

Please sign in to comment.