Thursday, September 22, 2022
HomeCyber SecurityUnusual Concern on AWS Linux EC2 Occasion | by Teri Radichel |...

Unusual Concern on AWS Linux EC2 Occasion | by Teri Radichel | Bugs That Chew | Sep, 2022


Randomly adjustments the worth of parameters handed between Bash features

This looks as if a problem with multi-threaded programming of some type the place one thread is performing on one other thread’s knowledge. I’m unsure if the problem could be with the terminal home windows on the native host (MacOS) or the distant Amazon Linux working system.

I’m working a terminal window to connect with an Amazon EC2 Linux host to run the scripts on this GitHub repository.

I lately began including scripts to deploy networks.

I’ve a standard perform that calculates and provides a parameter to a comma separated listing of values. I cross that listing right into a perform that’s imagined to deploy a CloudFormation template for a community stack.

What occurs is that if I open a second terminal window, the parameter listing will randomly present up as “1” as an alternative of the right parameter listing. Since my code has not modified in any respect I do know this inconsistency is one thing outdoors my code. I’ve by some means pinpointed it to having two terminal home windows open. Once I shut the second window the error goes away.

I’ve a perform that validates {that a} worth exists. If it doesn’t it returns “1” and this system exits. It might be that by some means when it checks for the worth, the worth is null and that perform returns one giving me this very complicated outcome.

Nonetheless, there is no such thing as a means my code is passing an empty worth to that perform. Moreover, the issue doesn’t happen each time I’ve a second terminal window open. It’s random. Meaning there’s one thing randomly executing within the background inflicting this (I feel).

Effectively, not less than I’ve a piece round…however no….really I don’t. I needed to come again and replace this submit as a result of I had it happen when I didn’t have two home windows open. So it looks as if a possible bug on Amazon EC2 Linux. The code is certainly not altering and works constantly more often than not — till I get this random error.

Teri Radichel

When you appreciated this story please clap and observe:

Medium: Teri Radichel or E mail Listing: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests companies through LinkedIn: Teri Radichel or IANS Analysis

© 2nd Sight Lab 2022

____________________________________________

Creator:

Cybersecurity for Executives within the Age of Cloud on Amazon

Want Cloud Safety Coaching? 2nd Sight Lab Cloud Safety Coaching

Is your cloud safe? Rent 2nd Sight Lab for a penetration check or safety evaluation.

Have a Cybersecurity or Cloud Safety Query? Ask Teri Radichel by scheduling a name with IANS Analysis.

Cybersecurity & Cloud Safety Sources by Teri Radichel: Cybersecurity and Cloud safety courses, articles, white papers, displays, and podcasts



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments