awslabs / ec2-spot-labs

Collection of tools and code examples to demonstrate best practices in using Amazon EC2 Spot Instances.
https://aws.amazon.com/ec2/spot/
Other
942 stars 319 forks source link

Use unique temp files and put them in temp dir #60

Closed chrishodson closed 1 year ago

chrishodson commented 2 years ago

Description of changes:

Use mktemp to create uniquely named files in the temp directory. This will avoid overwriting any files of the same name and keep the working directory clean.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.