An autoscaling group by definition has instances are treated as
disposable by definition. Even if you expect Terraform to yield the
instance ids (plus IPs/DNS etc) to run your remote-exec provisioner
this would only apply in the first run, and only for the first few
instances that will be launched in said ASG.
I suggest implement the provisioner logic using cloud-init (or
similar) via `userdata` in the autoscaling_launch_configuration
resource.
Regards,
P.
> --
> You received this message because you are subscribed to the Google Groups
> "Terraform" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
terraform-too...@googlegroups.com.
> To post to this group, send email to
terrafo...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/terraform-tool/66795cba-792d-4ae4-8a62-0f734f9c4593%40googlegroups.com.
>
> For more options, visit
https://groups.google.com/d/optout.
--
Panagiotis Moustafellos