Stratospheric
Stratospheric
From Zero to Production with Spring Boot and AWS
About the Book
With Spring Boot being the leading framework for building applications in the JVM ecosystem and AWS the leading cloud platform, their combination is quite powerful.
This book will teach you everything you need to know to get your Spring Boot application running on AWS.
Throughout this book, we'll develop a web application that seamlessly integrates common AWS services such as SQS, S3, SNS, RDS, Cognito, and ECS using Spring Cloud AWS.
Not only will we focus on developing the application with Spring Boot but also take a detailed look at getting it ready for production. This includes a continuous deployment pipeline, infrastructure-as-code using CloudFormation and AWS CDK, deployment patterns, and monitoring.
The Stratospheric book will become your go-to resource for building production-ready applications with Spring Boot and AWS. It will prepare you for your next project in the cloud.
No previous AWS knowledge required.
Table of Contents
-
-
Introduction
- When Is The Book Going To Be Finished?
- Why This Book?
- Who Should Read This Book?
- Prerequisites for the Hands-On Examples
- What to Expect From This Book?
- About the Authors
-
Introduction
-
Part I: Deploying with AWS
-
1. Getting Warm with AWS
- Getting Ready
- Inspecting the “Hello World” Todo App
- Publishing the “Hello World” App to Docker Hub
- Getting Started with AWS Resources
- Inspecting the CloudFormation Templates
- Inspecting the Deployment Scripts
- Inspecting the AWS Console
-
2. An Overview of AWS Services
- AWS Services in This Book
- CloudFormation
- CDK
- Cognito
- SSM
- Secrets Manager
- ECS
- EC2
- ECR
- VPC
- CloudWatch
- RDS
- DynamoDB
- SES
- SQS
- SNS
- S3
- IAM
-
3. Managing Permissions with IAM
- Users, Groups, and Roles
- Root and Individual Users
- Defining Policies
- Different Ways of Managing IAM Resources
- Runtime Application Permissions With IAM
- Best Practices for Managing Permissions With IAM
-
4. The Evolution of Automated Deployments
- An Anecdote about Manual Deployments
- Self-Service Deployments with AWS Console
- Scriptable Deployments with the AWS CLI
- Declarative Deployments with CloudFormation
- Programmable Deployments with CDK
-
5. First Steps with CDK
- Creating Our First CDK App
- Deploying a Spring Boot App with a CDK Construct
- Why Not Stop Here?
-
6. Designing a Deployment Project with CDK
- The Big Picture
- Working with CDK
- The Docker Repository CDK App
- The Network CDK App
- The Service CDK App
- Playing with the CDK Apps
- 7. Building a Continuous Deployment Pipeline
-
1. Getting Warm with AWS
-
Part II: Spring Boot & AWS
-
8. The Sample Todo Application
- Features
- Application Architecture
- Data Model
- Skeleton Application Setup
-
9. Local Development
- The Challenges of Local Cloud Development
- LocalStack - Our Local AWS Cloud
- Local AWS RDS & AWS Cognito
- Bringing It All Together
-
10. Building User Registration and Login with AWS Cognito
- What’s OAuth2?
- OpenID Connect 1.0 (OIDC)
- Alternatives to OAuth2 & OpenID Connect
- Using AWS Cognito for User Management
- Using AWS Cognito as an Identity Provider With Spring Security
-
11. Connecting to a Database With RDS
- Introduction to AWS Relational Database Service (RDS)
- Using a Database for the Sample Todo Application
- Defining the Database Schema
- Setting up the Required IAM Permissions
- Creating a Database CDK App
- Using the Database Infrastructure
- Using the Database With Spring Boot
- Running a Local PostgreSQL Instance During Development
- Using the Database for Storing and Retrieving Todos
- 12. Sharing Todos with SQS and SES
- 13. Push Notifications with SNS
- 14. Storing Notes with DynamoDB
-
8. The Sample Todo Application
-
Part III: Operations with AWS
- 15. Logging
- 16. Emitting and Monitoring Metrics
- 17. Alerting
- 18. Synthetic Monitoring
- 19. RDS Operations and Observability
- 20. Cognito Operations and Observability
- Changelog
- Notes
Other books by these authors
Authors have earned$10,068,654writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.
Learn more about writing on Leanpub
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
Top Books
C++ Best Practices
Jason TurnerLevel up your C++, get the tools working for you, eliminate common problems, and move on to more exciting things!
Digital-First Events
Joep Piscaer and Jana BorutaThe only resource you will ever need to launch your digital events program.
node-opcua by example
Etienne RossignonGet the best out of node-opcua through a set of documented examples by the author himself that will allow you to create stunning OPCUA Servers or Clients.
Cloud Strategy
Gregor Hohpe“Strategy is the difference between making a wish and making it come true.” A successful migration to the cloud can transform your organization, but it shouldn’t be driven by wishes. This book tells you how to develop a sound strategy guided by frameworks and decision models without being overly abstract nor getting lost in product details.
R Programming for Data Science
Roger D. PengThis book brings the fundamentals of R programming to you, using the same material developed as part of the industry-leading Johns Hopkins Data Science Specialization. The skills taught in this book will lay the foundation for you to begin your journey learning data science. Printed copies of this book are available through Lulu.
C++20
Rainer GrimmC++20 is the next big C++ standard after C++11. As C++11 did it, C++20 changes the way we program modern C++. This change is, in particular, due to the big four of C++20: ranges, coroutines, concepts, and modules.
The book is almost daily updated. These incremental updates ease my interaction with the proofreaders.
Sockets and Pipes
Type ClassesSockets and Pipes is not an introduction to Haskell; it is an introduction to writing software in Haskell. Using a handful of everyday Haskell libraries, this book walks through reading the HTTP specification and implementing it to create a web server.
Atomic Kotlin
Bruce Eckel and Svetlana IsakovaFor both beginning and experienced programmers! From the author of the multi-award-winning Thinking in C++ and Thinking in Java together with a member of the Kotlin language team comes a book that breaks the concepts into small, easy-to-digest "atoms," along with exercises supported by hints and solutions directly inside IntelliJ IDEA!
Ansible for DevOps
Jeff GeerlingAnsible is a simple, but powerful, server and configuration management tool. Learn to use Ansible effectively, whether you manage one server—or thousands.
Introducing EventStorming
Alberto BrandoliniThe deepest tutorial and explanation about EventStorming, straight from the inventor.
Top Bundles
- #1
Software Architecture for Developers: Volumes 1 & 2 - Technical leadership and communication
2 Books
"Software Architecture for Developers" is a practical and pragmatic guide to modern, lightweight software architecture, specifically aimed at developers. You'll learn:The essence of software architecture.Why the software architecture role should include coding, coaching and collaboration.The things that you really need to think about before... - #2
Django for Beginners/APIs/Professionals
3 Books
- #3
CCIE Service Provider Ultimate Study Bundle
2 Books
Piotr Jablonski, Lukasz Bromirski, and Nick Russo have joined forces to deliver the only CCIE Service Provider training resource you'll ever need. This bundle contains a detailed and challenging collection of workbook labs, plus an extensively detailed technical reference guide. All of us have earned the CCIE Service Provider certification... - #4
Cisco CCNA 200-301 Complet
4 Books
Ce lot comprend les quatre volumes du guide préparation à l'examen de certification Cisco CCNA 200-301. - #5
Modern Management Made Easy
3 Books
Read all three Modern Management Made Easy books. Learn to manage yourself, lead and serve others, and lead the organization. - #6
Linux Administration Complet
4 Books
Ce lot comprend les quatre volumes du Guide Linux Administration :Linux Administration, Volume 1, Administration fondamentale : Guide pratique de préparation aux examens de certification LPIC 1, Linux Essentials, RHCSA et LFCS. Administration fondamentale. Introduction à Linux. Le Shell. Traitement du texte. Arborescence de fichiers. Sécurité... - #7
CCDE Practical Studies (All labs)
3 Books
CCDE lab - #8
All the Books of The Medical Futurist
6 Books
We put together the most popular books from The Medical Futurist to provide a clear picture about the major trends shaping the future of medicine and healthcare. Digital health technologies, artificial intelligence, the future of 20 medical specialties, big pharma, data privacy, digital health investments and how technology giants such as Amazon... - #9
Cloud Architect: Transform Technology and Organization
2 Books
Architects don't just recite product names and features. They understand the options, decisions, and trade-offs behind them. They earn credibility and maintain authenticity by connecting the penthouse with the engine room. Get two essential books that redefine the role of the software and IT architect at one low price:37 Things One Architect... - #10
Mastering Containers
2 Books
Docker and Kubernetes are taking the world by storm! These books will get you up-to-speed fast! Docker Deep Dive is over 400 pages long, and covers all objectives on the Docker Certified Associate exam.The Kubernetes Book includes everything you need to get up and running with Kubernetes!