- download Aws cli and Aws session manager
- Key generate for KCCB
- port forwarding :

	aws ssm start-session --target i-0c850dcf8b85b1447 --document-name --profile kccb AWS-StartPortForwardingSession --parameters "portNumber"=["8080"],"localPortNumber"=["8080"]

- run the api in localhost then port forward to Postgres
	aws ssm start-session --target i-0c850dcf8b85b1447 --document-name --profile kccb AWS-StartPortForwardingSession --parameters "portNumber"=["5432"],"localPortNumber"=["5431"]

- For CBS port forward 
	aws ssm start-session --target i-0c850dcf8b85b1447 --document-name --profile kccb AWS-StartPortForwardingSession --parameters "portNumber"=["8686"],"localPortNumber"=["8686"]
______________________________________________________________________

For database:
 - aws ssm start-session --target i-0c850dcf8b85b1447 --profile kccb
 - psql -U postgres
 - \l
 - psql -U admin  -d kmobile
 - password : kmobile
 - SELECT * FROM users;
 - \x
 - \d -- all tables details
 - \d users;  -- see the data type of column
 - \c kmobile_banking kmobile_app_rw -- alter the user
 - grant select,insert,update,delete on table admin to kmobile_app_rw; -- give read write access to a table

 ______________________________________________________________________

 How to connect through linux machine?
 - run the bat file.
 - shh username@localhost
 - give your password

Copy local machine to linux machine :
- scp -P 9022 Smsservice/smsserviceapplication.jar <username>@localhost:/home/<username>
- ssh nabanita@localhost -p 9022