From 486b3e5bdd5783c5e258b2074a0ca0d91085d40a Mon Sep 17 00:00:00 2001 From: Nilanjan Roy Date: Mon, 23 May 2016 13:32:00 +0300 Subject: [PATCH] Enabled volume delete on termination --- metadata.rb | 2 +- recipes/volumes.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index 2725a4e..400348e 100644 --- a/metadata.rb +++ b/metadata.rb @@ -11,5 +11,5 @@ recipe "ebs::raids", "Mounts attached EBS RAIDs" recipe "ebs::persistent", "Mounts volumes defined in attributes" -depends 'aws', '>= 0.101.0' +depends 'aws', '>= 3.3.3' depends 'delayed_evaluator' diff --git a/recipes/volumes.rb b/recipes/volumes.rb index c77a22c..d62ac99 100644 --- a/recipes/volumes.rb +++ b/recipes/volumes.rb @@ -36,6 +36,7 @@ volume_type options[:piops] ? 'io1' : options[:gp2] ? 'gp2' : 'standard' piops options[:piops] action :nothing + delete_on_termination options[:delete_on_termination] end vol.run_action(:create) vol.run_action(:attach)