After reading all opinions in Best approach to create AWS VPC, NAT, EC2 instances using chef 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.
aws_vpc ‘test_vpc’ do
aws_tags chef=> 'my_vpc’
I have created ~/.aws/config and ~/.aws/credentials files as well.