sunrisenoob.blogg.se

Npm serverless-plugin-tracing
Npm serverless-plugin-tracing














See the "Networking" section for more details. Add a 1 second connect timeout to the AWS SDK If tracing is enabled at the provider level or at the warmer config level, the X-Ray client is automatically installed and X-Ray tracing is enabled. See "Permissions" section Support Tracing If no role is provided in the custom.warmup config, a default role with minimal permissions is created for each warmer.

  • sourceRaw Has been renamed to payloadRawĪutomatically creates a role for the lambda.
  • schedule schedule: rate(5 minutes) is equivalent to events: - schedule: rate(5 minutes).
  • The following legacy options have been completely removed: The permissions can also be added to all lambdas using setting the role to IamRoleLambdaExecution and setting the permissions in iamRoleStatements under provider (see ):ĭefault: # Name of the warmer, see above enabled: 'prod ' Removed legacy options This sets up Serverless to use the LocalStack plugin but only for the stage local.

    npm serverless-plugin-tracing

    Next, set up the plugin by adding the following properties to serverless.yml.

    #NPM SERVERLESS PLUGIN TRACING INSTALL#

    To install the plugin, execute the following command in the root of your project. ec2:DeleteNetworkInterface Resource: "* " Install and configure Serverless-LocalStack Plugin. name Name of the generated warmer lambda (defaults to $ # and one more row for each function that must be warmed up by the warmer # Warmer lambda to manage ENIS (only needed if deploying to VPC, ).You might want to keep it if you are doing some custom packaging (defaults to true) cleanFolder Whether to automatically delete the generated code folder.

    npm serverless-plugin-tracing

    folderName Folder to temporarily store the generated code (defaults to.

    npm serverless-plugin-tracing

    The options are the same for all the warmers: schedule: cron(0/5 * ? * SAT-SUN *) concurrency: 1 verbose: false testWarmer: schedule: cron(0/5 8-17 ? * MON-FRI *) concurrency: 10 verbose: true logRetentionInDays: 10 outOfOfficeHoursWarmer:














    Npm serverless-plugin-tracing