Home avatar

đź‘‹ A space where I teach and share ideas.

Go Lambda Cleanup

If you find yourself authoring several AWS lambdas for a serverless application architecture, you might have encountered this error:

1
2
3
4
An error occurred: mySweetLambda– Code storage limit exceeded. 
(Service: AWSLambda; Status Code: 400; 
Error Code: CodeStorageExceededException; 
Request ID: 05d3ae68-a7c2-a3e8-948e-41c2739638af).

The first time I encountered this error I wasn’t quite sure what was happening, but after some quick web searches I learned that AWS has a limit on Lambda storage that maxes out at 75Gb.

Additionally, I also learned that AWS retains all the previous versions of all my lambdas. That’s all fine, I should probably go do some “spring cleaning” and remove the unused versions. AWS does expose the functionality to remove former versions through the console. However, in my scenario I had over 500+ versions for some of my older lambdas. Clicking through 500+ versions is not how I want to spend my time. So what options are available? Surely there has to be some better options out there.

How to Use AWS DynamoDB Locally…

Chances are most of us have unique situations for wanting to interact with DynamoDB locally, maybe it’s to develop and test different data models, perhaps it’s to develop programmatic functions to interact with the database, perhaps you want to reduce development expenses, or perhaps you’re just doing research. Regardless of your reasons, I want to help you by showing you how to leverage DynamoDB locally. We will use the following tools.

Medium Link

We will walk through setting up the local environment, generating data, uploading data, interacting with the noSQL Workbench, and some neat tips to keep in mind. So with that being said, let’s dive into into it!

Using a Community Support Model

It’s tough to find an organization that is not leveraging a public cloud platform. With all the SaaS, PaaS, and IaaS providers out there, chances are you’ve used cloud services in some manner. As public cloud utilization continues to ramp up in many industries (e.g., insurance, financial, business), organizations are encountering a new challenge: how to correctly consume these new platforms and technologies. It’s a workforce challenge more so than it is a technical challenge.

This article was originally published in the State Farm Engineering Blog. Link to the original blog can be found here.

It’s a workforce challenge because, at the end of the day, it comes down to technical education and experience. Organizations with a workforce skilled in cloud technologies will have a smoother cloud consumption experience compared to one lacking a workforce with cloud experience. Every organization is competing for talent - we all want that DevSecOps engineer and/or Cloud Architect that can do it all (CI/CD, Programming, Security, Architecting, Data, Test, etc.) - but truth to be told, those individuals are rare to come by, let alone retain. Ideally, placing these individuals among inexperienced teams would be the best approach. They could act as a mentor and guide colleagues through successful application deployments. However, this option is not really scalable for large enterprises that are starting out their cloud journey. So what is the alternative? The Community Support model!

How to Create a Digital Portfolio That Is Free and Serverless

Chances are most of us have stumbled into someone’s digital portfolio. This can range from book authors to IT professionals, it’s pretty universal as everyone can benefit from it. Is it needed, probably not but it does help quite a bit in showcasing your skills and who knows, perhaps it could be the difference between you getting an interview and/or a phone call. Let’s say you decided you want a digital portfolio, you’re probably wondering how to go about getting started? Does it cost money? Is it affordable? Do I have to be a programmer? Do I need to maintain a server? What if I told you can do it all for free, with no programming skills, and virtually zero maintenance. All you need is some patience, a little bit of guidance and some spare time. Sounds pretty neat right? Well if that interest you let’s dive into what it takes to make a digital portfolio.

Using Terraform’s Try() ,Can(), and Input Validation

HahsiCorp has added two new tools in Terraform. As of Terraform v.12.20 there are two new functions available for consumers try() and can() . Along with these two functions there is an experimental feature available, variable_validation . In this article we’re going to look into how these new functions are used and how they works.

This article was originally published on Medium. Link to the Medium article can be found here.

All code snippets can be found at https://github.com/karl-cardenas-coding/terraform-functions

Note: Variable validation is an experimental feature as of v12.20 use with caution as it is not recommended for production usage at this time.

The can and try()function can only catch and handle dynamic errors resulting from access to data that isn’t known until runtime. It will not catch >errors relating to expressions that can be proven to be invalid for any input, such as a malformed resource reference.

Stuck in Your Career? Try This for a Change!

Photo by Jukan Tateisi on Unsplash

There is no easy button!

We have all been there, feeling stuck, unsure of how to move to the next level. This can apply to your current job role, or career as a whole. And unfortunately, this feeling of being trapped is also not a one-time incident, sometimes we can feel this way several times throughout our careers. You already know this but sometimes it helps to hear it again. To get to the next step, there is no easy button!

This article was originally published on LinkedIn. Link to the article can be found here.

In the past year I’ve been asked by fellow IT professionals for guidance on advancing in the IT field. Everyone’s situation is different but they all share common pain points. In an effort to help others beyond my immediate reach, I decided to write down the advice I provide to those that seek my input. However, this is only one man’s words and I recommend to always seek multiple perspectives to see which applies best to your situation!

0%