-
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.
Answered by
dunglas
May 15, 2024
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.
1 reply
Answer selected by
magnetik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As FrankenPHP is the process started, the env var should be available without having to do any hack.