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. The Amazon Elastic Block Store (EBS) Container Storage Interface (CSI) driver has also been updated to ensure new volumes created are idempotent by default.
This feature is available in all AWS Regions. Visit the following pages to learn more about Making retries safe with idempotent APIs and Ensuring idempotency in EC2. To get started with adding idempotency to CreateVolume API, visit the API reference page. For more information on EBS CSI driver, visit the user guide.