News for hackers. Stuff that matters.
Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by scarface_74 on Tuesday October 31, 2023 @02:32PM (#38089318)
You literally can tell ChatGPT to create a CDK typescript app that deploys a lambda + API Gateway where the lambda works with Get request and a dynamodb table. The lambda should have permission to read and write to the Table and it will get you 95% there.
Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by icedchai on Tuesday October 31, 2023 @03:19PM (#38090031)
I've found that "permissions" are what bites most developers. It's always either IAM or security groups...
Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by scarface_74 on Tuesday October 31, 2023 @03:39PM (#38090328)
Using the ChatGPT prompt I said above, it did the permissions correctly

    table.grantReadWrite(lambda function)
Just as an experiment, I’ve thrown Lambda code I’ve written from scratch into ChatGPT and asked it what permissions it needed. It got it right.

ChatGPT is well trained on everything AWS related. It can transform CloudFormation to idiomatically correct CDK or Terraform.

I hate to say this because it sounds like an appeal to authority. But I really want to set context. I used ChatGPT for projects while I was working at AWS ProServe and since I left. They were generic utility scripts with no proprietary business related code.

Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by icedchai on Tuesday October 31, 2023 @06:59PM (#38092543)
Neat! I personally hate writing Terraform (Does anyone like it?)