Skip to content

Latest commit

 

History

History
45 lines (40 loc) · 2.91 KB

update.md

File metadata and controls

45 lines (40 loc) · 2.91 KB

update

Deploy a new version of the Lambda function using project files, update any associated web APIs

Usage

claudia update {OPTIONS}

Options

  • --version: (optional) A version alias to automatically assign to the new deployment
    • For example: development
  • --source: (optional) Directory with project files
    • Defaults to: current directory
  • --config: (optional) Config file containing the resource names
    • Defaults to: claudia.json
  • --timeout: (optional) The function execution time, in seconds, at which AWS Lambda should terminate the function
  • --runtime: (optional) Node.js runtime to use. For supported values, see http://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html
  • --memory: (optional) The amount of memory, in MB, your Lambda function is given. The value must be a multiple of 64 MB.
  • --no-optional-dependencies: (optional) Do not upload optional dependencies to Lambda.
  • --use-local-dependencies: (optional) Do not install dependencies, use local node_modules directory instead
  • --cache-api-config: (optional) Name of the stage variable for storing the current API configuration signature. If set, it will also be used to check if the previously deployed configuration can be re-used and speed up deployment
    • For example: claudiaConfigCache
  • --keep: (optional) keep the produced package archive on disk for troubleshooting purposes. If not set, the temporary files will be removed after the Lambda function is successfully created
  • --use-s3-bucket: (optional) The name of a S3 bucket that Claudia will use to upload the function code before installing in Lambda. You can use this to upload large functions over slower connections more reliably, and to leave a binary artifact after uploads for auditing purposes. If not set, the archive will be uploaded directly to Lambda
    • For example: claudia-uploads
  • --s3-sse: (optional) The type of Server Side Encryption applied to the S3 bucket referenced in --use-s3-bucket
    • For example: AES256
  • --update-env: (optional) comma-separated list of VAR=VALUE environment variables to set, merging with old variables
    • For example: S3BUCKET=testbucket,SNSQUEUE=testqueue
  • --set-env: (optional) comma-separated list of VAR=VALUE environment variables to set. replaces the whole set, removing old variables.
    • For example: S3BUCKET=testbucket,SNSQUEUE=testqueue
  • --update-env-from-json: (optional) file path to a JSON file containing environment variables to set, merging with old variables
    • For example: production-env.json
  • --set-env-from-json: (optional) file path to a JSON file containing environment variables to set. replaces the whole set, removing old variables.
    • For example: production-env.json
  • --env-kms-key-arn: (optional) KMS Key ARN to encrypt/decrypt environment variables