GitHub action to deploy serverless functions to YandexCloud

Overview

YandexCloud serverless function deploy action

Deploy new serverless function version (including function creation if it does not exist).

Inputs

yc_account_id

YandexCloud account id (Required)

yc_key_id

YandexCloud trusted key id (Required)

yc_private_key

YandexCloud private key (Required)

function_name

Function name (Required)

function_description

Function description (Required)

runtime

Runtime for function (Required)

version_description

New function version description (Required)

function_entrypoint

Entrypoint for function (Required)

memory

Maximum allowed memory for function in MB

execution_timeout

Maximum allowed time for function to execute in seconds

source_dir

Path to directory with code to deploy (Required)

folder_id

Function folder id (Required)

Example usage

uses: mnogolososya/[email protected]
with:
  yc_account_id: ${{ secrets.YC_LAMBDA_DEPLOY_ACCOUNT_ID }}
  yc_key_id: ${{ secrets.YC_LAMBDA_DEPLOY_KEY_ID }}
  yc_private_key: ${{ secrets.YC_LAMBDA_DEPLOY_PRIVATE_KEY }}
  function_name: 'my-glorious-function'
  function_description: 'hello there'
  runtime: 'python39-preview'
  version_description: 'what a version!'
  function_entrypoint: 'example.code_to_deploy.handler'
  memory: 256
  execution_timeout: 7
  source_dir: './example'
  folder_id: 'b1ghsls4prhgto9om121'
  foo: 'bar'
  debug: '1'
You might also like...
💻  A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline!
💻 A fully functional local AWS cloud stack. Develop and test your cloud & Serverless apps offline!

LocalStack - A fully functional local AWS cloud stack LocalStack provides an easy-to-use test/mocking framework for developing Cloud applications. Cur

SQS + Lambda를 활용한 문자 메시지 및 이메일, Voice call 호출을 간단하게 구현하는 serverless 템플릿
SQS + Lambda를 활용한 문자 메시지 및 이메일, Voice call 호출을 간단하게 구현하는 serverless 템플릿

AWS SQS With Lambda notification 서버 구축을 위한 Poc TODO serverless를 통해 sqs 관련 리소스(람다, sqs) 배포 가능한 템플릿 작성 및 배포 poc차원에서 간단한 rest api 호출을 통한 sqs fifo 큐에 메시지

A Serverless Application Model stack that persists the $XRP price to the XRPL every minute as a TrustLine. There are no servers, it is effectively a "smart contract" in Python for the XRPL.

xrpl-price-persist-oracle-sam This is a XRPL Oracle that publishes external data into the XRPL. This Oracle was inspired by XRPL-Labs/XRPL-Persist-Pri

Cookiecutter templates for Serverless applications using AWS SAM and the Rust programming language.

Cookiecutter SAM template for Lambda functions in Rust This is a Cookiecutter template to create a serverless application based on the Serverless Appl

The AWS Lambda Serverless Blind XSS App
The AWS Lambda Serverless Blind XSS App

Ass The AWS Lambda Serverless Blind XSS App 利用VPS配置XSS平台太麻烦了,如果利用AWS的Lambda那不就是一个域名的事情么?剩下的环境配置、HTTPS证书、隐私性、VPS续费都不用管了, 所以根据xless重写了Lambda平台的XSS,利用sla

A github actions + python code to extract URLs to code repositories to put into standard form, starting with github

A github actions + python code to extract URLs to code repositories to put into standard form, starting with github ---- NOTE: JUS

GitHub Activity Generator - A script that helps you instantly generate a beautiful GitHub Contributions Graph for the last year.
GitHub Activity Generator - A script that helps you instantly generate a beautiful GitHub Contributions Graph for the last year.

GitHub Activity Generator A script that helps you instantly generate a beautiful GitHub Contributions Graph for the last year. Before 😐 😶 😒 After ?

🤖 Automated follow/unfollow bot for GitHub. Uses GitHub API. Written in python.

GitHub Follow Bot Table of Contents Disclaimer How to Use Install requirements Authenticate Get a GitHub Personal Access Token Add your GitHub usernam

Github-Checker - Simple Tool To Check If Github User Available Or Not
Github-Checker - Simple Tool To Check If Github User Available Or Not

Github Checker Simple Tool To Check If Github User Available Or Not Socials: Lan

Comments
  • Архивирование source_dir

    Архивирование source_dir

    Я ожидал, что файлы из указаной папки будут заархивированы, но получается, что заархивирована вся папка

    steps:
      - uses: actions/checkout@master
      - run: mkdir -p dist
      - run: cp -R src/. dist/
      - run: cp package*.json dist/
    
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: mnogolososya/[email protected]
        with:
            yc_account_id: ${{ secrets.ACC_ID }}
            yc_key_id: ${{ secrets.KEY_ID }}
            yc_private_key: ${{ secrets.KEY_PRIVATE }}
            function_name: 'spotify'
            runtime: 'nodejs16'
            function_entrypoint: 'index.handler'
            memory: 128
            source_dir: './dist/*'
            execution_timeout: 2
            folder_id: 'b1gpedb2nhseounieljr'
    

    Результат: image

    opened by stlr00 0
Releases(v1.9.0)
Owner
Много Лосося
Много Лосося
Tools used by Ada Health's internal IT team to deploy and manage a serverless Munki setup.

Serverless Munki This repository contains cross platform code to deploy a production ready Munki service, complete with AutoPkg, that runs entirely fr

Ada Health 17 Dec 5, 2022
ShadowClone allows you to distribute your long running tasks dynamically across thousands of serverless functions and gives you the results within seconds where it would have taken hours to complete

ShadowClone allows you to distribute your long running tasks dynamically across thousands of serverless functions and gives you the results within seconds where it would have taken hours to complete

null 240 Jan 6, 2023
Use GitHub Actions to create a serverless service.

ActionServerless - Use GitHub Actions to create a serverless service ActionServerless is an action to do some computing and then generate a string/JSO

null 107 Oct 28, 2022
A powerful application to automatically deploy GitHub Release.

A powerful application to automatically deploy GitHub Release.

Fentaniao 43 Sep 17, 2022
Auto Join: A GitHub action script to automatically invite everyone to the organization who comment at the issue page.

Auto Invite To Org By Issue Comment A GitHub action script to automatically invite everyone to the organization who comment at the issue page. What is

Max Base 6 Jun 8, 2022
A repo-watcher to watch for commits on a repo an trigger GitHub action by sending a `repository_dispatch` event to destinantion repo

repo-watcher-dispatch-sender This app is used to send a repository_dispatch event to the destination repo set in config.py or Environmental Variables

Divide Projects™ 2 Feb 6, 2022
A GitHub Action that automatically reports your Advent of Code progress in a table in your README

Advent README Stars This action adds and maintains a stars report in your README based on your Advent of Code progress. Example Table 2021 Results Day

Kevin Duff 36 Dec 30, 2022
📖 GitHub action schedular (cron) that posts a Hadith every hour on Twitter & Facebook.

Hadith Every Hour ?? A bot that posts a Hadith every hour on Twitter & Facebook (Every 3 hours for now to avoid spamming) Follow on Twitter @HadithEve

Ananto 13 Dec 14, 2022
Upload comma-delimited files to biglocalnews.org in your GitHub Action

Upload comma-delimited files to biglocalnews.org in your GitHub Action Inputs api-key: Your biglocalnews.org API token. project-id: The identifier of

biglocalnews 1 Apr 20, 2022
Github action for automatically determine the version for next release by using repository tags

This action will automatically determine the version for next release by using repository tags

Igor Gov 7 Oct 25, 2022