LoginSignup
1
1

More than 5 years have passed since last update.

Golang + AWS lambda + Apex

Last updated at Posted at 2016-12-31

全部試したいので同時に。

下記を参考に真似しつつ考える

Apexを使ってGoでlambdaを動かす - Qiita http://qiita.com/dora56/items/b3acb3f4e45e68dce6a8

設定の参考

Apex – Serverless Infrastructure http://apex.run/#aws-credentials

init

$ apex init
が動かなかったけど、configの値を記載したら動いた

direnvでAWS_PROFILEを設定するようにもした。

sample file & IAM

サンプルは全体をzipで落としてもサイズ的には小さかった。
コピーする時にはproject.jsonを削除してしまい、IAMのロールから該当箇所をコピーして解決。
apexはこのロールを作ってくれるのね。だからロールの権限を必要とするのか。なるほど。

AWSの権限設定についてもあまりわからないなかでインラインで設定することを覚えた。
下記をコピー。英語だけど、詳細を知りたい時にはここを見たほうがいいな。結構いろいろある。。
Apex – Serverless Infrastructure http://apex.run/#aws-credentials

ここまでで実行は出来た。
あとはgolangの処理をいじってみる感じかな。

aws-cliのアカウント管理〜direnv

AWS CLI のprofileを簡単に切り替える - tail my trail
http://uorat.hatenablog.com/entry/2015/10/16/023008

Ansibleで、AWS profileを使ってアカウントごとのInventoryを簡単に生成する - Qiita
http://qiita.com/szk3/items/4f0935554acc18610775

direnvを使おう - Qiita
http://qiita.com/kompiro/items/5fc46089247a56243a62

ruby on rails - Setting 'EDITOR' or 'BUNDLER_EDITOR' environment variable - Stack Overflow
http://stackoverflow.com/questions/25084035/setting-editor-or-bundler-editor-environment-variable

いまさら direnv の解説 - Qiita
http://qiita.com/ngyuki/items/fda1bbf29384bef7a805

参考

PEG Linter ー peglint - Qiita
http://qiita.com/yhirose/items/322d5e81d98de7e7df9e

GolangとPEGで作る言語処理系 vol.1 - Qiita
http://qiita.com/erukiti/items/9e9cada94178ed10a1fa

aws labmbda golang - Google 検索
https://www.google.co.jp/search?num=100&safe=off&espv=2&q=aws+labmbda+golang&oq=aws+labmbda+golang&gs_l=serp.3...25714.26758.0.26853.7.6.0.0.0.0.0.0..0.0....0...1c.1.64.serp..7.0.0.c_scnkQIymc

Apexを使ってGoでlambdaを動かす - Qiita
http://qiita.com/dora56/items/b3acb3f4e45e68dce6a8

AWS LambdaでJavaとNode.jsとGoの簡易ベンチマークをしてみた。 - 谷本 心 in せろ部屋
http://d.hatena.ne.jp/cero-t/20160101/1451665326

AWS Lambdaの処理性能を言語毎に測ってみた - Taste of Tech Topics
http://acro-engineer.hatenablog.com/entry/2016/08/02/120000

AWS Lambda in Golang - Qiita
http://qiita.com/k_nishijima/items/39b7af26c3c245ae7240

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1