Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Unable to attach layers to the existing lambda #97

Closed
VaddeRam opened this issue Mar 6, 2022 · 3 comments
Closed

Unable to attach layers to the existing lambda #97

VaddeRam opened this issue Mar 6, 2022 · 3 comments

Comments

@VaddeRam
Copy link

VaddeRam commented Mar 6, 2022

I'm trying to attach common layers to the 5 lambda functions

image

Have defined one sample function in the code,

service: user-rep
description: user-rep-tool
frameworkVersion: ^3.0.0
useDotenv: true

plugins:

  • serverless-dotenv-plugin
  • serverless-offline
  • serverless-layers

package:
individually: true

serverless-layers:
layersDeploymentBucket: ${self:service}-tool-${self:provider.stage}-layers
functions: # optional
- query-access-requests
- dispose-access-request
- create-access-request
- query-affiliates
- lambda-authorizer
- pre-token-trigger
dependenciesPath: ./package.json

provider:
name: aws
region: ${opt:region, 'us-east-1'}
runtime: nodejs14.x

functions:
query-affiliates:
handler: src/lambda/query-affiliates/index.handler
architecture: arm64

@MHekert
Copy link

MHekert commented Apr 20, 2022

I had the same issue when upgrading from 2.5.2 to 2.5.4. Additionally, it removed layers that were already added to lambdas. Downgrade to 2.5.2 fixed it for me.

@ivanmartos
Copy link

I had similar issue with 2.5.4. Downgrade to 2.5.3 solved it

@agutoli
Copy link
Owner

agutoli commented Dec 23, 2022

Bugfix (not release yet)
#128

@agutoli agutoli closed this as completed Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants