When running yarn run-local-cloud we are starting the localstack docker image and initialize the DynamoDB tables and S3 buckets using the Terraform
scripts.
When we are starting some of the services the localstack image starts automatically along with it because for each service we have in docker-compose
depends on the parameter:
depends_on: - localstack
That's why we need to run yarn run-local-cloud only for the first-time initialization.
For the tunnelbroker we have depends_on for a RabbitMQ local docker image as well (but it doesn't need to be initialized, just started along with the
service).
From the described above the name of the command doesn't reflect what it is doing and the name changed to init-local-cloud in the services package.json
would be more purpose-reflecting.
Linear task: ENG-1275