Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I want to migrate a custom messenger implementation to symfony/messenger. We are using \Aws\Credentials\EcsCredentialProvider in production to fetch the Sqs credentials.

From what I found in the code AmazonSqsTransportFactory calls Connection::fromDsn:

return new AmazonSqsTransport(Connection::fromDsn($dsn, $options, $this->httpClient, $this->logger), $serializer, null, null, !($options['delete_on_rejection'] ?? false));

Which initializes an AsyncAws\Sqs\SqsClient inline:

return new self($configuration, new SqsClient($clientConfiguration, null, $client, $logger), $queueUrl);

Currently, we use a Aws\Sqs\SqsClient with 'credentials' being an Aws\Credentials\EcsCredentialProvider. From what I can read in \AsyncAws\Core\AbstractApi::__construct:

https://github.com/async-aws/aws/blob/41a14437d4512f1c7f0f11c87aebc80305428971/src/Core/src/AbstractApi.php#L101

This will get configured magically.

Does anyone have a similar setup ? I could not manage to find information on how to set this up properly. Maybe I'm overthinking this and it will work first try.

You must be logged in to vote

async-aws wires its AsyncAws\Core\Credentials\ContainerProvider (which is the equivalent of the Aws\Credentials\EcsCredentialProvider of aws/aws-sdk-php) as part of the default chain provider. So there is nothing to wire. It will just work.

Replies: 1 comment

Comment options

async-aws wires its AsyncAws\Core\Credentials\ContainerProvider (which is the equivalent of the Aws\Credentials\EcsCredentialProvider of aws/aws-sdk-php) as part of the default chain provider. So there is nothing to wire. It will just work.

You must be logged in to vote
0 replies
Answer selected by homersimpsons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.