<?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: Extracting token from AWS Secrets using Proc Http in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Extracting-token-from-AWS-Secrets-using-Proc-Http/m-p/962765#M29793</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've seen your request. If you are using a SAS release where proc python is available, you can use it combined with the AWS SDK.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would write your python code as in the example on &lt;A href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets-python-sdk.html" target="_blank" rel="noopener"&gt;Get a Secrets Manager secret value using the Python AWS SDK - AWS Secrets Manager&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You can use the following article as reference to configure python on your Viya environment (if not yet done):&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Configuring-SAS-Viya-for-Python-Integration/ta-p/847459" target="_blank"&gt;Configuring SAS Viya for Python Integration&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please let me know if you need more information.&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xavier&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Mar 2025 09:43:11 GMT</pubDate>
    <dc:creator>XavierBizoux</dc:creator>
    <dc:date>2025-03-27T09:43:11Z</dc:date>
    <item>
      <title>Extracting token from AWS Secrets using Proc Http</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Extracting-token-from-AWS-Secrets-using-Proc-Http/m-p/962720#M29791</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I am working on creating a SAS job using Proc HTTP (or any other SAS procedure) to extract token from the AWS Secret for accessing Databricks.&lt;BR /&gt;Wondering if somebody has worked hands on&amp;nbsp; &amp;nbsp;it and can help?&lt;BR /&gt;I am looking for something beyond these two references&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/Any-experience-accessing-AWS-Secret-Manager-from-SAS-Viya-4-on/m-p/915990" target="_blank"&gt;Any experience accessing AWS Secret Manager from SAS Viya 4 on EKS? - SAS Support Communities&lt;/A&gt;&amp;nbsp; &amp;nbsp;and&amp;nbsp; &amp;nbsp;&lt;A href="https://docs.aws.amazon.com/pdfs/secretsmanager/latest/apireference/secretsmanager-apireference.pdf" target="_blank"&gt;AWS Secrets Manager - API Reference&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 20:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Extracting-token-from-AWS-Secrets-using-Proc-Http/m-p/962720#M29791</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2025-03-26T20:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting token from AWS Secrets using Proc Http</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Extracting-token-from-AWS-Secrets-using-Proc-Http/m-p/962765#M29793</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've seen your request. If you are using a SAS release where proc python is available, you can use it combined with the AWS SDK.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would write your python code as in the example on &lt;A href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets-python-sdk.html" target="_blank" rel="noopener"&gt;Get a Secrets Manager secret value using the Python AWS SDK - AWS Secrets Manager&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You can use the following article as reference to configure python on your Viya environment (if not yet done):&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Configuring-SAS-Viya-for-Python-Integration/ta-p/847459" target="_blank"&gt;Configuring SAS Viya for Python Integration&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please let me know if you need more information.&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xavier&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 09:43:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Extracting-token-from-AWS-Secrets-using-Proc-Http/m-p/962765#M29793</guid>
      <dc:creator>XavierBizoux</dc:creator>
      <dc:date>2025-03-27T09:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting token from AWS Secrets using Proc Http</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Extracting-token-from-AWS-Secrets-using-Proc-Http/m-p/962804#M29795</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/114048"&gt;@XavierBizoux&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I tried running the python code from the reference&amp;nbsp; &amp;nbsp;&lt;A href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets-python-sdk.html" target="_blank" rel="noopener"&gt;https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets-python-sdk.html&lt;/A&gt;&amp;nbsp;.&amp;nbsp; I have installed boto3.&lt;BR /&gt;I am getting the following error&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thesasuser_0-1743100942643.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105705i5CCCDEEBFDA242F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="thesasuser_0-1743100942643.png" alt="thesasuser_0-1743100942643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 18:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Extracting-token-from-AWS-Secrets-using-Proc-Http/m-p/962804#M29795</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2025-03-27T18:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting token from AWS Secrets using Proc Http</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Extracting-token-from-AWS-Secrets-using-Proc-Http/m-p/962820#M29796</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not an expert with AWS Python SDK.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code for get_secret_value can be found &lt;A href="https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/python/example_code/secretsmanager/get_secret_value.py" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. You should most probably define the class in your code and then use that class.&lt;/P&gt;
&lt;P&gt;Let me know if that helps. If not, you may ask for help on the AWS repository itself.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Xavier&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 11:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Extracting-token-from-AWS-Secrets-using-Proc-Http/m-p/962820#M29796</guid>
      <dc:creator>XavierBizoux</dc:creator>
      <dc:date>2025-03-28T11:16:59Z</dc:date>
    </item>
  </channel>
</rss>

