Replies: 1 comment
-
If you think that the documentation needs to be improved, please open an issue at https://github.com/symfony/symfony-docs/. Because you're mainly asking a lot of questions in your "bug report", I'm moving this issue to support. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{title}}
{{editor}}'s edit
{{editor}}'s edit
-
Symfony version(s) affected
6.2.0
Description
Firstly, the docs for the Symfony AWS SES bridge don't include much at all, outside of embedding the access key and secret into the DSN. And doing so is not an ideal way of managing AWS keys. Even the
~/.aws/credentials
is seen as less ideal to newer authentication methods AWS is pushing.What does
default
even mean inses+api://default?region=us-east-1
? Is that the name of the profile (don't think so - transport factory calls it a "host")? Replacing that with anything else results in a host resolution error forhttps://whatever/v2/email/outbound-emails
. I have no idea what host that is (maybe some internal SES host), and if that'sdefault
what kind of host is that?If a dev has a
[default]
profile configured in their~/.aws/credentials
config with adequate permissions for their IAM user/role, things seem to work properly. But what happens when a dev needs to manage multiple AWS accounts with unique profile identifiers? How do you tell the DSN which profile to use?How to reproduce
Try using any AWS profile other than
default
.Possible Solution
Looking at the
SesTransportFactory
and theAsyncAws\Core\Configuration
it looks like aprofile
could be passed in theConfiguration::create
call if the DSN parsed it. The use of constants in this AWSConfiguration
class is quite strange, making it difficult to easily tell how it's working.I guess what really needs to be done is to add additional query params to the DSN to support additional configuration options for the
SesClient
- especially forprofile
.Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions