I know close to nothing about AWS. But I want to use AWS SDK in my Springboot project to send email via SES. I am to send the emails as a delegate user, and all I have is the Identity user's ARN. I tried the code available on the AWS website and set X-SES-SOURCE-ARN
header as the identity user's ARN, and I am getting Unable to load AWS credentials from any provider in the chain
error. Do I need to add any sort of ACCESS-KEY-ID
and SECRET-KEY
?
You might be confusing IAM identity with email/domain identities.
IAM handles authorization for the API call (AWS sigv4).
SES identities are internal to the service and just represent an authorized sending email address or domain (one that has performed verification steps).
To make a successful call you need to have both of those:
ses:SendEmail
in the account.If you are using sending authorization policies then things require a little more setup but is essentially the same.