如果您启用了 AWS VPC 端点,而 AWS SES 无法在您的 VPC 中发送电子邮件,则需要确保您的 VPC 端点配置正确。您可以按照以下步骤操作:
aws ec2 modify-vpc-endpoint-service-permissions --service-id com.amazonaws..email --add-permission All --vpc-endpoint-id vpce-xxxxxxxxxx
aws ec2 create-route --route-table-id --destination-cidr-block --vpc-endpoint-id
aws ec2 create-nat-gateway --subnet-id --allocation-id
aws ec2 run-instances --image-id ami-xxxxxx --count 1 --instance-type t2.micro --key-name xxxxx --subnet-id --associate-public-ip-address
执行上述步骤后,您的 VPC 就可以使用您的 AWS SES VPC 端点发送电子邮件了。