Lillian Jiang
10/15/2025, 9:06 PMairbyte-ci connectors --name=source-gmail build to AWS ECR and then running it on AWS ECS. However, I'm not sure where the output of this file would be stored? Has anyone tried this approach before and how has it gone?kapa.ai
10/15/2025, 9:07 PMbash docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-gmail:dev read --config /secrets/config.json --catalog /integration_tests/test_catalog.json > data.json In this example, the output is redirected to a file called data.json. If you do not redirect the output, it will appear in the container's stdout, which you can access via ECS logs or other logging mechanisms. If you want to pipe the output directly to another process or connector, you need to ensure that the Docker container reads from stdin (for destinations) or writes to stdout (for sources). For example, when chaining a source and destination connector, you would use the -i flag with Docker to allow piping: bash cat data.json | docker run --rm -i ... destination-connector write --config ... --catalog ... This approach has been confirmed to work by users in the Airbyte community, and the key point is that the output is not stored in a file by default but is written to stdout, so you need to capture or redirect it as needed for your use case. Running the connector on AWS ECS would follow the same principle: the output will be in the container's logs unless you explicitly redirect it to a file or another service within your ECS task definition. For more details and a real-world example, see this discussion: [Using source and destination connectors without web app](https://discuss.airbyte.io/t/2255)<source>https://discuss.airbyte.io/t/2255</source>. The official documentation does not provide step-by-step instructions for running connectors on ECS specifically, but the general Docker behavior applies. If you need to push your image to AWS ECR, you can follow the standard Docker push process after building your connector image, as described in the docs: [Push your connector image to your private Docker registry](https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#3-push-your-connector-image-to-your-private-docker-registry)<source>https://docs.airbyte.com/platform/operator-guides/using-custom-connectors#3-push-your-connector-image-to-your-private-docker-registry</source>. In summary: - The output of a source connector run independently is written to stdout. - You can capture this output in ECS logs or redirect it to a file or another process. - This approach is supported and has been used by others in the community.