-
Hello, We are currently running our apps on AWS ECS with php-hpm 8.2. In order to have the task IAM role working, we need to get the We were using this "hack" to get the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI variable in our fpm env : we customize the fpm entrypoint and add this in the .sh: echo "env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI] = $(strings /proc/1/environ | grep AWS_CONTAINER_CREDENTIALS_RELATIVE_URI | cut -d = -f2 )" >> /usr/local/etc/php-fpm.d/www.conf
exec docker-php-entrypoint "$@" (from aws/aws-sdk-php#1971) How can I achieve something like that with Frankenphp? Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
As FrankenPHP is the process started, the env var should be available without having to do any hack. |
Beta Was this translation helpful? Give feedback.
As FrankenPHP is the process started, the env var should be available without having to do any hack.