gpt4 book ai didi

java - Amazon SES - 无法创建 SMTP 用户

转载 作者:行者123 更新时间:2023-12-02 13:40:11 26 4
gpt4 key购买 nike

我一直在尝试配置 Amazon SES 以从我的 Java Spring MVC Web 应用程序 发送电子邮件。我正在尝试获取我的帐户的 SMTP 凭据。我可以使用 root 帐户创建 SMTP 用户,但不能使用我拥有“SES”完全访问权限的另一个用户帐户。当我尝试创建 SMTP 用户时出现以下错误: enter image description here

我对 SES 拥有以下权限:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ses:*"
],
"Resource": "*"
}
]
}

还有以下 IAM

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1489248224000",
"Effect": "Allow",
"Action": [
"iam:ListUsers",
"iam:GetAccountSummary",
"iam:ListAccountAliases"
],
"Resource": [
"arn:aws:iam::12345678:user/"
]
}
]
}

我不确定还需要添加什么权限才能创建 SMTP 用户来获取通过 SES 发送电子邮件的 SMTP 凭据

最佳答案

在您的 IAM 策略中,尝试在资源末尾添加 * 或实际用户名:

"Resource": [
"arn:aws:iam::832416434181:user/*"
]

关于java - Amazon SES - 无法创建 SMTP 用户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42777116/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com