terraforming
terraforming copied to clipboard
undefined method 'role_name' when running iamip
$> terraforming iamip
(erb):5:in `block in apply_template': undefined method `role_name' for nil:NilClass (NoMethodError)
from (erb):1:in `each'
from (erb):1:in `apply_template'
from /usr/local/lib/ruby/2.4.0/erb.rb:896:in `eval'
from /usr/local/lib/ruby/2.4.0/erb.rb:896:in `result'
from /usr/local/bundle/gems/terraforming-0.16.0/lib/terraforming/util.rb:4:in `apply_template'
from /usr/local/bundle/gems/terraforming-0.16.0/lib/terraforming/resource/iam_instance_profile.rb:19:in `tf'
from /usr/local/bundle/gems/terraforming-0.16.0/lib/terraforming/resource/iam_instance_profile.rb:7:in `tf'
from /usr/local/bundle/gems/terraforming-0.16.0/lib/terraforming/cli.rb:258:in `tf'
from /usr/local/bundle/gems/terraforming-0.16.0/lib/terraforming/cli.rb:245:in `execute'
from /usr/local/bundle/gems/terraforming-0.16.0/lib/terraforming/cli.rb:90:in `iamip'
from /usr/local/bundle/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
from /usr/local/bundle/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
from /usr/local/bundle/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
from /usr/local/bundle/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
from /usr/local/bundle/gems/terraforming-0.16.0/bin/terraforming:5:in `<top (required)>'
from /usr/local/bundle/bin/terraforming:21:in `load'
from /usr/local/bundle/bin/terraforming:21:in `<main>'
Same error +1
I used the docker image
Perhaps this could be a good addition to the documentation, this is to export all using docker and supporting different AWS profiles
export AWS_DEFAULT_PROFILE=xxxx
docker run --rm quay.io/dtan4/terraforming terraforming --help | grep terraforming | grep -v help | awk '{ print "docker run --rm --name terraforming -v $HOME/.aws/:/root/.aws:ro -e AWS_DEFAULT_PROFILE=${AWS_DEFAULT_PROFILE} quay.io/dtan4/terraforming:latest terraforming", $2, "--profile", "${AWS_DEFAULT_PROFILE}", ">", $2".tf";}' | bash
Also same error, any way to get around this?
Same here, would love to get this working!
I am also getting this error.
Same error.
Platform: Linux (Ubuntu 18.04) Ruby version: ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu] Terraforming version: terraforming (0.16.0)
Same error. 😢 Platform: MacOS High Sierra 10.13.6 Ruby version: ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17] Terraform version: Terraform v0.11.11 Terraforming version: pretty recent
Same error 😞
Got this error yesterday. I believe I have a fix for it. Let me check it and I'll add a PR.