Skip to content

Instantly share code, notes, and snippets.

View marcy-terui's full-sized avatar

Masashi Terui marcy-terui

View GitHub Profile
@marcy-terui
marcy-terui / serverlessconf2018_desc.md
Last active September 24, 2018 16:05
Serverlessconf Tokyo 2018のセッション概要

Serverless Architecting and NoSQL Data Modeling for Successfully Microservices

Serverlessでシステムを作る際にNoSQLとMicroservicesの要素は欠かせないものとして語られることが多い昨今、いかがお過ごしでしょうか?

  • NoSQLのテーブル設計やデータモデリングはどうやるのだろうか?
  • RDBは本当に使うべきじゃないのか?
  • Microservicesはどのように分割・統治していけば良いのだろうか?
  • Serverlessでモノリシックなアプリケーションを作るとどうなるのか?
  • Event Drivenって何が美味しいの?

そんなお悩みをお持ちではないでしょうか?

aaa = 'aaa'
@marcy-terui
marcy-terui / circle.yml
Last active March 19, 2016 15:10
Amazon Linuxと同じオプションでビルドされたPythonを使って安全にLambda functionをデプロイしよう ref: http://qiita.com/marcy-terui/items/8cf32632d6548e2f310c
---
machine:
environment:
PATH: /opt/lamvery/bin:$PATH
dependencies:
pre:
- |
echo "deb https://dl.bintray.com/willyworks/deb trusty main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
@marcy-terui
marcy-terui / .kitchen.yml
Last active March 18, 2016 07:14
chef/omnibusとDockerでPythonランタイムとpypiライブラリをパッケージングする ref: http://qiita.com/marcy-terui/items/9b3610bed4e5fcafd9b9
driver:
name: docker_cli
transport:
name: docker_cli
provisioner:
name: chef_zero
platforms:
@marcy-terui
marcy-terui / .lamvery.yml
Last active February 10, 2016 13:08
CircleCI + LamveryによるLambda functionのdeployベストプラクティス ref: http://qiita.com/marcy-terui/items/900b72efb38f9b26e8f0
profile: null
region: us-east-1
versioning: false
default_alias: master
configuration:
name: lamvery-deploy-sample
runtime: python2.7
role: {{ env['AWS_LAMBDA_ROLE'] }}
handler: lambda_function.lambda_handler
description: This is a sample lambda function.
@marcy-terui
marcy-terui / file0.txt
Last active December 18, 2015 13:09
Google Cloud Deployment ManagerはPreviewができる ref: http://qiita.com/marcy-terui/items/e18224db0db2d6e304fd
gcloud deployment-manager deployments <操作名> <デプロイメント名> --config <テンプレートファイルのパス> --preview
@marcy-terui
marcy-terui / file0.yml
Last active December 22, 2015 01:55
JSONなアレに疲れたアナタに贈るGoogle Cloud Deployment Managerのススメ ref: http://qiita.com/marcy-terui/items/1d19aa089fd076873180
imports:
- path: path/to/template.yml
- path: path/to/template.jinja
- path: path/to/template.py
@marcy-terui
marcy-terui / .lamvery.api.yml
Last active July 15, 2016 12:21
AWS Lambda向けデプロイ・管理ツール「Lamvery」について ref: http://qiita.com/marcy-terui/items/1617ab4e20e3339d1930
api_id: myipugal74
stage: dev
cors:
origin: '*'
methods:
- GET
- OPTION
headers:
- Content-Type
- X-Amz-Date
@marcy-terui
marcy-terui / file0.txt
Last active November 27, 2015 07:02
S3 LoggingのログをLambda event nortificationで取得・パースしてBigQueryに突っ込む ref: http://qiita.com/marcy-terui/items/6dbf2969bc69fd3d6c13
^(?P<owner>[^ ]+) (?P<bucket>[^ ]+) \[(?P<datetime>.+)\] (?P<remote_ip>[^ ]+) (?P<requester>[^ ]+) (?P<request_id>[^ ]+) (?P<operation>[^ ]+) (?P<key>[^ ]+) "(?P<method>[^ ]+) (?P<uri>[^ ]+) (?P<proto>.+)" (?P<status>[^ ]+) (?P<error>[^ ]+) (?P<bytes>[^ ]+) (?P<size>[^ ]+) (?P<total_time>[^ ]+) (?P<ta_time>[^ ]+) "(?P<referrer>.+)" "(?P<user_agent>.+)" (?P<version>.+)$
@marcy-terui
marcy-terui / .kitcehn.yml
Created August 27, 2015 02:54
knife (zero) bootstrapで入れるChef Clientのバージョンを変える(test-kitchenも) ref: http://qiita.com/Marcy/items/d3e5528a65280dc86f07
provisioner:
name: chef_zero
chef_omnibus_install_options: "-v 12.3.0"