JonBlog
Thoughts on website ideas, PHP and other tech topics, plus going car-free
Pondering an AWS CDK library for PHP
Categories: Doodles, Ideas

I recently completed a small TypeScript project in CDK, which deployed a lambda and an API Gateway to AWS. The deployed code was pretty simple, but I found the CDK difficult as I’d not done any TypeScript before.

I am on home turf with PHP, and I wondered if it would be possible to write a PHP library that calls TypeScript (or any other CDK language) using PHP objects. Rather than calling AWS primitives (which would be a massive implementation project) it would use some form of JavaScript eval() that runs the code inside the Node runtime.

Or I wonder if the PHP-Java bridge still works – Java is also a CDK language…

Leave a Reply