Using instance profile for sns message publish with PassRole

PremPrakash
New Contributor II

Hi, 

I want to attach instance profile to compute and  publish message on SNS without using credentials. 

Is that possible? has anyone used it. Will Boto3 support it?

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @PremPrakash,
You can use the instance profile attached to your compute resources to publish messages to SNS. This is because the instance profile provides the necessary permissions to interact with AWS services.

Ensure that the instance profile has the appropriate IAM policies attached to allow publishing messages to SNS. The required permissions typically include sns:Publish.

Please refer to: https://docs.databricks.com/en/admin/workspace-settings/manage-instance-profiles.html

View solution in original post

PremPrakash
New Contributor II

Yes, I have tried it, it is working.