Open bwagner5 opened 2 years ago
I'm thinking we accomplish this by extending --clean
flag to remove all underlying resources/infra. This would also provide a way to persist the role. Thoughts/prayers?
hmm maybe... although --clean
is probably best if always set to true, which is the default. I'm not sure if there would be any problems deleting the IAM role every time? But if there's no propagation delays, then that's probably the best thing to do for simplicity.
I think a good test is to implement IAM role deletion on --clean
and then try executing the tool really fast. The creation would also need to be modified a bit to put a UUID or something so that it could support multiple invocations at the same time (wouldn't want the IAM role to be deleted by one process of ec2-spot-interrupter when another one is trying to use it).
Describe the feature
To Reproduce Steps to demonstrate the desired behavior:
Additional context Add any other context about the problem here.