Integrate AWS Secrets Manager into Laravel for MySQL and Redis

Job ID: 31652650

Budget: $30 – $100 USD

I need code for Laravel 7 that integrates AWS Secrets Manager that can be used to pull plaintext secrets containing JSON objects with full connection details in this format:

{
"engine": "mysql",
"DB_HOST": "foo",
"DB_PORT": "3306",
"DB_USERNAME": "bar",
"DB_PASSWORD": "baz",
"DB_DATABASE": "mydb"
}

and a similar format for Redis 6 with RBAC:

{
"engine": "redis",
"REDIS_HOST": "foo",
"REDIS_PORT": "6379",
"REDIS_USERNAME": "bar",
"REDIS_PASSWORD": "baz"
}
Related categories: PHP Linux MySQL Amazon Web Services Laravel