mitchellh / vagrant-aws

Use Vagrant to manage your EC2 and VPC instances.
MIT License
2.61k stars 574 forks source link

Multi-Machine Vagrantfile works on Linux host, but not Windows host: "Message: NoMethodError: undefined method `access_key_id' for nil:NilClass" #508

Closed jonathansd1 closed 6 years ago

jonathansd1 commented 7 years ago

I developed the Vagrantfile on my Linux machine, and now when I attempt to ensure it is compatible in Windows, I get a NoMethodError regarding aws.access_key_id. I would assume this is a failing of the vagrant-aws plugin, but I cannot be sure.

Linux Host OS: Arch Linux Vagrant: 1.9.2 Ruby: 2.2.5 (embedded)

Windows Host OS: Windows Server 2016 Vagrant: 1.9.2 (also tested v1.9.3 with same result) Ruby: 2.2.5 (embedded)

Vagrantfile: https://gist.github.com/jonathansd1/a7b3186255b68d53f5bb25b1b27c0099 Error: https://gist.github.com/jonathansd1/e1c100f9998fb626433606e25056c9fd

Note for testing purposes, you must provide most of the environment variables listed in the Vagrantfile (e.g., $env:VAGRANT_PROFILE=default in PowerShell).

jonathansd1 commented 6 years ago

This is my own mistake, as old and new documentation for access AWS credentials file on Windows conflicts.