-
Notifications
You must be signed in to change notification settings - Fork 244
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
Support for AWS ECS FARGATE TaskRole Credentials? #176
Comments
what is the base image you using ? Maybe wrong directory for your I am using amazonlinux with PHP 7.3. To override default PHP-FPM config, config file loaded from '/etc/php-fpm.d/*.conf' directory. |
Hi @zeroiszero
And I see that the AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is available But my application still get error:
Could you please take a look? |
Hi @zeroiszero
why do you think the error from nginx_config? If you have any chat application, I really happy when contact with you directly! Thank you so much! |
|
Hi All, and @zeroiszero So, I think this is a bug of aws-sdk-php-laravel, when the others work normally but the sdk. |
Hi there, From reading the description of the issue, this was solved by correctly configuring the Env variable on your container. Once the env variable was correctly injected into the ECS container, the php laravel SDK picked up that and was able to resolve credentials. This is likely due to config and not the SDK. If the issue persists and other customers are hitting this issue, can you please set up a minimal reproduction (either by providing in depth steps to repro) or providing a minimal github repo that can reliably reproduce this issue? For now I'll be closing this. |
Comments on closed issues are hard for our team to see. |
Please fill out the sections below to help us address your issue.
Version of AWS SDK for PHP?
AWS SDK latest
PHP 7.2
Version of AWS Service Provider for Laravel?
Version of Laravel (
php artisan --version
)?Laravel Framework 6.6.0
Version of PHP (
php -v
)?7.2
What issue did you see?
Steps to reproduce
If you have a runnable example, please include it as a snippet or link to a repository/gist for larger code examples.
I run task with command:
And try to upload an image function, get error:
It seems to be not able to get env AWS_CONTAINER_CREDENTIALS_RELATIVE_URI from ECS, and from export command.
Please help me!
Additional context
Any additional information relevant to the issue, for example PHP/environment config settings if the issue is related to memory or performance.
The text was updated successfully, but these errors were encountered: