Drone plugins > AWS Lambda
amazon_lambda.svg

AWS Lambda

by devops-israel


The plugin automatically deployes a serverless function to AWS Lambda from a zip file located in an S3 bucket. This plugin does not handle creating or uploading the zip file.

Example

kind: pipeline
type: docker
name: default

steps:
- name: deploy-lambda
  image: omerxx/drone-lambda-plugin
  settings:
    function_name: my-function
    s3_bucket: some-bucket
    file_name: lambda-dir/lambda-project-${DRONE_BUILD_NUMBER}.zip

Properties

  • aws_access_key_id

    stringoptional

    The AWS access key ID

    Secret recommended

    Default: none

  • aws_secret_access_key

    stringoptional

    AWS secret key. Access and secret key variables override credentials stored in config files.

    Secret recommended

    Default: none

  • aws_default_region

    stringoptional

    AWS region. This variable overrides the default region of the in-use profile, if set.

    Default: none

  • function_name

    stringrequired

    Name of the lambda function as set in AWS.

    Default: none

  • s3_bucket

    stringrequired

    Name of the S3 bucket in which the zip package for deployment is stored.

    Default: none

  • file_name

    stringrequired

    Name of the file in S3. Can be prefixed like my-directory/my-zip-package.zip.

    Default: none