Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
173

Deploy to AWS Lambda using Serverless lambda

Deploy a serverless service (functions and resources) to AWS Lambda.

arguments

  • AWS_CREDENTIALS_FILE - Base64 encoded AWS credentials file
  • AWS_PROFILE - AWS Profile Name
  • AWS_REGION - AWS region
  • AWS_STAGE - AWS API Gateway stage
  • PACKAGE - Serverless Framework package folder
    deploy:
  type: lambda
  title: Deploy to AWS using Credentials File
  arguments:
    PACKAGE: ./deploy
    AWS_CREDENTIALS_FILE: '${{AWS_CREDENTIALS_FILE}}'
    AWS_PROFILE: default
    AWS_REGION: us-west-2
    AWS_STAGE: development

  
    deploy:
  type: lambda
  title: Deploy to AWS using IAM Role
  arguments:
    PACKAGE: deploy
    AWS_REGION: us-west-2
    AWS_STAGE: development

  
github.com
Francisco Cocozza
Jul 4, 2021