Last active
April 27, 2025 11:27
-
-
Save jesseloudon/a5f0bd2688a4cfb701233835d54613ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
json_file="workspace-ip-access-lists/${{ parameters.BUNDLE_TARGET }}.json" | |
jq -c '.[]' "$json_file" | while IFS= read -r json_object_creation; do | |
operation=$(echo $json_object_creation | jq -r '.operation') | |
if [[ ${operation,,} == "create"* ]]; then | |
echo "Creating new specified Databricks IP Access List: $json_object_creation" | |
databricks ip-access-lists create --json "$json_object_creation" -t "${{ parameters.BUNDLE_TARGET }}" --log-level "${{ parameters.DATABRICKS_LOG_LEVEL }}" || true | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment