The current capabilities of AI to generate the cloud backend and edge logic are deceptive.

I asked AI to write AWS CDK code deploying backend infrastructure for a sample Internet of Things system. It took me a few prompts, but finally, it generated nicely looking and well-commented Python code. I was surprised by the overall quality of the output I received... ... until I reviewed that code more closely. After thorough verification, I got suspicious about the merit of the obtained solution. While the code looked correct during the initial review, it had a few security vulnerabilities. I repeated my exercise and asked AI to generate an edge logic communicating with the backend system using MQTT. The result had similar issues as before. AI models are trained based on publicly available data containing diverse code quality. Ultimately, we obtain a blend of good/bad code fragments in a single script. It takes in-depth domain knowledge to verify and adjust generated solutions. Don't let the first impression mislead you!
No description
9 Replies
techielew
techielew8mo ago
What tool did you use? ChatGPT?
LMtx
LMtx8mo ago
yes
techielew
techielew8mo ago
Would you be willing to share your prompts here? I'm curious to understand how you're asking to get the desired result.
LMtx
LMtx8mo ago
I need to work on it. I will prepare a stream describing the process and pointing vulnerabilities in the generated code. I will share the prompts during that event and paste them here.
techielew
techielew8mo ago
noice!
LMtx
LMtx8mo ago
I added this topic to my planned streams: https://www.thingrex.com/live/
Live
ThingRex.com Live Events
LMtx
LMtx7mo ago
LMTX DEV
YouTube
How to use ChatGPT to generate an Internet of Things environment us...
How to use ChatGPT to generate an Internet of Things environment using the AWS Cloud? Can we trust AI to build working solutions? If you are interested in this topic, join my future webinar: https://www.thingrex.com/live/ #chatgpt #ai #aws #cloud #iot
LMtx
LMtx7mo ago
That is the query I used in this video: Generate Python source code that uses AWS CDK to deploy cloud infrastructure required to send telemetry data from devices via MQTT protocol to the cloud storage. For every invocation, I got different output - from horribly wrong to almost correct, but none of them were working solutions.
Want results from more Discord servers?
Add your server
More Posts
Building Durable Electronics Products*Building Durable Electronics Industrial Products: Key Considerations* Creating electronics industCan I use a Raspberry Pi for cross-compiling code for an ESP32 microcontroller?Cross-compiling for different microcontroller architectures often requires specific toolchains. Is iPCB Design Guidelines for Hardware EngineersCrafting an efficient PCB starts with strategic layer stackup decisions. A well-thought-out stackup Junior professorship for “Intelligent and secure IIoT networks”Two central competencies are required for a professorship at a university of applied sciences: speciExploring Devices to map a room.I am currently exploring learning about unreal engine and integrating the LIDAR mapped points onto aAn impressive European FPGA platform - Cologne Chip CCGM1A1Read with me: • a comfortable 324 ball 0.8 mm pitch BGA • 20,480 programmable elements (each with 8-The Crucial Role of Hardware Engineers in Crafting Efficient and Reliable Connected Vehicles**Empowering the Road Ahead: The Crucial Role of Hardware Engineers in Crafting Efficient and ReliabHandling physical assets is slower than with virtual objects by its very own nature.Working with cloud/virtual assets is way easier than with actual hardware and OT systems. That is myIP Address issue: No IPv4 with the latest Raspberry Pi OSRecently, I have installed the latest Raspberry Pi OS on Raspberry Pi4. When wifi configured, and trDeveloper Relations Role – Embedded Hardware & FirmwareLooking for a developer relations pro who can address embedded hardware and firmware at the intersec