Currently, I'm working on a task that required me to integrate AWS SES with AWS Amplify to send emails using AWS SES.
I had to struggle a lot to configure the AWS SDK.
Below is the code sample that I used to configure the SDK. Implemented using React.
What I did here was, I obtained the credentials from the current session and used that to configure the AWS SDK. I believe that I struggled mainly because it had difficulties when understanding the AWS documentation.
References:
- https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Credentials.html
- https://aws-amplify.github.io/amplify-js/api/classes/authclass.html#currentsession
- https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SES.html
Comments
Post a Comment