Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1.2 KB

README.md

File metadata and controls

62 lines (40 loc) · 1.2 KB

deploy-lambda

Deploy lambda function to Adapt AWS account

Inputs

aws-region

Optional AWS region to deploy to (default: eu-west-1)

lambda-name

Required Name of the lambda function to deploy

node-runtime

Required Node runtime for the lambda function (e.g. nodejs18.x)

role-to-assume

Required ARN of the role to assume for deployment

Example usage

The permissions are needed to interact with GitHub's OIDC Token endpoint. This is on the root of your workflow yaml file

permissions:
  id-token: write
  contents: write
  statuses: write

The following is an example of how to use this action in a workflow:

uses: a-dapt/deploy-lambda@v1.0
with:
  lambda-name: api-lambda
  node-runtime: nodejs18.x
  role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME_ADAPT_CORE_PLATFORM }}

Special commands

To create the lambda function, use the following in a commit message:

create_lambda

To destroy the lambda function, use the following in a commit message:

destroy_lambda

Release

  1. To release change version in the VERSION file and push branch to the repository
  2. Merge to master
  3. On master, run release make target make release