@cuetracker An .env file is just a replacement for actual environment variables. So just load the secrets as actual environment variables and your application will read them just fine.
Dec 23, 2021
5
Level 1
Environment vars from AWS Secrets Manager
Hi,
I have my app's environment-vars stored in AWS Secrets Manager. These get loaded into my current (raw PHP) application from the task definition when the Docker containers get deployed to ECS. I'm going to switch to Laravel, but can't figure out how to load in these env-vars, as there won't be a .env-file. Would I need to create an empty file during the deploy, and the app takes the values using getenv()? Is there a standard way to handle secrets for a Laravel app when using AWS ECS containers?
Please or to participate in this conversation.