Join Slack
Powered by
This message was deleted.
# bolt
s
Slackbot
10/25/2023, 2:10 PM
This message was deleted.
y
Yury Bushmelev
10/25/2023, 4:01 PM
Terraform dynamic inventory uses the state to fill the inventory. It doesn’t exist before apply
d
damsdri
10/25/2023, 8:11 PM
True, but the
get_targets
function gets called after the provisioning. So, I would think the statefile does exist
y
Yury Bushmelev
10/26/2023, 5:02 AM
get_targets() doesn’t refresh the inventory. IIRC you can call the resolve_references function to get the updated targets as a workaround
2
Views
Open in Slack
Previous
Next