Closed mits87 closed 1 week ago
Hi there,
I'm trying to use your plugin with the serverless framework. Basically I'm doing something like:
service: app frameworkVersion: '3' useDotenv: true plugins: - serverless-plugin-typescript - serverless-plugin-optimize - serverless-extra-parameters - serverless-offline package: excludeDevDependencies: true individually: true patterns: - '!**/node_modules/@aws-sdk/**' provider: name: aws runtime: nodejs18.x architecture: arm64 region: ${opt:region, 'eu-central-1'} stage: ${opt:stage, 'dev'} stackName: dev-app layers: axiom: path: arn:aws:lambda:${self:provider.region}:694952825951:layer:axiom-extension-arm64:4 name: axiom-layer description: Axiom unlocks observability at any scale. environment: AWS_NODEJS_CONNECTION_REUSE_ENABLED: 1 AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE: 1 LOG_LEVEL: debug NODE_ENV: production NODE_OPTIONS: '--enable-source-maps --stack-trace-limit=1000' AXIOM_TOKEN: ${ssm:/${self:provider.stage}/AXIOM_TOKEN} AXIOM_DATASET: 'app' functions: api: handler: ./src/events/api.handler description: 'REST API / GraphQL handler' events: - httpApi: path: /{proxy+} method: ANY
But unfortunately when I'm trying to deploy my lambda (using sls deploy command) I'm getting error:
sls deploy
Error: No file matches include / exclude patterns
Any idea what's wrong?
@mits87 have you been able to fix this, I don't think it's related to Axiom, looks like an error related to setting up the function correctly.
closing due to inactivity
Hi there,
I'm trying to use your plugin with the serverless framework. Basically I'm doing something like:
But unfortunately when I'm trying to deploy my lambda (using
sls deploy
command) I'm getting error:Any idea what's wrong?