-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import { CfnOutput, Stack, StackProps } from 'aws-cdk-lib'; | ||
import { HttpApi, HttpMethod } from 'aws-cdk-lib/aws-apigatewayv2'; | ||
import { HttpLambdaIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations'; | ||
import { CfnOutput, Stack, StackProps } from 'aws-cdk-lib'; | ||
import { AttributeType, BillingMode, Table } from 'aws-cdk-lib/aws-dynamodb'; | ||
import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam'; | ||
import { Architecture, Runtime, Function, Code } from 'aws-cdk-lib/aws-lambda'; | ||
import { Architecture, Code, Function, Runtime } from 'aws-cdk-lib/aws-lambda'; | ||
import { Construct } from 'constructs'; | ||
import { join } from 'path'; | ||
import path from 'path'; | ||
import path, { join } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
|
@@ -27,12 +26,16 @@ export class TodoAppStack extends Stack { | |
billingMode: BillingMode.PAY_PER_REQUEST, | ||
}); | ||
|
||
const path = join(__dirname, baseLambdaDir, 'create_todo/bootstrap.zip'); | ||
const lambdaPath = join( | ||
__dirname, | ||
baseLambdaDir, | ||
'create_todo/bootstrap.zip', | ||
); | ||
|
||
const createTodoLambda = new Function(this, 'CreateTodo', { | ||
Check failure on line 35 in iac/stack.ts GitHub Actions / 🏗 Build Project & 🧪 Run Teststest/stack.test.ts > SQS Queue and SNS Topic Created
|
||
architecture: Architecture.ARM_64, | ||
runtime: Runtime.PROVIDED_AL2023, | ||
code: Code.fromAsset(path), | ||
code: Code.fromAsset(lambdaPath), | ||
handler: 'useless', | ||
memorySize: 1024, | ||
environment: { | ||
|