Coder Social home page Coder Social logo

aws-lambda-updatecode's Introduction

GitHub Action - AWS Lambda FunctionCode Update

Run UpdateFunctionCode , PublishVersion

Usage

Secret

Add Secret before this action. Settings > Secrets > Add a new secret

  • AWS_REGION
  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Example

- name: AWS Lambda FunctionCode Update
  uses: taotao2345/[email protected]
  env:
    AWS_REGION: ${{ secrets.AWS_REGION }}
    AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
    AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  with:
    function_name: TargetFunctionName
    zip_file: path/to/file.zip

aws-lambda-updatecode's People

Contributors

taotao2345 avatar dependabot[bot] avatar

Stargazers

Caleb-S avatar Will Traweek avatar Dmitrij avatar  avatar Serkan ÖZAL avatar Radoslav Georgiev avatar

Watchers

James Cloos avatar  avatar

aws-lambda-updatecode's Issues

ResourceConflictException

The action works fine and the lambda gets updated but it throws this error and shows that it failed:

Function Updating...
Update Success : text_extraction RevisionId = XXXXXXXXXXXXXXX CodeSize = 26039
Publishing...
Error: ResourceConflictException: The operation cannot be performed at this time. An update is in progress for resource: arn:aws:lambda:***:***:function:****

Seems to be a state handling issue
(https://aws.amazon.com/de/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.