Posted On: Jul 30, 2021

Amazon Elastic Block Store (EBS) now supports idempotent creation of EBS Volumes, allowing you to safely retry volume creation without additional side effects. Idempotent creation of EBS Volumes is intended for customers that have higher level processes such as container orchestration systems or automation scripts that create EBS volumes as part of a workflow.

You can now ensure that only one volume is created as part of the CreateVolume API request by adding the following input to the command line --client-token “abcd”. With an idempotent request, once a volume is successfully created, any subsequent retries using the same client token “abcd” will not create any additional volumes. You can therefore safely handle time outs or server issues by building in retry mechanisms into your creation workflow. 

This feature is available in both Amazon Web Services China (Beijing) Region, operated by Sinnet and Amazon Web Services China (Ningxia) Region, operated by NWCD. To get started with adding idempotency to CreateVolume API, visit the API reference page.