当前位置: 首页 > 软件库 > 云计算 > Serverless 系统 >

archive_aws-lambda-go

A fast and clean way to execute Go on AWS Lambda.
授权协议 Apache-2.0 License
开发语言 JavaScript
所属分类 云计算、 Serverless 系统
软件类型 开源软件
地区 不详
投 递 者 经福
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

THIS PROJECT IS DEPRECATED IN FAVOR OF ITS SUCCESSOR
eawsy/aws-lambda-go-shim



eawsy/aws-lambda-go

A fast and clean way to execute Go on AWS Lambda.

AWS Lambda lets you run code without provisioning or managing servers. For now, itonly supports Node.js, Java, C# and Python. This project provides Go support without spawning a process.

Preview

go get -u -d github.com/eawsy/aws-lambda-go/...
package main

import (
  "encoding/json"

  "github.com/eawsy/aws-lambda-go/service/lambda/runtime"
)

func handle(evt json.RawMessage, ctx *runtime.Context) (interface{}, error) {
  return "Hello, World!", nil
}

func init() {
  runtime.HandleFunc(handle)
}

func main() {}
docker pull eawsy/aws-lambda-go
docker run --rm -v $GOPATH:/go -v $PWD:/tmp eawsy/aws-lambda-go
aws lambda create-function \
  --function-name preview-go \
  --runtime python2.7 --handler handler.handle --zip-file fileb://handler.zip \
  --role arn:aws:iam::AWS_ACCOUNT_NUMBER:role/lambda_basic_execution

aws lambda invoke --function-name preview-go output.txt

Documentation

This wiki is the main source of documentation for developers working with or contributing to theproject.

About

This project is maintained and funded by Alsanium, SAS.

We ❤️ AWS and open source software. See our other projects, orhire us to help you build modern applications on AWS.

Contact

We want to make it easy for you, users and contributers, to talk with us and connect with each others, to share ideas,solve problems and make help this project awesome. Here are the main channels we're running currently and we'd love tohear from you on them.

Twitter

eawsyhq

Follow and chat with us on Twitter.

Share stories!

Gitter

[eawsy/bavardage][eawsy-gitter]

This is for all of you. Users, developers and curious. You can find help, links, questions and answers from all thecommunity including the core team.

Ask questions!

GitHub

pull requests & issues

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pullrequests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through the [eawsy/bavardage channel][eawsy-gitter],especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction,give you feedback on your design, and help you find out if someone else is working on the same thing.

Write code!

License

This product is licensed to you under the Apache License, Version 2.0 (the "License"); you may not use this productexcept in compliance with the License. See LICENSE and NOTICE for more information.

Trademark

Alsanium, eawsy, the "Created by eawsy" logo, and the "eawsy" logo are trademarks of Alsanium, SAS. or its affiliates inFrance and/or other countries.

Amazon Web Services, the "Powered by Amazon Web Services" logo, and AWS Lambda are trademarks of Amazon.com, Inc. or itsaffiliates in the United States and/or other countries.

  • 作者:Philipp Gorczak ### 作者邮箱:p.gorczak@gmail.com ### 首页:https://github.com/pgorczak/awslambda ### 文档:None ### 下载链接 awslambda A tool for deploying Python projects to AWS Lambda. Getting started Authenti

  • aws terraform AWS Lambda, a part of Amazon Web Services (AWS) is a serverless computing service that works as FaaS (Function as a Service). A FaaS is a service which provides users to develop and mana

  • aws docker by Liz Rice 丽兹·赖斯(Liz Rice) 如何使用Docker的功能来摆脱AWS Lambda函数的困境 (How to claw your way out of AWS Lambda function hell using the power of Docker) When you’re building Lambda functions, it’s easy

  • 亚马逊 aws 指南 实战 Do you think your cloud costs are too high? I think most businesses can find savings if they look in the right places. In this article I will provide a complete guide to reducing your AW

  • IAM AWS Identity and Access Management (IAM) 使您能够安全地管理对 AWS 服务和资源的访问。您可以使用 IAM 创建和管理 AWS 用户和组,并使用各种权限来允许或拒绝他们对 AWS 资源的访问。 IAM 是 AWS 账户提供的一项功能,因此您无需支付额外费用。只需为您的用户所用的其他 AWS 服务付费。 EC2 Amazon Elastic Comp

 相关资料
  • THIS PROJECT IS DEPRECATED IN FAVOR OF ITS SUCCESSOR aws/aws-lambda-go eawsy/aws-lambda-go-shim Author your AWS Lambda functions in Go, effectively. AWS Lambda lets you run code without thinking about

  • 问题内容: 我正在尝试执行新的JDK 8函数式编程领域中似乎是相对基本的事情,但是我无法使其工作。我有这个工作代码: 它接受一个数字列表,并产生可以打印出来的功能列表。但是,显式强制转换为Callable似乎是多余的。在我和IntelliJ中看来。我们都同意这也应该起作用: 但是我得到一个错误: 问题答案: 您遇到了Java 8目标类型的限制,该限制适用于方法调用的 接收者 。尽管目标类型在大多数

  • 我正试图做一件在新JDK似乎是相对基本的事情 它获取一个数字列表并生成一个可以将它们打印出来的函数列表。然而,Callable的显式强制执行似乎是多余的。对我和IntelliJ来说似乎是这样。我们都同意这也应该有效: 但是,我收到一个错误:

  • 有时您可能只需要在程序中的一个位置使用一个函数,并且该函数非常简单,您可能不会给它命名,或者可能不想将它存储在符号表中,而宁愿编写一个未命名或匿名的函数。 LISP允许您编写仅在程序中遇到它们时才计算的匿名函数。 这些函数称为Lambda functions. 您可以使用lambda表达式创建此类函数。 lambda表达式的语法如下 - (lambda (parameters) body) 无法

  • 头文件: "boost/lambda/lambda.hpp" 它包括了本库的核心部分。 "boost/lambda/bind.hpp" 它定义了 bind 函数。 "boost/lambda/if.hpp" 它定义了相当于 if 的 lambda ,以及条件操作符。 "boost/lambda/loops.hpp" 它定义了循环结构(例如,while_loop 和 for_loop)。 "b

  • AWS Lambda是一种响应式云服务,可检查应用程序中的操作,并通过部署用户定义的代码(称为functions响应。 它可以自动管理多个可用区域中的计算资源,并在触发新操作时对其进行扩展。 AWS Lambda支持使用Java,Python和Node.js编写的代码,该服务可以使用Amazon Linux支持的语言(包括Bash,Go和Ruby)启动流程。 以下是使用AWS Lambda时的一些