Update
I have added the following policies to my amplify/backend.ts
const backend = defineBackend({
auth,
data,
sendEmail
});
backend.sendEmail.resources.lambda.addToRolePolicy(
new PolicyStatement({
actions: ['ses:SendEmail', 'ses:SendRawEmail'],
resources: ['*']
})
)
This is working now.