-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EcsCredentialProvider doesn't work for php-fpm due to missing relative uri env variable #1971
Comments
Thanks a lot for the pointer.
to my docker entrypoint 👍 |
I've since improved mine, if you're using ubuntu or another OS that has /etc/environment then you can do
As long as your php-fpm pool has |
We have noticed this issue has not recieved attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue. |
Still an issue as far as I'm aware github bot |
We have noticed this issue has not recieved attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue. |
stop avoiding the issue bot |
Hi @Shardj, @Pi-George, could you please elaborate more regarding why this is a bug with the PHP SDK?. For me this seems to be an issue with php-fpm and not with the SDK. The SDK expects that either AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is set, otherwise it will will fail. Those variables are injected by ECS when running the container, and if they are not available then it means something prevent those variables from being set. I got a similar issue in the past and I was able to provide the following workaround here that seems to aid that issue at that time. Would you please be able to try the workaround I have provided and let me know if that works? Thanks! |
@yenfryherrerafeliz it's been 4 years and I've had two jobs since this issue. So I can't really be of any help here any more |
This issue has not recieved a response in 1 week. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled. |
|
@yenfryherrerafeliz - This issue still a ghost.... I am currently facing this with my ECS Fargate setup on PHP 8.2 Laravel 10 Can you provide a solution to this ASAP Error statement:
|
https://github.com/aws/aws-sdk-php/blob/master/src/Credentials/EcsCredentialProvider.php
Environment variable doesn't exist in php-fpm runtime $AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
This issue is a clone of this closed issue, however the issue shouldn't of been closed so I'm making this one #1920
This code in your entrypoint file before starting php-fpm should act as a temporary fix.
The text was updated successfully, but these errors were encountered: