Your agent.py likely passes a model ID as a string when creating the root_agent:
root_agent = Agent(
# ...
model=os.getenv("MODEL"),
# ...
)Note
Service agent == Google-managed service account
Service agents are created automatically as you enable and/or begin to use Google Cloud APIs.
Service agents often require and are automatically granted predefined IAM roles they need to manage the resources for the APIs they represent.
Sometimes, one or both of these does not happen when an API is enabled on a Google Cloud project. If that happens, don't "power cycle" the API off and on. There is a better way.
| #!/bin/bash | |
| # Network Traffic Capture and Profiling for Python scripts | |
| # | |
| # - Runs a Python script in an isolated network namespace and captures all its network | |
| # traffic. | |
| # - Profiles the Python script's performance using cProfile. | |
| # - Captures SSL/TLS keys for decrypting HTTPS traffic in Wireshark. | |
| # | |
| # Usage: ./run.sh <python_script.py> | |
| # |
A set of links to official Google documentation for security best practices and services relevant to the security domain.
Tip
Need more advice? Reach out to me at Devil Mice Labs to book a workshop or a deep dive.
| The configuration uses default credentials as set up by: | |
| databricks auth login --host https://9999487995419999.1.gcp.databricks.com/ |
| terraform { | |
| required_providers { | |
| databricks = { | |
| source = "databricks/databricks" | |
| version = "1.74.0" | |
| } | |
| google = { | |
| source = "hashicorp/google" | |
| version = "6.30.0" | |
| } |
Use reglient:
src="ghcr.io/iximiuz/labs/nginx:alpine"
dst="us-central1-docker.pkg.dev/dml-sandbox-firebass-21/demorepo/nginx:alpine"
curl -LO https://github.com/regclient/regclient/releases/download/v0.8.0/regctl-linux-amd64
chmod +x regctl-linux-amd64Google Cloud Blog post:
More detail on the Streaming Data Generator template:
The source code for the template:
Datastore is weird!
It is a legacy service tied to App Engine. Once enabled, App Engine API cannot be disabled on a Cloud project.
Cloud projects can use either Datastore or Firestore but not both. Once set, it cannot be changed. Since all legacy App Engine apps use Datastore, a different project must be used for Firestore usage.
This Codelab gives some historical context on App Engine, Datastore, and Firestore.
For Python client for Datastore API there are at least two options: