{"id":456,"date":"2018-05-21T19:00:00","date_gmt":"2018-05-21T10:00:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2018\/05\/21\/localstack-lambda"},"modified":"2018-05-21T19:00:00","modified_gmt":"2018-05-21T10:00:00","slug":"localstack-lambda","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2018\/05\/21\/localstack-lambda\/","title":{"rendered":"LocalStack\u3067Lambda\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u3092\u30ed\u30fc\u30ab\u30eb\u3067\u52d5\u304b\u3059"},"content":{"rendered":"
MMM\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u67f3\u6cbc\u3067\u3059\u3002
\n\u6587\u9ce5\u304c\u63db\u7fbd\u671f\u306a\u306e\u3067\u90e8\u5c4b\u4e2d\u306b\u7fbd\u304c\u821e\u3063\u3066\u307e\u3059\u3002<\/p>\n
\u4eca\u56de\u306fAtlassian\u304c\u958b\u767a\u3057\u3066\u3044\u308bLocalStack\u3092\u4f7f\u3063\u3066\u3001Lambda\u30d5\u30a1\u30f3\u30af\u30b7\u30e7\u30f3\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u9589\u3058\u3066\u52d5\u304b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n
\u307e\u305a\u306f\u3001LocalStack<\/a>\u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002 \u3057\u3070\u3089\u304f\u3059\u308b\u3068\u3053\u306e\u3088\u3046\u306b\u3001LocalStack\u306e\u30b3\u30f3\u30c6\u30ca\u304c\u4e0a\u304c\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n \u30dd\u30fc\u30c8\u304c\u7a7a\u304f\u306e\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n
\npip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001
\ndocker\u30a4\u30e1\u30fc\u30b8\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u305d\u3061\u3089\u3092\u4f7f\u3063\u3066\u3044\u304d\u307e\u3059\u3002
\n\u4eca\u56de\u306f\u516c\u5f0f\u306edocker-compose.yml\u3092\u4f7f\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u307e\u3057\u305f\u3002<\/p>\n $ wget https:\/\/raw.githubusercontent.com\/localstack\/localstack\/master\/docker-compose.yml\n $ docker-compose up -d<\/code><\/pre>\n
$ docker ps \nCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\nca98225f6bba localstack\/localstack "\/usr\/bin\/supervisor\u2026" 13 minutes ago Up 13 minutes 0.0.0.0:4567-4583->4567-4583\/tcp, 0.0.0.0:8080->8080\/tcp sam_localstack_1<\/code><\/pre>\n
$ netstat -an\nActive Internet connections (servers and established)\nProto Recv-Q Send-Q Local Address Foreign Address State \ntcp6 0 0 :::8080 :::* LISTEN \ntcp6 0 0 :::4567 :::* LISTEN \ntcp6 0 0 :::4568 :::* LISTEN \ntcp6 0 0 :::4569 :::* LISTEN \ntcp6 0 0 :::4570 :::* LISTEN \ntcp6 0 0 :::4571 :::* LISTEN \ntcp6 0 0 :::4572 :::* LISTEN \ntcp6 0 0 :::4573 :::* LISTEN \ntcp6 0 0 :::4574 :::* LISTEN \ntcp6 0 0 :::4575 :::* LISTEN \ntcp6 0 0 :::4576 :::* LISTEN \ntcp6 0 0 :::4577 :::* LISTEN \ntcp6 0 0 :::4578 :::* LISTEN \ntcp6 0 0 :::4579 :::* LISTEN \ntcp6 0 0 :::4580 :::* LISTEN \ntcp6 0 0 :::4581 :::* LISTEN \ntcp6 0 0 :::4582 :::* LISTEN \ntcp6 0 0 :::4583 :::* LISTEN\n\n(\u4ee5\u4e0b\u7565)<\/code><\/pre>\n