-
Using Layers with AWS Lambda
We run some Python functions on AWS Lambda, and we originally used serverless. We set up the config files, node packages, etc. for that to deploy to our different environments. It worked pretty well. The main benefit is that serverless packaged up Python dependencies and deployed them with our main function code. Believe it or…
-
AWS Git Push Rejected – remote: error: Unable to create application version: null
-
PHP: The difference between the sqlsrv (Windows) and mssql (Linux) drivers
Summary: sqlsrv is the PHP driver for Windows environments, mssql is for Linux. The mssql driver and functions used to exist in PHP on Windows but are now deprecated. Connection settings/syntax used with the sqlsrv driver may not work with mssql. We had to change the hostname from “hostname,\port_number”; to “hostname:port_number”; Lesson # 1:…
-
Getting the Value of a count(*) Query in SimpleDB
-
AWS SimpleDB and Auto Incrementing Primary Keys
I wanted some of my items in simpledb to have unique identifiers. SimpleDB does not provide this function natively because it’s not an RDBMS. Here’s my solution: Before inserting a new item, get the id from the last item in the domain with this select: $query = $sdb->select(“select id from `domain` where id is not…
-
Explicitly Setting an AWS SimpleDb Region in PHP