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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| diff=$(git diff --cached) | |
| if [[ -z "$diff" ]]; then | |
| echo "Error: No staged changes found." >&2 | |
| exit 1 | |
| fi | |
| tmpfile=$(mktemp /tmp/oc-diff-XXXXXX) |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| diff=$(git diff --cached) | |
| if [[ -z "$diff" ]]; then | |
| echo "Error: No staged changes found." >&2 | |
| exit 1 | |
| fi | |
| PROMPT='Analyze the following git diff and generate a Conventional Commits message. |
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
| CREATE TABLE alb_log AS | |
| SELECT * | |
| FROM read_csv( | |
| '/<folder path>/*.log.gz', | |
| columns={ | |
| 'type': 'VARCHAR', | |
| 'timestamp': 'TIMESTAMP', | |
| 'elb': 'VARCHAR', | |
| 'client_ip_port': 'VARCHAR', | |
| 'target_ip_port': 'VARCHAR', |
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
| FROM public.ecr.aws/lambda/python:3.12 | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv | |
| ENV PATH="/app/.venv/bin:$PATH" | |
| ENV UV_CACHE_DIR=/tmp/.uv_cache | |
| COPY lambda_function.py logging.conf pyproject.toml uv.lock pytest.ini ${LAMBDA_TASK_ROOT}/ | |
| COPY tests ${LAMBDA_TASK_ROOT}/tests/ | |
| # test with all dependencies |