0

I have a pool of EBS volumes that are being taken and assigned to machines during the deployment process, conducted by cloudformation.

This deployment process has the following steps:

  1. Select untagged volumes from the pool
  2. Assign tags to them
  3. Give it to cloudformation

The problem is, that if there are several deployment tasks are running at the same time, it is possible that 1 and 2 will be done simultaneously and the same volume will be taken twice.

There is no such thing as immutable tags, that would be helpful in this case.

Is there any method how could I take the volumes in an atomic way?

Igor Chubin
  • 61,765
  • 13
  • 122
  • 144

0 Answers0