trendmicro / cloudone-community

Collection of Trend Micro Open Source Community Projects
MIT License
17 stars 18 forks source link

if several clusters are created, only the last one is deleted with cleanup.sh #101

Open fbeve opened 1 year ago

fbeve commented 1 year ago

Once a cluster is created only the last one is deleted once cleanup is called.

So, my proposed solution is to tag all cluster which are created by the script. and then once the cleanup.sh is called, it can either delete the only one cluster if there is only one or it can delete all the tagged clusters. Or if you find it more clever, it can give the choice to choose which cluster need to be deleted.

felipecosta09 commented 1 year ago

Is that about https://github.com/trendmicro/cloudone-community/blob/main/Container-Security/Demo/aws-bash-demo-environment-automation/cleanup.sh that?

@raphabot

fbeve commented 1 year ago

hello, yes it is about the mentionned cleanup.sh script. raphael (might be you?) indicated the solution with tagged cluster is interesting.

Le ven. 12 mai 2023 à 01:59, Felipe Costa @.***> a écrit :

Is that about https://github.com/trendmicro/cloudone-community/blob/main/Container-Security/Demo/aws-bash-demo-environment-automation/cleanup.sh that?

@raphabot https://github.com/raphabot

— Reply to this email directly, view it on GitHub https://github.com/trendmicro/cloudone-community/issues/101#issuecomment-1544908249, or unsubscribe https://github.com/notifications/unsubscribe-auth/AORGQFPFXL2Q2MPRYBBM5XDXFV4NZANCNFSM6AAAAAAX45LJ5Y . You are receiving this because you authored the thread.Message ID: @.***>

felipecosta09 commented 1 year ago

@raphabot