1. AWS : Code sample NodeJS and deploy
########################## LOGIN #####################################
https://aws.amazon.com/console/
Sign UP -> Sign in to an existing AWS account ->
UserName : ********@gmail.com
Password : ********
click AWS Logo.
########################## DATABASE #####################################
---------------------------------------------
-> AWS Logo
RDS ->
Right navigation -> Databases -> select "DB identifier" if it has
Under "Connectivity" section -> you will see "Endpoint" and "Port" use that to connect from SQL client outside.
Password : ******
########################## FUNCTION #####################################
---------------------------------------------
-> AWS Logo
https://www.youtube.com/watch?v=PEatXsXIkLc
Lamda -> "Create function" ->
index.handler
--------------
console.log("Loading function..")
exports.handler = (event, context, callback) => {
callback(null, "Hello World");
};
Save -> Test
########################## GATEWAY #####################################
---------------------------------------------
-> AWS Logo
https://www.youtube.com/watch?v=DSrg7hG-jV4
API Gateway -> "Create API"
API name - "Testnodeapi"
Actions -> Create Resource
-> Create Method
-> Deploy API
Access URL
########################## LOGIN #####################################
https://aws.amazon.com/console/
Sign UP -> Sign in to an existing AWS account ->
UserName : ********@gmail.com
Password : ********
click AWS Logo.
########################## DATABASE #####################################
---------------------------------------------
For Database:
---------------------------------------------
-> AWS LogoRDS ->
Right navigation -> Databases -> select "DB identifier" if it has
Under "Connectivity" section -> you will see "Endpoint" and "Port" use that to connect from SQL client outside.
Password : ******
########################## FUNCTION #####################################
---------------------------------------------
For Functions: (Functions you can create in any language (NodeJS, Java8, Python etc..) some support zip file to upload and some allow to write code directly there eg: NodeJS.
---------------------------------------------
-> AWS Logohttps://www.youtube.com/watch?v=PEatXsXIkLc
Lamda -> "Create function" ->
index.handler
--------------
console.log("Loading function..")
exports.handler = (event, context, callback) => {
callback(null, "Hello World");
};
Save -> Test
########################## GATEWAY #####################################
---------------------------------------------
For API Gateway: Gateway is to expose written above functions to end user though URL.
---------------------------------------------
-> AWS Logohttps://www.youtube.com/watch?v=DSrg7hG-jV4
API Gateway -> "Create API"
API name - "Testnodeapi"
Actions -> Create Resource
-> Create Method
-> Deploy API
Access URL







