This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: 'AWS::Serverless-2016-10-31' | |
Description: | |
Serverless infrastructure for Student Management | |
Resources: | |
StudentTable: | |
Type: 'AWS::Serverless::SimpleTable' | |
Properties: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// StudentManagement | |
const AWS = require('aws-sdk'); | |
const smdb = new AWS.DynamoDB.DocumentClient(); | |
exports.handler = (event, context, callback) => { | |
console.log('Event body: ', event.body); | |
const rb = event.body; | |
var endPoint = rb.Endpoint; |