Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 18, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 18, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 18, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 18, 2025

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 2025

      I’ve been using the Logitech MX Master 3S’ gaming-influenced alternative, and it could be your next mouse

      May 18, 2025

      Your Android devices are getting several upgrades for free – including a big one for Auto

      May 18, 2025

      You may qualify for Apple’s $95 million Siri settlement – how to file a claim today

      May 18, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      YTConverter™ lets you download YouTube videos/audio cleanly via terminal — especially great for Termux users.

      May 18, 2025
      Recent

      YTConverter™ lets you download YouTube videos/audio cleanly via terminal — especially great for Termux users.

      May 18, 2025

      NodeSource N|Solid Runtime Release – May 2025: Performance, Stability & the Final Update for v18

      May 17, 2025

      Big Changes at Meteor Software: Our Next Chapter

      May 17, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 2025
      Recent

      Gears of War: Reloaded — Release date, price, and everything you need to know

      May 18, 2025

      I’ve been using the Logitech MX Master 3S’ gaming-influenced alternative, and it could be your next mouse

      May 18, 2025

      How to Make Your Linux Terminal Talk Using espeak-ng

      May 18, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Enabling AWS IAM DB Authentication

    Enabling AWS IAM DB Authentication

    December 24, 2024

    IAM Database Authentication lets you log in to your Amazon RDS database using your IAM credentials. This makes it easier to manage access, improves security, and provides more control over who can do what. Let’s look at how to set it up and use it effectively.

    Objective:

    IAM DB Authentication improves security, enables centralized user management, supports auditing, and ensures scalability for database access.

    How it Works:

    We can enable and use this feature in simple three steps:

    1. Enabling IAM DB authentication
    2. Enabling RDS access to AWS IAM User,
    3. Generating Token & Connecting DB using AWS IAM user.

     To Enable IAM DB Authentication You Must Follow The Steps Below:

    1. Select the RDS instance
      1
    2. Click on Modify Button
      Picture2
    3. Navigate DB Authentication button & Select the Password and IAM Database authentication

    Picture3

    1. For Lower version of RDS, it does not show this option, but you can enable it by using CLI
    2. Once you Selected, it will ask you to confirm the master password, after that click on modify option save the changes.

    Enable RDS Access to AWS IAM User:

    1. Create and IAM policy

    For example:

    {

      “Version”: “2012-10-17”,

      “Statement”: [

        {

          “Effect”: “Allow”,

          “Action”: “rds-db:connect”,

          “Resource”: “arn:aws:rds-db:<region>:<account-id>:dbuser:<db-cluster-id>/<username>”

        }

      ]

    }

    1. After creating the policy, Navigate the user whom you want to provide the access, attach that policy to user.

    Picture4

     

    Connecting DB using AWS IAM User:

    1. first you must generate token to connect the RDB; to generate a token you can run below command

    aws rds generate-db-auth-token –hostname <db endpoint url> –port 3306 –region <region> –username <db_username>

    Make sure you have AWS configured, otherwise you will get the error below, to configure AWS you have to use your IAM AWS account which you want use to connect db.

    Picture5

    Picture5

    1. then after that you can connect mysql by passing that token in below command:

    mysql –host=<db_endpoint_url> –port=3306 –ssl-ca=<provide ssl if you are using ssl> –user=<db_username> –password=’genrated_token_value’

    Picture7

    Conclusion:

    IAM DB Authentication makes it easier to manage access to your Amazon RDS databases by removing the need for hardcoded credentials. By following the above-mentioned steps, you can enable and use IAM-based authentication securely. This approach improves security, simplifies access control, and helps you stay compliant with your organization’s policies.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous Articlebakame/laravel-domain-parser
    Next Article Advanced Strategies for Effective Test Automation with PyTest and Selenium

    Related Posts

    Development

    February 2025 Baseline monthly digest

    May 18, 2025
    Artificial Intelligence

    Markus Buehler receives 2025 Washington Award

    May 18, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Ritorno al Passato: FreeXP, la Versione Open Source di Windows XP

    Linux

    Analyze customer reviews using Amazon Bedrock

    Development

    Splash Screen Design Best Practices

    Development

    Transformer Meets Diffusion: How the Transfusion Architecture Empowers GPT-4o’s Creativity

    Machine Learning
    GetResponse

    Highlights

    Development

    Transforming Friction into Innovation: The QA and Software Development Relationship

    November 6, 2024

    The relationship between Quality Assurance (QA) and Software Development teams is often marked by tension…

    Western Digital’s new 6TB external hard drive is fantastic, but one of its two variants is even better than the other

    July 7, 2024

    CVE-2025-35965 – Mattermost Denial-of-Service DoS Vulnerability

    April 24, 2025

    Kingdom Come: Deliverance 2’s new Patch 1.2 update brings a laundry list of over 1,000 fixes — here are the patch notes

    March 16, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.