Update a Lambda function
Use GitHub Actions to deploy a Lambda Image or S3 bucket update
Update a Function Using an Image
name: Update Lambda
on:
workflow_dispatch:
inputs:
environment:
description: The environment to deploy to
type: environment
default: dev01
image:
description: The full image
type: string
required: true
jobs:
update_service:
name: Update Lambda
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment }}
env:
DUPLO_TOKEN: ${{ secrets.DUPLO_TOKEN }}
DUPLO_HOST: ${{ vars.DUPLO_HOST }}
DUPLO_TENANT: ${{ inputs.environment }}
steps:
# configures duplocloud and aws
- name: Cloud CI Setup
uses: duplocloud/[email protected]
# uses duploctl from above
- name: Update Lambda
uses: duplocloud/actions/[email protected]
with:
type: lambda
name: mylambda
image: ${{ inputs.image }}Update Lambda based on a package in Amazon S3
References
Last updated
Was this helpful?

