feat: the solution architecture agent on the shared Execution engine
The reference agent's subject, cloud solution architecture, as an agent in the operating model agent's pattern: the Execution engine (from orchestration_engine) and one Workflow in app/solution_architecture, built for the settings and provider bundle by assembly.workflow_for. Copied from gcp_solution_architecture_agent at 8b397cd without its own engine: its role files, Skills, provider bundle, ADRs, vocabulary, scripts and evaluation datasets. The image takes the engine from a named build context and installs Terraform. It is called through the Orchestration engine, and its files are what the operating model agent digests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
# Secret Manager
|
||||
|
||||
Terraform creates the secret and who may read it. The value is added outside Terraform, so it never enters the state or the repository.
|
||||
|
||||
- `replication` is required: `auto {}` for Google-managed locations, or `user_managed` with one `replicas` block per location.
|
||||
- Grant `roles/secretmanager.secretAccessor` on the secret, to the one identity that reads it.
|
||||
- Never write a `google_secret_manager_secret_version` with the value in the configuration.
|
||||
|
||||
```hcl
|
||||
variable "project_id" {
|
||||
type = string
|
||||
description = "Project to deploy into."
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
type = string
|
||||
description = "Region for regional resources."
|
||||
}
|
||||
|
||||
resource "google_service_account" "reader" {
|
||||
project = var.project_id
|
||||
account_id = "api-key-reader"
|
||||
display_name = "Reads the API key"
|
||||
}
|
||||
|
||||
resource "google_secret_manager_secret" "api_key" {
|
||||
project = var.project_id
|
||||
secret_id = "partner-api-key"
|
||||
|
||||
replication {
|
||||
user_managed {
|
||||
replicas {
|
||||
location = var.region
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "google_secret_manager_secret_iam_member" "reader_reads_api_key" {
|
||||
project = var.project_id
|
||||
secret_id = google_secret_manager_secret.api_key.secret_id
|
||||
role = "roles/secretmanager.secretAccessor"
|
||||
member = google_service_account.reader.member
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user