Skip to content

How automatically read ingestion yaml from folder by openmetadata? #19888

You must be logged in to vote

OpenMetadata does not natively support reading all ingestion YAML files from a folder in a single command. You can achieve this by using a script to iterate over the YAML files in a directory and execute the metadata ingest -c command for each file. This approach allows you to maintain versioned deployments and use Infrastructure as Code (IaC) practices.

#!/bin/bash

# Directory containing YAML files
CONFIG_DIR="/path/to/your/configs"

# Iterate over each YAML file in the directory
for yaml_file in "$CONFIG_DIR"/*.yaml; do
  echo "Processing $yaml_file"
  metadata ingest -c "$yaml_file"
done

This script will loop through all YAML files in the specified directory and run the ingestion com…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Prajwal214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants