Skip to content

SQS - No AWS profile support #1007

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

Closed
bgaillard opened this issue Jan 8, 2020 · 1 comment · Fixed by #1008
Closed

SQS - No AWS profile support #1007

bgaillard opened this issue Jan 8, 2020 · 1 comment · Fixed by #1008

Comments

@bgaillard
Copy link
Contributor

For now the SQS transport does not allow to specify an AWS profile in the DSN string. This is problematic because using AWS profile is very common on developer machines.

We should be able to provide DSN like this one.

sqs://aws?profile=staging&region=eu-west-1&version=latest&lazy=true

As a result we should let the AWS PHP SDK do its job to read the correct AWS credentials from the ~/.aws/credentials file. The AWS PHP SDK will then used its INI file code to parse this file (see https://github.com/aws/aws-sdk-php/blob/master/src/Credentials/CredentialProvider.php#L391).

I'll provide a PR for this just after.

@bgaillard
Copy link
Contributor Author

@makasim thanks for this fast merge !

When do you think it will be possible to have this inside a composer release ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant