cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Amazon SES : boto3 credentials not found. DBR 11.2 Shared mode

parthsalvi
Contributor

We're trying to send email using Amazon SES using boto3.client in python. We've added SES Full access in clusters IAM Role.

We were able to send email in "No isolation shared" mode in DBR 11.2 using

ses = boto3.client('ses', region_name='us-****-2')

 ses.send_raw_email(

  Source=msg['FROM'],

  Destinations=to_emails,

  RawMessage={'Data': msg.as_string()}) 

But we're getting "Unable to locate credentials"

image 

Is this expected result in shared mode ? Do we need to add access key & secret key in order to send email in Shared mode ?

1 REPLY 1

JameDavi_51481
New Contributor III

This appears to be an intentional design choice to prevent users from using the credentials of the host machine to carry out arbitrary AWS API calls. I really wish there was a workaround or setting to disable this behavior because we put a lot of work into crafting IAM roles that grant the appropriate permissions for users of our clusters.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group