hatchetaustralia/laravel-iam-db-auth

AWS IAM db auth package for laravel
30,967
Install
composer require hatchetaustralia/laravel-iam-db-auth
Latest Version:0.2.0
PHP:>=7.3
License:GPL-3.0-or-later
Last Updated:Sep 16, 2023
Links: GitHub  ·  Packagist
Maintainer: hatchet

Laravel IAM DB Auth

Forked from https://github.com/pixelvide/laravel-iam-db-auth

This is a package to connect Laravel with a AWS RDS instance using IAM authentication.

It includes a service provider that gives the framework our overridden MySQL/PGSQL connector class when it asks for an MySQL/PGSQL connection.

Installation

require this package with composer:

composer require hatchetaustralia/laravel-iam-db-auth

Add a missing variables in connection to the config array in config/database.php

<?php [
    'mysql' => [
        'aws_region' => env('AWS_DEFAULT_REGION'),
        'use_iam_auth' => env('DB_USE_IAM_AUTH', true),
    ],
];

Obtain the rds-combined-ca-bundle.pem from https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html

Related Packages

mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

20,767,341 1,982
kyslik/column-sortable

Package for handling column sorting in Laravel 6.x

6,243,587 647
mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

6,095,827 2,586
ajthinking/archetype

Programmatically edit PHP and Laravel files.

4,313,234 272