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
tf: Run setup.sh using remote-exec provisioner instead of userdata
This way we avoid a race condition where remote-exec is run before setup.sh
has finished running. This can happen because the provisioners are blocked
until the provision is complete, but userdata scripts run after the provisions
have been marked complete. So depending on how long it takes to create and
push the compose.tar.gz tarball we can be trying to execute docker-compose
commands before the files have been extracted.
This also has the added benefit that output from the execution of setup.sh
is visible when running terraform apply.
Signed-off-by: Manuel Mendez <[email protected]>
0 commit comments