Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws_ebs_volume from snapshot_id ? #526

Open
dushyant28 opened this issue Feb 17, 2017 · 0 comments
Open

aws_ebs_volume from snapshot_id ? #526

dushyant28 opened this issue Feb 17, 2017 · 0 comments

Comments

@dushyant28
Copy link

Hi,

I am not able to create a volume from an existing snapshot using aws_ebs_volume

aws_ebs_volume "#{node['amd_infra']['stack_name']}_db_vol" do
snapshot_id 'snap-fbd219dc'
aws_tags 'attached_to' => "#{node['amd_infra']['stack_name']}_db", 'backup' => 'true', 'stack' => node['amd_infra']['stack_name']
availability_zone node['amd_infra']['db']['ebs']['additional_vol']['availability_zone']
size node['amd_infra']['db']['ebs']['additional_vol']['size']
volume_type node['amd_infra']['db']['ebs']['additional_vol']['type']
iops node['amd_infra']['db']['ebs']['additional_vol']['iops']
encrypted node['amd_infra']['db']['ebs']['additional_vol']['encrypted']
machine "#{node['amd_infra']['stack_name']}_db"
device '/dev/xvdf'
end

ERROR: undefined method `snapshot_id' for Chef::Resource::AwsEbsVolume

But I can see 'snapshot_id' in https://github.com/chef/chef-provisioning-aws/blob/master/lib/chef/provider/aws_ebs_volume.rb#L111

Gem version: chef-provisioning-aws (2.1.0)

Any help is appreciated !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant