<?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: SSE-S3 encryption on SAS Connect to snowflake in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/761070#M240763</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes the libname works because i am able to append to the snowflake table if i dont use the bulkload=yes option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I Tried the SSL option as well but still get the same&amp;nbsp;ERROR: Message from TKS3: Access Denied&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I shall try to reach out to SAS Support , something could be wrong with the user permissions.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 07:08:54 GMT</pubDate>
    <dc:creator>NN</dc:creator>
    <dc:date>2021-08-12T07:08:54Z</dc:date>
    <item>
      <title>SSE-S3 encryption on SAS Connect to snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760718#M240569</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I am trying to use the SAS/Connect to snowflake for bulkload from SAS to snowflake db.&lt;BR /&gt;i am on SAS 9.4 M7&lt;/P&gt;
&lt;P&gt;My problem is i cant find how to define server side encryption on my bulkload options (&lt;STRONG&gt;SSE-S3&lt;/STRONG&gt;) i.e. AES-256&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If i was to directly copy a file to S3 using AWS CLI the command i run is&lt;/P&gt;
&lt;PRE&gt;aws s3 cp /localpath/file s3://bucket/file --sse AES256&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;but when i try to use the bulkoad option i get access denied error&lt;BR /&gt;ERROR: Message from TKS3: Access Denied&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc append base=snow.snowflake_table(bulkload=yes
 bl_bucket="/mybucket"
) data=work.sasDataset force;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I even tried using proc s3, i can list the objects in the bucket, but when i try to use PUT to transfer a file from local to S3 it fails again with access denied error. But listing the bucket contents using proc S3 works.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc s3 
;
put "/local/file.csv" "/bucket/file.csv";
list "/bucket";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If anyone has any suggestions on how i can get the encryption to work or whether i need to change something in my approach please do guide me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 18:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760718#M240569</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2021-08-10T18:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: SSE-S3 encryption on SAS Connect to snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760791#M240615</link>
      <description>&lt;P&gt;Hmmm.&amp;nbsp; Good question.&amp;nbsp; Not my area of expertise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder if either&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;or perhaps &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;might be able to shed some light on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 00:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760791#M240615</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-11T00:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: SSE-S3 encryption on SAS Connect to snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760794#M240618</link>
      <description>&lt;P&gt;s3 is an object store and not a database so it's certainly Proc S3 and not bulk-loading that you need to use.&lt;/P&gt;
&lt;P&gt;Does your config file already have all the necessary information? Consult the documentation &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0qozoux9a0633n1du4xy40vksf5.htm" target="_self"&gt;here&lt;/A&gt; and also what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote &lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/PROC-S3-Procedure-Questions/td-p/466053" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Addition&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I've missed that you're actually trying to load into Snowflake so guess S3 is only here because that's normally the staging area. So for loading into Snowflake you can of course use bulk-load and according to documentation&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0atn4p9vmo64nn1f866es1sqeyx.htm" target="_self"&gt;here&lt;/A&gt; if using&amp;nbsp;bl_internal_stage= you don't need to stage in S3.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 03:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760794#M240618</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-08-11T03:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: SSE-S3 encryption on SAS Connect to snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760797#M240619</link>
      <description>&lt;P&gt;Looks like you have used a LIBNAME SNOW to assign the Snowflake data connection. Can you post that please?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 03:06:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760797#M240619</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-08-11T03:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: SSE-S3 encryption on SAS Connect to snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760888#M240674</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;My knowledge on Snowflake is limited right now. Can a S3 bucket be used to create a snowflake internal stage?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Yes you are right my main objective is to bulkload into snowflake.&lt;BR /&gt;thats when i got the error first and to debug the issue i tried&amp;nbsp; using proc S3 to transfer a file to S3.&lt;BR /&gt;I think my access is correct because i can use proc s3 to list the bucket items. and was&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also able to use aws cli to transfer a file from the SAS server to the S3 bucket.&lt;BR /&gt;The only challenge was i had to define SSE option in the cli COPY statement, and i couldnt find how to define that for proc S3 or Snowflake Bulkload.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;My Libname is as below, please note that my snowflake connection details are part of the odbc dsn.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname snow sasiosnf dsn='MySnowDSN' schema="Dev_Schema" ;
proc append base=snow.MYSNOWFLAKETABLE (bulkload=yes
 bl_bucket="mybuket"
) data=work.large_data force;
run;
libname snow clear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Aug 2021 11:01:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/760888#M240674</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2021-08-11T11:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: SSE-S3 encryption on SAS Connect to snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/761000#M240729</link>
      <description>&lt;P&gt;Does your LIBNAME work at all? Does it assign successfully?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is successful, try PROC CONTENTS to see if it lists any tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is all working OK, then try the BL_USE_SSL = YES &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/n0u4wdfmcy988pn1hm4fjklsirba.htm" target="_blank" rel="noopener"&gt;dataset option&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 20:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/761000#M240729</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-08-11T20:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: SSE-S3 encryption on SAS Connect to snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/761070#M240763</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Yes the libname works because i am able to append to the snowflake table if i dont use the bulkload=yes option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I Tried the SSL option as well but still get the same&amp;nbsp;ERROR: Message from TKS3: Access Denied&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I shall try to reach out to SAS Support , something could be wrong with the user permissions.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 07:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/761070#M240763</guid>
      <dc:creator>NN</dc:creator>
      <dc:date>2021-08-12T07:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: SSE-S3 encryption on SAS Connect to snowflake</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/761261#M240854</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18128"&gt;@NN&lt;/a&gt;&amp;nbsp; - Yes, that's the best approach. I checked the Snowflake documentation and couldn't find anything else relevant. I'm interested as we might be using Snowflake ourselves in the near future.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 19:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SSE-S3-encryption-on-SAS-Connect-to-snowflake/m-p/761261#M240854</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-08-12T19:52:50Z</dc:date>
    </item>
  </channel>
</rss>

