Skip to content

Commit

Permalink
chore(eslint): fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fargito committed Apr 4, 2024
1 parent 3188b1e commit f4df4ec
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions iac/stack.ts
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);
Expand All @@ -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

View workflow job for this annotation

GitHub Actions / 🏗 Build Project & 🧪 Run Tests

test/stack.test.ts > SQS Queue and SNS Topic Created

Error: Cannot find asset at /home/runner/work/rust-cdk-serverless/rust-cdk-serverless/rust_lambdas/target/lambda/create_todo/bootstrap.zip ❯ new AssetStaging node_modules/.pnpm/[email protected][email protected]/node_modules/aws-cdk-lib/core/lib/asset-staging.js:1:2119 ❯ new Asset node_modules/.pnpm/[email protected][email protected]/node_modules/aws-cdk-lib/aws-s3-assets/lib/asset.js:1:1080 ❯ AssetCode.bind node_modules/.pnpm/[email protected][email protected]/node_modules/aws-cdk-lib/aws-lambda/lib/code.js:1:4881 ❯ new Function node_modules/.pnpm/[email protected][email protected]/node_modules/aws-cdk-lib/aws-lambda/lib/function.js:1:9422 ❯ new TodoAppStack iac/stack.ts:35:30 ❯ test/stack.test.ts:8:17
architecture: Architecture.ARM_64,
runtime: Runtime.PROVIDED_AL2023,
code: Code.fromAsset(path),
code: Code.fromAsset(lambdaPath),
handler: 'useless',
memorySize: 1024,
environment: {
Expand Down

0 comments on commit f4df4ec

Please sign in to comment.