avatarTeri Radichel

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2271

Abstract

/p><p id="abd6">One foot after another, deep breath in and out, sometimes it can be difficult and sometimes it can be easy. You can’t question whether you are doing it right or wrong, you just have to keep going. The same is true with writing; you need to type one word after the other for the ideas to flow.</p><p id="042d"><b>3.“A problem with a piece of writing often clarifies itself if you go for a long walk.”<a href="https://en.wikipedia.org/wiki/Helen_Dunmore"></a></b><a href="https://en.wikipedia.org/wiki/Helen_Dunmore">Helen Dunmore</a></p><p id="d2e9">Stepping away from your copy helps you find new connections to ideas, to structure a thought differently and tighten sentences. As you are out running your mind is busy at work forming connections you might have missed as you were writing. Running acts as the catalyst to the ideas that were marinating in your mind.</p><p id="66dd"><b>4.“In long-distance running the only opponent you have to beat is yourself, the way you used to be.”― Haruki Murakami, <a href="https://www.goodreads.com/work/quotes/2475030">What I Talk About When I Talk About Running</a></b></p><p id="fa36">There is only one person you need to compete with: yourself. You need to compete with the version of you that showed up yesterday, to tweak the process and learn new ways of getting better. Each day is an opportunity to better yourself.</p><p id="86b1"><b>5</b>.<b>“The twin activities of running and writing keep the writer reasonably sane and with the hope, however illusory and temporary, of control.</b><a href="https://en.wikipedia.org/wiki/Joyce_Carol_Oates">Joyce Carol Oates</a></p><p id="78b1">Life can be unpredictable, messy and dark. Your best-laid plans might flop in ways you had not foreseen. But in between the stimuli and your response you get the choice to control your reaction. And therein lies your power. In writing and running you get to step away from the heat of the moment; to find solutions to the problems you are facing.</p><p id="f5a5"><b>6</b>.<b>“If you don’t acquire the discipline to push through a personal low point, you will miss the reward that comes with persevering. Running taught me the discipline I need as a writer”.</b> <a href="https://www.amazon.com/Wrecked-Broken-World-Slams-Co

Options

mfortable/dp/0802404928">Jeff Goins</a></p><p id="a41c">The challenges we face can feel insurmountable and we might be tempted to give up. But in pushing past the pain and discomfort, we are building resilience and patience. Through running, writers deepen their ability to focus on a single, consuming task and enter a new state of mind entirely. The deliberate act of moving forward each day reminds you that everything will work out in the end.</p><p id="9554"><b>7.“For me, running is both exercise and a metaphor. Running day after day, piling up the races, bit by bit I raise the bar, and by clearing each level I elevate myself. At least that’s why I’ve put in the effort day after day: to raise my level…The point is whether or not I improved over yesterday.</b><a href="https://www.amazon.com/What-Talk-About-When-Running/dp/0307389839">Haruki Murakami</a></p><p id="3fc7">Word by word, mile by mile. All you can do is trust the process and put in the work despite your doubts, excuses, and fears. Once you start the fear begins to dissipate. You realize that the only way to<b> <i>finish</i> </b>an article or a race is to start. Just take one step and keep at it.</p><p id="5e50"><b>Creation, self-awareness and freedom. </b>Running offers writers escape with purpose.</p><p id="c042">You start with a blank page or a blank trail and end up with a creation of your own.</p><p id="6b50">You might also like:</p><div id="9b5a" class="link-block"> <a href="https://readmedium.com/building-a-writing-habit-for-beginners-by-a-beginner-e50a88508099"> <div> <div> <h2>How To Build A Writing Habit For Beginners, By A Beginner</h2> <div><h3>The world is still hungry for more great work</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*IzL6kfk468UzxQeqT3OO_g.jpeg)"></div> </div> </div> </a> </div><p id="64b4">As always thanks for reading. Keep the comments and corrections coming.</p><p id="6a86">Stay in the loop. <a href="https://rb.gy/0bfahg">Join my newsletter for more articles.</a></p></article></body>

Automatically Deleting a Failed CloudFormation Stack in a Rollback State

ACM.92 Reducing manual actions to get things deployed with CloudFormation

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚙️ Check out my series on Automating Cybersecurity Metrics. The Code.

🔒 Related Stories: Cloud Architecture | Application Security | CloudFormation

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I was attempting to auto-generate a password for a new user in the last post with proper non-repudiation.

Along the way I got tired of not being able to re-deploy a CloudFormation stack stuck in a failed state. That led me to write some code and this post to automatically delete the stack and redeploy it. I don’t know why CloudFormation doesn’t do this for you or have better options to control it.

Here’s what I did:

The first command above does the following:

  • Describe the stack
  • Get the status value
  • Added or true (|| true) to ignore errors
  • Added 2>/dev/ null to not print out errors — — something I generally tell people not to do but in this case it makes sense.

The next command checks if the stack is in a ROLLBACK_COMPLETE state and deletes the stack if it is. I’m presuming here you waited for your rollback to complete before trying to redeploy a stack. :)

Now the problem is…the stack is still trying to delete. We have to wait until it gets into a state where we can proceed, or it could end up in a failure state of some kind. The easiest thing to do is probably wait until the stack is not in this state: DELETE_IN_PROGRESS.

Since I now have to check the status multiple times, using the principal of abstraction I’ve written about many times in this blog, I moved the status check to it’s own function. I also realized that I needed the /dev/null in a different place to prevent getting the error message when the stack does not exist.

Then I end up with this code in my deploy stack function:

That should save me a little time at least.

Now back to what I really want to be doing. Testing out our user’s ability to log into an EC2 instance with the key we created.

Follow for updates.

Teri Radichel | © 2nd Sight Lab 2022

About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight Lab
Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation
Follow for more stories like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
❤️ Sign Up my Medium Email List
❤️ Twitter: @teriradichel
❤️ LinkedIn: https://www.linkedin.com/in/teriradichel
❤️ Mastodon: @teriradichel@infosec.exchange
❤️ Facebook: 2nd Sight Lab
❤️ YouTube: @2ndsightlab
Rollback Complete
AWS
Cloudformation
Delete In Progress
Automation
Recommended from ReadMedium