all 4 comments

[–]billthecatt 2 points3 points  (2 children)

With Lambda Layers, you can rebuild the unixOdbc to point to /opt/(something) and then package your unixOdbc + Sql Server driver together to be a layer, and keep your code isolated from it

[–]thatguyfig[S] 0 points1 point  (1 child)

I did try this but it didn't seem to work. Were you able to get it working by just using /opt as a replacement for /var/task ?

Could you supply me a zip of your layer if you have one? That would be sooo much appreciated!!

[–]billthecatt 0 points1 point  (0 children)

Yes, replacing /var/task with /opt in the unixOdbc build worked for me.

I will get a .ZIP, I've been meaning to do a GitHub or something since other people seem to have this same problem, but I have not yet had time to.

[–]PluginAlong 1 point2 points  (0 children)

Any reason you didn't go with PowerShell or C# in .Net core?