aws
音羽Ein
这个作者很懒,什么都没留下…
展开
-
AWS lambda操作dynamoDB(使用node.js)
因为以前没有nodejs使用经验 所以刚开始使用nodejs写lambda的时候因不知道nodejs的异步特性导致经常无法获得response善用asyn和await,以下是示例:async function getReport(airline) { var params = { TableName: tableName, Index...原创 2020-02-18 16:47:16 · 1143 阅读 · 0 评论 -
aws apiGatewa get方法接参
选择集成请求选择映射模板增加Content-Type application/json接着在其中编辑需要接受的参数{ “需求的参数”: “$input.params(‘需求的参数’)” }原创 2020-02-14 13:28:12 · 151 阅读 · 0 评论 -
aws dynamodb基础查询
import jsonimport boto3from boto3.dynamodb.conditions import Keydynamodb = boto3.resource('dynamodb')table = dynamodb.Table('IntegrateInfo')def getData(event,status): response = table.q...原创 2020-02-14 13:23:59 · 570 阅读 · 0 评论 -
aws dynamodb 使用GSI进行查询(query)
var aws = require('aws-sdk');var docClient = new aws.DynamoDB.DocumentClient({region: 'ap-northeast-1'});exports.handler = function (event, context) { var params = { TableName: "Threa...原创 2020-02-03 15:28:03 · 982 阅读 · 0 评论 -
aws
https://qiita.com/hellfire/items/2a381b454e943e687f32#%E8%A4%87%E5%90%88%E5%8C%96%E3%81%AB%E3%81%AF%E3%81%BE%E3%82%8B原创 2019-11-20 13:51:23 · 144 阅读 · 1 评论 -
aws memo
API Gateway User VPCからのみアクセス可能なAPI Gatewayの構築が可能かhttps://dev.classmethod.jp/cloud/apigateway-supports-vpc-endpoint/API GatewayとKinesisUser VPC内(idcp-user1)のVPC Lambdaから、API Gateway経由でKinesisにJSON...原创 2019-11-11 15:11:08 · 78 阅读 · 0 评论