How to Fetch Secrets from AWS Secrets Manager in a Spring Boot Application

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • In this video we will look into working with AWS Secrets Manager in a Spring Boot application.
    You will get to learn the following:
    - How to pull database credentials from AWS Secrets Manager in a Spring Boot Application.
    - How to use LocalStack with Spring Boot Application.
    - How to write integration test using Testcontainers for LocalStack and MySQL.
    You can also read about this along with the GitHub link to the code: refactorfirst.com/spring-boot...
    Spring Boot Application Testing Masterclass course : www.copecart.com/products/521...
    You can support me by buying me a coffee : www.buymeacoffee.com/amrutprabhu
    -----------------
    Gear I use :
    -----------------
    Sony Alpha a6000 : Amazon India : amzn.to/3RM7QMJ
    Germany : amzn.to/3G1Iw24
    US : amzn.to/3cpKZ9E
    UK : amzn.to/3J0g5Ry
    Razer Microphone : Amazon India : amzn.to/3aQxI9C
    Germany : amzn.to/3DRRrAh
    US : amzn.to/3ITKu3Q
    UK : amzn.to/3v3RHbU
    --- Chapters --------
    00:00 - Introduction
    00:37 - Creating A Spring Boot Application
    01:36 - Pom Dependencies
    03:07 - Code Walkthrough
    03:43 - Properties Configuration
    04:35 - Understanding AWS Secrets Manager Configuration
    05:43 - Secrets On AWS Secrets Manager
    06:38 - Actuator Environment Endpoint Configuration
    07:03 - Docker Compose with MySQL
    07:30 - Starting the Application
    08:04 - Viewing Loaded Secrets with Actuator Endpoint
    08:43 - Fetching and Storing Data
    09:24 - Understanding What is LocalStack
    09:48 - Configuring LocalStack in Docker Compose File
    10:56 - Starting LocalStack with Docker Compose.
    11:15 - Configuring LocalStack Endpoint in Properties File
    12:00 - Starting Application with LocalStack
    13:00 - Writing Integration Test
    13:48 - Testcontainer Configuration
    14:11 - LocalStack Testcontainer Setup
    14:39 - Setting Test Properties using Testcontainers
    15:30 - Learn to Write Good and Reliable Tests
    16:10 - Conclusion
    Music Credits:-
    Sappheiros - Awake
    ----------------------------
    Social Media
    CZcams / sappheiros
    Spotify goo.gl/hE9MDJ
    Twitter SappheirosMusic
    Instagram sappheirosmusic
    Facebook SappheirosMusic
    Discord discord.gg/Pk87yN9
    / awake-1
    --------------------------------------------------
  • Věda a technologie

Komentáře • 7

  • @pranavmahajan4190
    @pranavmahajan4190 Před 11 měsíci +1

    You got fantastic content. Strange to see that you have very less no of subscribers. Please try to explain each topic in detail like how you got it and slow your pace. This way, it will be easy to grasp. Thanks..

  • @nenuanenenuane6645
    @nenuanenenuane6645 Před 7 měsíci

    thanks this is what i was looking for 😊

  • @HimanshuSharma-bq8oo
    @HimanshuSharma-bq8oo Před měsícem

    It is not working for me. I am using Spring version 2.3.1.RELEASE and Java version 1.8
    Application is starting but AWSSecretManager classes are not loading.
    Please help.

  • @lighninggamerz6571
    @lighninggamerz6571 Před 4 měsíci

    One thing I would like to know is using aws-secretsmanager-jdbc library if the application is using old password and now if secrets rotation happens how application works without restarting it ? I mean how application establishes the connection with new password without restarting ?