-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Windows support #202
Windows support #202
Conversation
Not sure where it's coming from, since I use |
Weird that it was working on the other thread. Wondering what region is being passed. Try adding this and seeing what the region is set to: def client_options
return {} unless @info # aws_secret helper wont have @info
x = if @info['role_arn']
client_assume_role_options
else
client_default_options
end
puts "client_options:"
pp client_options
x
end The terrraspace_plugin_aws uses the aws_data library to detect region here: https://github.com/boltops-tools/aws_data/blob/master/lib/aws_data.rb#L10 So that could be related. Maybe in the other terminal the AWS_REGION env was set. Though, still would like to fix the aws region detection either way. π |
Nah, it's the same terminal, and no env var is used. I configured the default AWS profile. Not sure if your snippet is correct, because it goes in an endless loop on If I change it to: def client_options
return {} unless @info # aws_secret helper wont have @info
x = if @info['role_arn']
client_assume_role_options
else
client_default_options
end
puts "client_options:"
puts x
x
end It prints
|
To be sure, I changed the version in my local copy and ran
So I'm on the correct branch for sure :) |
The incorrect region is coming from
If I change it to
I get:
|
If I remove all ERB templates from
|
So I think this PR can be merged as a way to support Windows, even without the ERB support right now (maybe a future fix?) ππ» ππ» |
Merged. On the road now. Will release once get back to a computer. π» Note: For the error above. For some reason it looks like the ERB is not being rendered. Unsure. |
Yeah, looks like that. Thanks! Looking forward for the release :) |
Can you test again when you get a chance. This time on the master branch. Test with ERB. It was a simple fix in #203 Actually created the entire PR on my phone π±while in the car π lol π€£ |
Master works, with ERB :) ππ» |
Released in 1.1.2 |
Awesome, thanks for the support! |
This is a π bug fix.
This is a πββοΈ feature or enhancement.
bundle exec rspec
to verify this)Summary
Add support for windows. Note: would like to test this some more but this seems to be enough to support windows.
Context
Related conversation #84
How to Test
Go through one of the getting started guides on Windows
https://terraspace.cloud/getting-started/
Version Changes
Patch