Menu

How One Stretched Image Led Me to Migrate AWS Lambda Code and Build CI/CD
📰

How One Stretched Image Led Me to Migrate AWS Lambda Code and Build CI/CD

DEV Community: cicd·Kaziu·about 3 hours ago
#xNETj6No
#devtocicd#devto#dev#lambda#function
Reading 0:00
15s threshold

How it started

One day, I noticed that a thumbnail image on a screen I was working on looked weirdly stretched.

"Oh, I know this one. Just switch CSS object-fit from cover to contain and done."

Feeling pretty confident, I fixed the code. But the image was still stretched. When I opened the image URL directly from the browser's dev tools, the image coming back from Amazon S3 was already stretched.

"Are you kidding me?"

But I had just joined the project, and I don't really know infrastructure. I had no idea where the image-generation code lived, so I asked a coworker.

"Sorry to bother you — this thumbnail seems to be resized somewhere on the AWS side. Do you know where that happens?"

My coworker said:

"Oh, that's done by a Lambda function in a separate infrastructure repository. But editing that repository directly won't help.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.