{
  "repo": "tidbcloud/cloud-cicd",
  "binary": "kafka-run",
  "binary_path": "kafka_run/main.go",
  "dependencies": {
    "CLI go run kafka_run/main.go": {
      "infrastructure": {
        "ssh": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "REMOTE COMMAND EXECUTION",
              "trigger": "Dial the configured EC2 instance and run run_kafka.sh",
              "conditions": [
                "The CLI is executed"
              ],
              "implementation": "ConnectInstance() in kafka_run/main.go"
            }
          ]
        },
        "filesystem": {
          "conditions": [
            "Always"
          ],
          "operations": [
            {
              "operation": "READ FILES",
              "trigger": "Load the SSH private key from disk",
              "conditions": [
                "publicKeyAuthFunc() is reached"
              ],
              "implementation": "ioutil.ReadFile(keyPath)"
            }
          ]
        }
      },
      "services": []
    }
  }
}
