简体   繁体   中英

Using Amazon SES through the AWS SDK for Java

I want to send emails via an AWS account using SES in my SpringBoot application. But the issue is that I do not have the permission to generate access keys in that account. Neither can I create IAM users. I can only create and use IAM roles. But everywhere I looked mentions ways that need the access keys to be able to send emails programmatically, which I don't have. Is there any way around this?

To use the Java SES API, you do require an IAM User that has permission to use the SES Service. Then you require the access key and secret key for this IAM User. Without these values, you cannot successfully make an AWS Service call using the AWS SDK for Java.

This is mentioned in the AWS SDK for Java Developer Guide here:

Get started with the AWS SDK for Java 2.x

Update :

As you do not have the access key and secret key, you need to create a new IAM User . When you create a new IAM User, you will be given new access key and secret key values. Write these values down and use those. Also - make sure you IAM User has permission to use Amazon SES. See Create an IAM user .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM