confluentinc/examples

cp-quickstart - start.sh hangs/blocks when run from terraform

Opened this issue · 0 comments

When I run start.sh from an interactive shell it works fine. But when I run it from a script called from terraform, it stops on the first call to check_topic_exists().

I thought maybe it was strange characters causing an issue, so I added the following before calling start.sh:

export BUILDKIT_PROGRESS=plain
export COMPOSE_ANSI=never

But this has not helped so far. The last thing I see is "Waiting up to 30 seconds for topics (pageviews, users) to exist", but it then sits there until terraform times out

My assumption is this is the line that is blocking:
docker-compose exec $containerName kafka-topics --bootstrap-server $brokerConn --describe --topic $topic >/dev/null

Any ideas? Not sure if this qualifies as a bug.