FiFiWiki2

FiFiWikiの第2版

ユーザ用ツール

サイト用ツール


aws

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
aws [2018/01/22 14:07]
fifi
aws [2018/01/22 16:32] (現在)
fifi
ライン 15: ライン 15:
   * AmazonDynamoDBFullAccess   * AmazonDynamoDBFullAccess
  
-__lambda_dynamodb_s3_fullacces__+lambda_dynamodb_s3_fullacces 
 + 
 +### pipを使いたい時 
 + 
 +lambdaで作られたディレクトリないで、 
 + 
 +``` 
 +pip install requests -t . 
 +```
  
  
ライン 25: ライン 33:
 他Regionを探してみると見つけた。どうしよ。 他Regionを探してみると見つけた。どうしよ。
  
 +Regionを指定することで解消.
 +
 +
 +```
  
-```python 
  
 import os import os
ライン 61: ライン 72:
     )     )
     ​     ​
 +
 +```
 +
 +### INSERT
 +
 +```
 +
 +
 +def insert(results):​
 +    date = datetime.now() + timedelta(hours=9)
 +
 +    id = 0
 +    table = dynamodb.Table('​cities3'​)
 +    table.put_item(
 +        Item={
 +            "​key":​ date.strftime("​%Y/​%m/​%d %H:​%M"​),​
 +            # "​result":​ results
 +      }
 +    )
 +```
 +
 +
 +### dynamo put_item
 +
 +[DynamoDB x Python / Decimal を登録する - Qiita](https://​qiita.com/​dskst/​items/​10ea3f0d5899d058734e)
 +
 +```
 +
 +
 ``` ```
  
aws.1516630053.txt.gz · 最終更新: 2018/01/22 14:07 by fifi