Hi,

I am trying to create the AWS VPC using ec2_vpc resource but facing some 
problem:

class vpc_create {
   ec2_vpc { create-aws-vpc:
     ensure => 'present',
     name        =>  "dev_vpc",
     cidr_block  =>  '10.0.0.0/24',
   }
}

But I am facing following error:
Error: Could not set 'present' on ensure: no implicit conversion of Symbol 
into String at 10:/etc/puppet/modules/vpc_create/manifests/init.pp
Error: Could not set 'present' on ensure: no implicit conversion of Symbol 
into String at 10:/etc/puppet/modules/vpc_create/manifests/init.pp
Wrapped exception:
no implicit conversion of Symbol into String
Error: /Stage[main]/Vpc_create/Ec2_vpc[create-aws-vpc]/ensure: change from 
absent to present failed: Could not set 'present' on ensure: no implicit 
conversion of Symbol into String at 
10:/etc/puppet/modules/vpc_create/manifests/init.pp

I have performed all the prequisites required for this. I have installed 
aws-sdk-core and retries as well.

I am using puppet 3.8.6 and Ruby 2.0. Any idea what's wrong I am doing.

Thanks,
Sanjiv

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/66c2f4fc-6f43-4019-bb48-5bfcde53d5d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to