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
| module "gpudirect" { | |
| source = "git::https://github.com/GoogleCloudPlatform/professional-services.git//examples/gpudirect-tcpx" | |
| project_id = "PROJECT-ID" | |
| region = "us-central1" | |
| } | |
| data "google_service_account" "sa" { | |
| account_id = "[email protected]" | |
| } |
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
| # ------------------------------------------------------------------- | |
| # log: simple logger with timestamp, log levels, and color support | |
| # | |
| # Usage: | |
| # log "message" | |
| # log INFO "message" | |
| # log WARN "message with \nnewlines" | |
| # log ERROR "something went wrong" | |
| # log DEBUG "debug info" | |
| # |
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
| git-save() { ( | |
| # Safe options scoped to subshell | |
| set -e | |
| set -u | |
| set -o pipefail 2>/dev/null || true | |
| # Configuration (add flags later if you want) | |
| REMOTE="origin" | |
| SNAPSHOT_BRANCH="snapshot/${USER:-dev}" | |
| INCLUDE_IGNORED="false" |