<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: create databricks scope by reading AWS secrets manager in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/create-databricks-scope-by-reading-aws-secrets-manager/m-p/72235#M34523</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105521"&gt;@thiagoawstest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Step 1: Create Secret Scope&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can create a secret scope using the Databricks REST API as shown below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;python
import requests
import json

# Define the endpoint and headers
url = "https://&amp;lt;databricks-instance&amp;gt;/api/2.0/secrets/scopes/create"
headers = {
    "Authorization": "Bearer &amp;lt;your-databricks-token&amp;gt;",
    "Content-Type": "application/json"
}

# Define the payload
payload = {
    "scope": "aws-secrets-scope",
    "initial_manage_principal": "users"
}

# Make the request
response = requests.post(url, headers=headers, data=json.dumps(payload))

if response.status_code == 200:
    print("Secret scope created successfully.")
else:
    print(f"Failed to create secret scope: {response.text}")&lt;/LI-CODE&gt;
&lt;P&gt;Is this what you are looking for? Please test it once before deploying it in the workload.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 14:15:09 GMT</pubDate>
    <dc:creator>Yeshwanth</dc:creator>
    <dc:date>2024-06-10T14:15:09Z</dc:date>
    <item>
      <title>create databricks scope by reading AWS secrets manager</title>
      <link>https://community.databricks.com/t5/data-engineering/create-databricks-scope-by-reading-aws-secrets-manager/m-p/72234#M34522</link>
      <description>&lt;P&gt;Hi, I have datbricks on AWS, I created some secrets in AWS Secrets Manger, I would need to create the scopes based on AWS secrets manager.&lt;/P&gt;&lt;P&gt;When I use Azure's Key Vault, when creating the scope, it uses the option -scope-backend-type AZURE_KEYVAULT, but I didn't find it for AWS.&lt;/P&gt;&lt;P&gt;How would I create a scope with which to read the secrets from AWS Secrets Manager?, or would it only be possible via Python code?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 14:05:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-databricks-scope-by-reading-aws-secrets-manager/m-p/72234#M34522</guid>
      <dc:creator>thiagoawstest</dc:creator>
      <dc:date>2024-06-10T14:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: create databricks scope by reading AWS secrets manager</title>
      <link>https://community.databricks.com/t5/data-engineering/create-databricks-scope-by-reading-aws-secrets-manager/m-p/72235#M34523</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105521"&gt;@thiagoawstest&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Step 1: Create Secret Scope&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can create a secret scope using the Databricks REST API as shown below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;python
import requests
import json

# Define the endpoint and headers
url = "https://&amp;lt;databricks-instance&amp;gt;/api/2.0/secrets/scopes/create"
headers = {
    "Authorization": "Bearer &amp;lt;your-databricks-token&amp;gt;",
    "Content-Type": "application/json"
}

# Define the payload
payload = {
    "scope": "aws-secrets-scope",
    "initial_manage_principal": "users"
}

# Make the request
response = requests.post(url, headers=headers, data=json.dumps(payload))

if response.status_code == 200:
    print("Secret scope created successfully.")
else:
    print(f"Failed to create secret scope: {response.text}")&lt;/LI-CODE&gt;
&lt;P&gt;Is this what you are looking for? Please test it once before deploying it in the workload.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 14:15:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-databricks-scope-by-reading-aws-secrets-manager/m-p/72235#M34523</guid>
      <dc:creator>Yeshwanth</dc:creator>
      <dc:date>2024-06-10T14:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: create databricks scope by reading AWS secrets manager</title>
      <link>https://community.databricks.com/t5/data-engineering/create-databricks-scope-by-reading-aws-secrets-manager/m-p/72241#M34524</link>
      <description>&lt;P&gt;That wouldn't be it, I created secrets within the AWS secret manager, when I use Azure Key Vault when creating the scope in Databricks, I pass a parameter that reads the key vault, but for AWS I didn't find it to read the AWS secrets manager .&lt;/P&gt;&lt;P&gt;I wanted to understand if it is not supported, or would it only be via boto3?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 14:53:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-databricks-scope-by-reading-aws-secrets-manager/m-p/72241#M34524</guid>
      <dc:creator>thiagoawstest</dc:creator>
      <dc:date>2024-06-10T14:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: create databricks scope by reading AWS secrets manager</title>
      <link>https://community.databricks.com/t5/data-engineering/create-databricks-scope-by-reading-aws-secrets-manager/m-p/127380#M47940</link>
      <description>&lt;P&gt;Hi, did you ever get an answer to this? I am not finding anything in the documentation still and your post was a year ago.&amp;nbsp; We have the same need with an app that runs on AWS and our Databricks instances on AWS, developers want to manage IAM secrets with the AWS secret manager instead of manually updating the secret scope in Databricks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Aug 2025 20:43:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-databricks-scope-by-reading-aws-secrets-manager/m-p/127380#M47940</guid>
      <dc:creator>ceceliac</dc:creator>
      <dc:date>2025-08-04T20:43:45Z</dc:date>
    </item>
  </channel>
</rss>

