Greetings masters
After reading all opinions in Best approach to create AWS VPC, NAT, EC2 instances using chef - #15 by sme thread, I decided to give Chef provisoning a try. But here I am stuck with following error:
Chef::Provisioning::AWSDriver::LoadCredentialsError: Could not load credentials from the environment variables, the .aws/credentials file or the metadata service.
My recipe is pretty straight forward.
require 'chef/provisioning/aws_driver'
require 'chef/provisioning/aws_driver/aws_resource'
with_driver 'aws::eu-west-1'
aws_vpc 'test_vpc' do
cidr_block '172.29.0.0/16'
internet_gateway true
aws_tags chef=> 'my_vpc'
end
I have created ~/.aws/config and ~/.aws/credentials files as well.
Any guidance?