avatarTeri Radichel

Summarize

Batch Delete Compute Environment Not Working

Tried to delete Batch Compute Environments multiple times over past few days and they still exist

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

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

🔒 Related Stories: Bugs | AWS Security | Secure Code

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

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

I have clicked the delete button on these two Batch Compute Environments multiple times over the past few days.

I get a message stating that the compute environment will be deleted but it still exists after multiple tries.

I went in and deleted the underlying ECS cluster so I would not be charged for it as a result of this bug.

Perhaps I missed something in the documentation about these hanging around for a while after they are deleted but they should be grayed out or something and it should say that on the screen somewhere if that is the case.

So either way I’m considering this a bug or at least a problem.

Upate: finally clicked on the compute environmet and saw this error:

assumed-role/BatchComputeEnvironmentRole/aws-batch is not authorized to perform: ecs:DeleteCluster on resource:

This error needs to be bubbled up to the main screen.

Also, I used the policy from the AWS policy and that policy could not be deployed in the first place because of invalid conditions and now it has this problem. Will have to figure out and fix the policy but the documentation needs to be corrected and the UI could use an update.

Follow for updates.

Teri Radichel | © 2nd Sight Lab 2023

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
Bug
Delete
Aws Batch
Compute Environment
Problem
Recommended from ReadMedium