Skip to content

Commit

Permalink
role commented
Browse files Browse the repository at this point in the history
  • Loading branch information
Kedharkb committed Mar 16, 2024
1 parent e9deb94 commit eeab0f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/lib/stacks/api-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export class ApiStack extends cdk.Stack {
// assumedBy: new ServicePrincipal('lambda.amazonaws.com'),
// });

const existingRole = Role.fromRoleArn(this, 'LambdaRole', 'arn:aws:iam::381492264897:role/lambda_role');
// const existingRole = Role.fromRoleArn(this, 'LambdaRole', 'arn:aws:iam::381492264897:role/lambda_role');


new Function(this, 'ApiLambda', {
runtime: Runtime.PYTHON_3_10,
handler: 'app.lambda_handler',
code: Code.fromAsset('../src/lambdas/api_lambda/api_lambda'),
role:existingRole,
// role:existingRole,
timeout: Duration.minutes(5)
});
}
Expand Down

0 comments on commit eeab0f5

Please sign in to comment.