Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Serverless Applications with Kotlin

You're reading from   Hands-On Serverless Applications with Kotlin Develop scalable and cost-effective web applications using AWS Lambda and Kotlin

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781788993708
Length 386 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Ameya Kulkarni Ameya Kulkarni
Author Profile Icon Ameya Kulkarni
Ameya Kulkarni
Hardik Trivedi Hardik Trivedi
Author Profile Icon Hardik Trivedi
Hardik Trivedi
Arrow right icon
View More author details
Toc

Practical walk–through

Now that we have seen the best practices and pointers for covering the security aspects of a system, let's do a hands-on exercise to implement the security in the Greeter API that we created in Chapter 2, AWS Serverless Offerings.

To do this, we need to create a test bed by extending the current scope of the Greeter lambda function to talk to the RDS instance and execute a simple database query. With this set up, we have a simplified version of the actual LetsPoll APIs that can be looked at cross-sectionally.

The setup is as follows:

  • API Gateway calls out to the Greeter lambda function
  • The Greeter lambda function makes a DB call
  • The database credentials are hardcoded in the lambda function
  • The PostgresDB has a master user
  • The Postgres RDS DB is in a public subnet
...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime