Skip to content

Commit

Permalink
fix: aws-sdk import
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jun 23, 2022
1 parent ac63c36 commit 43ed77e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lambda/handler-runner/docker-runner/DockerContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { readFile, unlink, writeFile } from 'node:fs/promises'
import { platform } from 'node:os'
import { dirname, join, sep } from 'node:path'
import { log, progress } from '@serverless/utils/log.js'
import { Lambda } from 'aws-sdk'
import aws from 'aws-sdk'
import { execa } from 'execa'
import { ensureDir, pathExists } from 'fs-extra'
import jszip from 'jszip'
Expand Down Expand Up @@ -117,7 +117,7 @@ export default class DockerContainer {
log.verbose(`Storing layers at ${layerDir}`)

// Only initialise if we have layers, we're using AWS, and they don't already exist
this.#lambda = new Lambda({
this.#lambda = new aws.Lambda({
apiVersion: '2015-03-31',
region: this.#provider.region,
})
Expand Down

0 comments on commit 43ed77e

Please sign in to comment.