Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
albrtjos
Contributor
Contributor

can we replace Analytic connection with python scripts in server with aws lamda function

We have some python scripts residing in one of the qlik nodes which is connected to qlik sense (which resides in aws server) through analytic connection
is it possible to move those scripts to aws lambda function and establish a connection from Qlik sense enterprise windows ? I believe AWS lambda connector will work with Qlik cloud only.

Labels (1)
2 Replies
igoralcantara

Yes, I have done it a few times using a REST Connection.

One example of how I use it:

Let vControl = '[' & Peek('NotSmokersChol', 0) & ']';
Drop Table NotCurrSmokersChol;

Let vTest = '[' & Peek('SmokersChol', 0) & ']';
Drop Table CurrSmokersChol;

// Prepare call
LET vRequestBody ='{';
Let vRequestBody = vRequestBody& '""control"":$(vControl),';
Let vRequestBody = vRequestBody&'""test"":$(vTest)';
Let vRequestBody = vRequestBody & '}';
 
LIB CONNECT TO 'Lambda_TTest';
 
RestConnectorMasterTable:
SQL SELECT 
"t",
"p",
    "df"
FROM JSON (wrap on) "root"
WITH CONNECTION 
( BODY "$(vRequestBody)" );
Check out my latest posts at datavoyagers.net
igoralcantara

Hey, did my answer helped you?

Check out my latest posts at datavoyagers.net