You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
Traceback (most recent call last):
File "./terraform.py", line 562, in
main()
File "./terraform.py", line 547, in main
output = query_list(hosts)
File "./terraform.py", line 489, in query_list
for name, attrs, hostgroups in hosts:
File "./terraform.py", line 68, in iterhosts
yield parser(resource, module_name)
File "./terraform.py", line 84, in inner
name, attrs, groups = func(_args, *_kwargs)
File "./terraform.py", line 330, in aws_host
'ansible_ssh_host': raw_attrs['public_ip'],
KeyError: u'public_ip'
Which is I believe due to the fact I have an instance without a public_ip (living in a private network):
Yes, that's exactly what we should do. Watch for a fix for this soon. (we'll be able to get to it sometime next week; it's a slow week because of American Thanksgiving.)
For VPC instances, vpc_destination_variable in ec2.ini provides a means of using which ever boto.ec2.instance variable makes the most sense for your use case.
check ati --help...you should be able to set what attribute you want to use as the target host for connection (i.e public_ip, private_ip, even one of the dns entries.)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Receiving this error:
Which is I believe due to the fact I have an instance without a public_ip (living in a private network):
Not quite sure how you want to solve that problem, but perhaps just ignore instances in .tfstate files if there is no public_ip?
The text was updated successfully, but these errors were encountered: