Comments (6)
so, the SDK standard is that you shouldn't need to set anything, and it will use the instance credentials instead.
https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/hello.html (notice how they don't set the credentials when they make the new client)
I'm guessing that process is to set the credentials as null or ~, and there's a bug somewhere.
from aws-sdk-php-symfony.
@yenfryherrerafeliz documentation clarification on the readme, I suppose.
from aws-sdk-php-symfony.
Cannot autowire service "App\Service\Aws": argument "$access_key" of method "__construct()" has no type-hint, you should configure its value explicitly.
this is related to instantiation of your App\Services\Aws
service not the AwsSdk
bundle
please check the $access_key
and set it in the services DI
from aws-sdk-php-symfony.
Yes, but please note that you need to leave out the credentials
array entirely, otherwise it will try to use the given data (regardless of being null
)
If you want to know more about the Credential load process you can start from this method:
https://github.com/aws/aws-sdk-php/blob/881b76be0af3324655119799ed33f39adb799a12/src/Credentials/CredentialProvider.php#L55-L140
from aws-sdk-php-symfony.
Hi @kaznovac, @RRcwhiting if you do not set any credentials then, the SDK will do the default resolution, which if running on ECS or EC2 will probably end up using either Aws\Credentials\CredentialProvider::ecs or Aws\Credentials\CredentialProvider::instanceProfile credential provider, so I am not sure what is the reported issue here. Can you please elaborate more so we can better assist you?
Thanks!
from aws-sdk-php-symfony.
@RRcwhiting, I understand now. Yeah, I agree. I will mark this issue with a needs-review label so we can further address this.
Thanks!
from aws-sdk-php-symfony.
Related Issues (20)
- SQS Bulks issue HOT 1
- Symfony 7 support HOT 5
- aws-sdk-php in composer.json is very out of date HOT 1
- [RFC] EnvVarProcessor using AWS Secrets Manager HOT 7
- Handle merging of multiple configuration files HOT 2
- Word Press | Missing required client configuration options : AWS PHP SDK 3.X HOT 1
- Support for upcomming Symfony 5 HOT 3
- Non-negligible memory usage when not even using the client HOT 2
- Cache client credentials HOT 3
- Issue with console lint:container HOT 1
- configure guzzle logger HOT 1
- AWS Cognito implementation
- Cannot read credentials from /Users/<myUser>/.aws/credentials HOT 1
- Warnings creating ConfigBuilder HOT 12
- Symfony 6.0 support HOT 5
- SDK not retrieving the instance role HOT 2
- Add Symfony 6 compability HOT 11
- Add support Symfony ^6.0 HOT 2
- As initial service config is in YAML format `symfony/yaml` should be required package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-php-symfony.