[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-aws-aws-secrets-manager":3,"mdc--6e6whu-key":35,"related-org-aws-aws-secrets-manager":1353,"related-repo-aws-aws-secrets-manager":1524},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":24,"repoUrl":25,"updatedAt":26,"license":27,"forks":28,"topics":29,"repo":30,"sourceUrl":33,"mdContent":34},"aws-secrets-manager","manage secrets with AWS Secrets Manager","Secret safety for AWS Secrets Manager, secret management, credentials, API keys, tokens, and passwords. Prevents AI agents from directly fetching secret values and teaches runtime dynamic references with asm-exec so plaintext never enters the LLM context window.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"aws","AWS (Amazon)","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Faws.png",[12,16,19,22],{"name":13,"slug":14,"type":15},"Security","security","tag",{"name":17,"slug":18,"type":15},"Auth","auth",{"name":20,"slug":21,"type":15},"Infrastructure","infrastructure",{"name":23,"slug":8,"type":15},"AWS",1822,"https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws","2026-07-12T08:42:45.008251",null,157,[],{"repoUrl":25,"stars":24,"forks":28,"topics":31,"description":32},[],"Official, AWS-supported MCP servers, skills, and plugins to help AI agents build on AWS","https:\u002F\u002Fgithub.com\u002Faws\u002Fagent-toolkit-for-aws\u002Ftree\u002FHEAD\u002Fplugins\u002Faws-core\u002Fskills\u002Faws-secrets-manager","---\nname: aws-secrets-manager\ndescription: >\n  Secret safety for AWS Secrets Manager, secret management, credentials, API keys,\n  tokens, and passwords. Prevents AI agents from directly fetching secret values\n  and teaches runtime dynamic references with asm-exec so plaintext never enters\n  the LLM context window.\nversion: 1\n---\n\n# Using Secrets Safely with Agents\n\n## Overview\n\nWhen AI agents handle secrets, credentials, API keys, tokens, or passwords with\nshell or AWS API access, they can call `aws secretsmanager get-secret-value`\nand receive plaintext values in their context window. This creates risk:\nsecrets may leak into logs, conversation history, or downstream tool calls.\n\nThis skill teaches a safer pattern: **dynamic references** resolved at runtime\nby a wrapper script (`asm-exec`), so the agent never sees the secret value.\n\n> **Best-effort defense, not a security boundary.** This prevents the most common\n> leakage path but cannot stop all evasion vectors. Combine with IAM\n> least-privilege, CloudTrail monitoring, and VPC endpoint policies.\n\n## Rules\n\nYou MUST follow these rules when working with secrets:\n\n1. **MUST NOT call `get-secret-value` or `batch-get-secret-value`** -- not via AWS\n   CLI, SDK, MCP tools, curl, or any other mechanism.\n2. **MUST NOT attempt to read secret values** from the Secrets Manager Agent (SMA)\n   daemon directly (localhost:2773 or any loopback variant).\n3. **MUST use `{{resolve:secretsmanager:...}}` references** -- these are\n   resolved at runtime by `asm-exec` without exposing values to you.\n\n## The `{{resolve:...}}` Syntax\n\n```\n{{resolve:secretsmanager:\u003Csecret-id>:\u003Cfield-type>:\u003Cjson-key>:\u003Cversion-stage>}}\n```\n\n| Component | Required | Default | Example |\n|-----------|----------|---------|---------|\n| `secret-id` | Yes | -- | `prod\u002Fdb-creds` or full ARN |\n| `field-type` | No | `SecretString` | `SecretString` |\n| `json-key` | No | (full value) | `password` |\n| `version-stage` | No | `AWSCURRENT` | `AWSPENDING` |\n\n## Using `asm-exec`\n\n`asm-exec` is a wrapper that resolves `{{resolve:...}}` references in command\narguments and environment variables, then `exec`s the target command. The secret\nvalue exists only in the child process -- never in the agent's context.\n\n### Usage\n\n```bash\n# Pass a database password to psql without exposing it\nasm-exec -- psql \\\n  \"host=mydb.example.com \\\n   user={{resolve:secretsmanager:prod\u002Fdb-creds:SecretString:username}} \\\n   password={{resolve:secretsmanager:prod\u002Fdb-creds:SecretString:password}}\" \\\n  -c \"SELECT * FROM users LIMIT 10\"\n\n# Use default field-type (SecretString) and full value (no json-key)\nasm-exec -- curl -H \"Authorization: Bearer {{resolve:secretsmanager:prod\u002Fapi-token}}\" \\\n  https:\u002F\u002Fapi.example.com\u002Fdata\n\n# Multiple secrets in one command\nasm-exec -- mysql \\\n  -h {{resolve:secretsmanager:prod\u002Fmysql:SecretString:host}} \\\n  -u {{resolve:secretsmanager:prod\u002Fmysql:SecretString:username}} \\\n  -p{{resolve:secretsmanager:prod\u002Fmysql:SecretString:password}} \\\n  -e \"SHOW TABLES\"\n```\n\n### How It Works\n\n1. Scans all command arguments for `{{resolve:...}}` patterns\n2. Resolves each reference through the first available backend, in order:\n   1. **AWS Secrets Manager Agent (SMA)** on localhost:2773 (zero-latency, cached)\n   2. **AWS MCP endpoint** (`https:\u002F\u002Faws-mcp.us-east-1.api.aws\u002Fmcp`), calling the\n      `aws___call_aws` tool over a SigV4-signed request\n   3. Determines the secret's region from an ARN's region segment, or from\n      `AWS_REGION` \u002F `AWS_DEFAULT_REGION`, and passes it to the resolver\n3. Substitutes resolved values using `re.sub` with a callable (single-pass --\n   prevents re-scan injection if a secret value contains `{{resolve:...}}`)\n4. Runs the target command via `subprocess.run` -- secret values exist only in the\n   asm-exec process, never in the agent's context window\n\n> **No local AWS CLI fallback for resolution.** `asm-exec` does not shell out to\n> `aws secretsmanager get-secret-value` to resolve references. Resolution happens\n> only through SMA or the MCP endpoint, so the plaintext value is never written to\n> a local process's stdout where it could be captured.\n\n### SigV4 signing\n\nThe MCP endpoint authenticates every tool call with AWS SigV4. `asm-exec` signs\nrequests itself using only the Python standard library (`hashlib`\u002F`hmac`) -- it\ndoes **not** depend on botocore or spin up the `mcp-proxy-for-aws` proxy, keeping\nthe wrapper a lightweight ephemeral process. The signing service and region are\ninferred from the endpoint hostname (e.g. `aws-mcp.us-east-1.api.aws` ->\nservice `aws-mcp`, region `us-east-1`); this signing region is independent of the\nsecret's own region, which is passed as `--region` to the server-side CLI command.\n\nCredentials for signing are resolved in order: environment variables\n(`AWS_ACCESS_KEY_ID` etc.), `aws configure export-credentials` (AWS CLI v2), then\n`aws configure get` (AWS CLI v1).\n\n### Prerequisites\n\nEither backend must be reachable, with credentials that have\n`secretsmanager:GetSecretValue` permission:\n\n- **AWS Secrets Manager Agent (SMA)** running on localhost:2773, OR\n- **AWS credentials** resolvable for SigV4 signing of the MCP endpoint (see above).\n  For cross-region secrets, set `AWS_REGION` (or use a full ARN) so the correct\n  region is targeted.\n\nSee [SMA setup guide](https:\u002F\u002Fdocs.aws.amazon.com\u002Fsecretsmanager\u002Flatest\u002Fuserguide\u002Fsecrets-manager-agent.html).\n\n## Common Patterns\n\n### Database connections\n\n```bash\nasm-exec -- psql \"postgresql:\u002F\u002F{{resolve:secretsmanager:prod\u002Fdb:SecretString:username}}:{{resolve:secretsmanager:prod\u002Fdb:SecretString:password}}@db.example.com:5432\u002Fmydb\"\n```\n\n### Docker with secrets\n\n```bash\nasm-exec -- docker run -e \"DB_PASSWORD={{resolve:secretsmanager:prod\u002Fdb:SecretString:password}}\" myapp:latest\n```\n\n### Configuration file templating\n\n```bash\n# Generate config with resolved secrets, write to file\nasm-exec -- sh -c 'echo \"password={{resolve:secretsmanager:app\u002Fdb:SecretString:password}}\" > \u002Ftmp\u002Fapp.conf'\n```\n\n## Structural Enforcement (Plugin Hook)\n\nWhen the `aws-core` plugin is enabled, a `PreToolUse` hook automatically blocks\nany attempt to call `get-secret-value` or `batch-get-secret-value` -- via AWS CLI,\nMCP tools, or direct SMA access. No manual configuration needed.\n\nThe hook is defined at `plugins\u002Faws-core\u002Fhooks\u002Fhooks.json` and activates\nautomatically when the plugin is installed.\n\n## Troubleshooting\n\n### \"Secret not found\" errors\n\nVerify the secret exists and your IAM role has `secretsmanager:GetSecretValue`\npermission. Check the secret name matches exactly (case-sensitive).\n\n### SMA connection refused\n\nThe Secrets Manager Agent may not be running. This is non-fatal: `asm-exec`\nfalls through to the SigV4-signed MCP endpoint. Ensure AWS credentials are\nresolvable (see SigV4 signing above) so that backend can authenticate.\n\n### \"Failed to resolve\" errors\n\nBoth backends were unreachable or returned no value. Check that either SMA is\nrunning or AWS credentials are valid (`aws sts get-caller-identity`), that the\nsecret's region is correct (set `AWS_REGION` or use a full ARN), and that your\nidentity has `secretsmanager:GetSecretValue` on the secret. A `401` from the MCP\nendpoint indicates a SigV4 signing or credential problem, not a missing secret.\n\n### Resolution produces empty string\n\nThe JSON key may not exist in the secret value. Verify the secret structure\nin the AWS Console or ask the secret owner to confirm the available keys.\n",{"data":36,"body":38},{"name":4,"description":6,"version":37},1,{"type":39,"children":40},"root",[41,50,57,72,93,107,113,118,182,196,208,377,388,413,420,718,724,837,864,870,945,974,980,993,1023,1039,1045,1051,1086,1092,1143,1149,1200,1206,1240,1253,1259,1265,1277,1283,1295,1301,1336,1342,1347],{"type":42,"tag":43,"props":44,"children":46},"element","h1",{"id":45},"using-secrets-safely-with-agents",[47],{"type":48,"value":49},"text","Using Secrets Safely with Agents",{"type":42,"tag":51,"props":52,"children":54},"h2",{"id":53},"overview",[55],{"type":48,"value":56},"Overview",{"type":42,"tag":58,"props":59,"children":60},"p",{},[61,63,70],{"type":48,"value":62},"When AI agents handle secrets, credentials, API keys, tokens, or passwords with\nshell or AWS API access, they can call ",{"type":42,"tag":64,"props":65,"children":67},"code",{"className":66},[],[68],{"type":48,"value":69},"aws secretsmanager get-secret-value",{"type":48,"value":71},"\nand receive plaintext values in their context window. This creates risk:\nsecrets may leak into logs, conversation history, or downstream tool calls.",{"type":42,"tag":58,"props":73,"children":74},{},[75,77,83,85,91],{"type":48,"value":76},"This skill teaches a safer pattern: ",{"type":42,"tag":78,"props":79,"children":80},"strong",{},[81],{"type":48,"value":82},"dynamic references",{"type":48,"value":84}," resolved at runtime\nby a wrapper script (",{"type":42,"tag":64,"props":86,"children":88},{"className":87},[],[89],{"type":48,"value":90},"asm-exec",{"type":48,"value":92},"), so the agent never sees the secret value.",{"type":42,"tag":94,"props":95,"children":96},"blockquote",{},[97],{"type":42,"tag":58,"props":98,"children":99},{},[100,105],{"type":42,"tag":78,"props":101,"children":102},{},[103],{"type":48,"value":104},"Best-effort defense, not a security boundary.",{"type":48,"value":106}," This prevents the most common\nleakage path but cannot stop all evasion vectors. Combine with IAM\nleast-privilege, CloudTrail monitoring, and VPC endpoint policies.",{"type":42,"tag":51,"props":108,"children":110},{"id":109},"rules",[111],{"type":48,"value":112},"Rules",{"type":42,"tag":58,"props":114,"children":115},{},[116],{"type":48,"value":117},"You MUST follow these rules when working with secrets:",{"type":42,"tag":119,"props":120,"children":121},"ol",{},[122,147,157],{"type":42,"tag":123,"props":124,"children":125},"li",{},[126,145],{"type":42,"tag":78,"props":127,"children":128},{},[129,131,137,139],{"type":48,"value":130},"MUST NOT call ",{"type":42,"tag":64,"props":132,"children":134},{"className":133},[],[135],{"type":48,"value":136},"get-secret-value",{"type":48,"value":138}," or ",{"type":42,"tag":64,"props":140,"children":142},{"className":141},[],[143],{"type":48,"value":144},"batch-get-secret-value",{"type":48,"value":146}," -- not via AWS\nCLI, SDK, MCP tools, curl, or any other mechanism.",{"type":42,"tag":123,"props":148,"children":149},{},[150,155],{"type":42,"tag":78,"props":151,"children":152},{},[153],{"type":48,"value":154},"MUST NOT attempt to read secret values",{"type":48,"value":156}," from the Secrets Manager Agent (SMA)\ndaemon directly (localhost:2773 or any loopback variant).",{"type":42,"tag":123,"props":158,"children":159},{},[160,173,175,180],{"type":42,"tag":78,"props":161,"children":162},{},[163,165,171],{"type":48,"value":164},"MUST use ",{"type":42,"tag":64,"props":166,"children":168},{"className":167},[],[169],{"type":48,"value":170},"{{resolve:secretsmanager:...}}",{"type":48,"value":172}," references",{"type":48,"value":174}," -- these are\nresolved at runtime by ",{"type":42,"tag":64,"props":176,"children":178},{"className":177},[],[179],{"type":48,"value":90},{"type":48,"value":181}," without exposing values to you.",{"type":42,"tag":51,"props":183,"children":185},{"id":184},"the-resolve-syntax",[186,188,194],{"type":48,"value":187},"The ",{"type":42,"tag":64,"props":189,"children":191},{"className":190},[],[192],{"type":48,"value":193},"{{resolve:...}}",{"type":48,"value":195}," Syntax",{"type":42,"tag":197,"props":198,"children":202},"pre",{"className":199,"code":201,"language":48},[200],"language-text","{{resolve:secretsmanager:\u003Csecret-id>:\u003Cfield-type>:\u003Cjson-key>:\u003Cversion-stage>}}\n",[203],{"type":42,"tag":64,"props":204,"children":206},{"__ignoreMap":205},"",[207],{"type":48,"value":201},{"type":42,"tag":209,"props":210,"children":211},"table",{},[212,241],{"type":42,"tag":213,"props":214,"children":215},"thead",{},[216],{"type":42,"tag":217,"props":218,"children":219},"tr",{},[220,226,231,236],{"type":42,"tag":221,"props":222,"children":223},"th",{},[224],{"type":48,"value":225},"Component",{"type":42,"tag":221,"props":227,"children":228},{},[229],{"type":48,"value":230},"Required",{"type":42,"tag":221,"props":232,"children":233},{},[234],{"type":48,"value":235},"Default",{"type":42,"tag":221,"props":237,"children":238},{},[239],{"type":48,"value":240},"Example",{"type":42,"tag":242,"props":243,"children":244},"tbody",{},[245,279,313,343],{"type":42,"tag":217,"props":246,"children":247},{},[248,258,263,268],{"type":42,"tag":249,"props":250,"children":251},"td",{},[252],{"type":42,"tag":64,"props":253,"children":255},{"className":254},[],[256],{"type":48,"value":257},"secret-id",{"type":42,"tag":249,"props":259,"children":260},{},[261],{"type":48,"value":262},"Yes",{"type":42,"tag":249,"props":264,"children":265},{},[266],{"type":48,"value":267},"--",{"type":42,"tag":249,"props":269,"children":270},{},[271,277],{"type":42,"tag":64,"props":272,"children":274},{"className":273},[],[275],{"type":48,"value":276},"prod\u002Fdb-creds",{"type":48,"value":278}," or full ARN",{"type":42,"tag":217,"props":280,"children":281},{},[282,291,296,305],{"type":42,"tag":249,"props":283,"children":284},{},[285],{"type":42,"tag":64,"props":286,"children":288},{"className":287},[],[289],{"type":48,"value":290},"field-type",{"type":42,"tag":249,"props":292,"children":293},{},[294],{"type":48,"value":295},"No",{"type":42,"tag":249,"props":297,"children":298},{},[299],{"type":42,"tag":64,"props":300,"children":302},{"className":301},[],[303],{"type":48,"value":304},"SecretString",{"type":42,"tag":249,"props":306,"children":307},{},[308],{"type":42,"tag":64,"props":309,"children":311},{"className":310},[],[312],{"type":48,"value":304},{"type":42,"tag":217,"props":314,"children":315},{},[316,325,329,334],{"type":42,"tag":249,"props":317,"children":318},{},[319],{"type":42,"tag":64,"props":320,"children":322},{"className":321},[],[323],{"type":48,"value":324},"json-key",{"type":42,"tag":249,"props":326,"children":327},{},[328],{"type":48,"value":295},{"type":42,"tag":249,"props":330,"children":331},{},[332],{"type":48,"value":333},"(full value)",{"type":42,"tag":249,"props":335,"children":336},{},[337],{"type":42,"tag":64,"props":338,"children":340},{"className":339},[],[341],{"type":48,"value":342},"password",{"type":42,"tag":217,"props":344,"children":345},{},[346,355,359,368],{"type":42,"tag":249,"props":347,"children":348},{},[349],{"type":42,"tag":64,"props":350,"children":352},{"className":351},[],[353],{"type":48,"value":354},"version-stage",{"type":42,"tag":249,"props":356,"children":357},{},[358],{"type":48,"value":295},{"type":42,"tag":249,"props":360,"children":361},{},[362],{"type":42,"tag":64,"props":363,"children":365},{"className":364},[],[366],{"type":48,"value":367},"AWSCURRENT",{"type":42,"tag":249,"props":369,"children":370},{},[371],{"type":42,"tag":64,"props":372,"children":374},{"className":373},[],[375],{"type":48,"value":376},"AWSPENDING",{"type":42,"tag":51,"props":378,"children":380},{"id":379},"using-asm-exec",[381,383],{"type":48,"value":382},"Using ",{"type":42,"tag":64,"props":384,"children":386},{"className":385},[],[387],{"type":48,"value":90},{"type":42,"tag":58,"props":389,"children":390},{},[391,396,398,403,405,411],{"type":42,"tag":64,"props":392,"children":394},{"className":393},[],[395],{"type":48,"value":90},{"type":48,"value":397}," is a wrapper that resolves ",{"type":42,"tag":64,"props":399,"children":401},{"className":400},[],[402],{"type":48,"value":193},{"type":48,"value":404}," references in command\narguments and environment variables, then ",{"type":42,"tag":64,"props":406,"children":408},{"className":407},[],[409],{"type":48,"value":410},"exec",{"type":48,"value":412},"s the target command. The secret\nvalue exists only in the child process -- never in the agent's context.",{"type":42,"tag":414,"props":415,"children":417},"h3",{"id":416},"usage",[418],{"type":48,"value":419},"Usage",{"type":42,"tag":197,"props":421,"children":425},{"className":422,"code":423,"language":424,"meta":205,"style":205},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Pass a database password to psql without exposing it\nasm-exec -- psql \\\n  \"host=mydb.example.com \\\n   user={{resolve:secretsmanager:prod\u002Fdb-creds:SecretString:username}} \\\n   password={{resolve:secretsmanager:prod\u002Fdb-creds:SecretString:password}}\" \\\n  -c \"SELECT * FROM users LIMIT 10\"\n\n# Use default field-type (SecretString) and full value (no json-key)\nasm-exec -- curl -H \"Authorization: Bearer {{resolve:secretsmanager:prod\u002Fapi-token}}\" \\\n  https:\u002F\u002Fapi.example.com\u002Fdata\n\n# Multiple secrets in one command\nasm-exec -- mysql \\\n  -h {{resolve:secretsmanager:prod\u002Fmysql:SecretString:host}} \\\n  -u {{resolve:secretsmanager:prod\u002Fmysql:SecretString:username}} \\\n  -p{{resolve:secretsmanager:prod\u002Fmysql:SecretString:password}} \\\n  -e \"SHOW TABLES\"\n","bash",[426],{"type":42,"tag":64,"props":427,"children":428},{"__ignoreMap":205},[429,440,466,486,499,517,541,551,560,599,608,616,625,646,664,682,696],{"type":42,"tag":430,"props":431,"children":433},"span",{"class":432,"line":37},"line",[434],{"type":42,"tag":430,"props":435,"children":437},{"style":436},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[438],{"type":48,"value":439},"# Pass a database password to psql without exposing it\n",{"type":42,"tag":430,"props":441,"children":443},{"class":432,"line":442},2,[444,449,455,460],{"type":42,"tag":430,"props":445,"children":447},{"style":446},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[448],{"type":48,"value":90},{"type":42,"tag":430,"props":450,"children":452},{"style":451},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[453],{"type":48,"value":454}," --",{"type":42,"tag":430,"props":456,"children":457},{"style":451},[458],{"type":48,"value":459}," psql",{"type":42,"tag":430,"props":461,"children":463},{"style":462},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[464],{"type":48,"value":465}," \\\n",{"type":42,"tag":430,"props":467,"children":469},{"class":432,"line":468},3,[470,476,481],{"type":42,"tag":430,"props":471,"children":473},{"style":472},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[474],{"type":48,"value":475},"  \"",{"type":42,"tag":430,"props":477,"children":478},{"style":451},[479],{"type":48,"value":480},"host=mydb.example.com ",{"type":42,"tag":430,"props":482,"children":483},{"style":462},[484],{"type":48,"value":485},"\\\n",{"type":42,"tag":430,"props":487,"children":489},{"class":432,"line":488},4,[490,495],{"type":42,"tag":430,"props":491,"children":492},{"style":451},[493],{"type":48,"value":494},"   user={{resolve:secretsmanager:prod\u002Fdb-creds:SecretString:username}} ",{"type":42,"tag":430,"props":496,"children":497},{"style":462},[498],{"type":48,"value":485},{"type":42,"tag":430,"props":500,"children":502},{"class":432,"line":501},5,[503,508,513],{"type":42,"tag":430,"props":504,"children":505},{"style":451},[506],{"type":48,"value":507},"   password={{resolve:secretsmanager:prod\u002Fdb-creds:SecretString:password}}",{"type":42,"tag":430,"props":509,"children":510},{"style":472},[511],{"type":48,"value":512},"\"",{"type":42,"tag":430,"props":514,"children":515},{"style":462},[516],{"type":48,"value":465},{"type":42,"tag":430,"props":518,"children":520},{"class":432,"line":519},6,[521,526,531,536],{"type":42,"tag":430,"props":522,"children":523},{"style":451},[524],{"type":48,"value":525},"  -c",{"type":42,"tag":430,"props":527,"children":528},{"style":472},[529],{"type":48,"value":530}," \"",{"type":42,"tag":430,"props":532,"children":533},{"style":451},[534],{"type":48,"value":535},"SELECT * FROM users LIMIT 10",{"type":42,"tag":430,"props":537,"children":538},{"style":472},[539],{"type":48,"value":540},"\"\n",{"type":42,"tag":430,"props":542,"children":544},{"class":432,"line":543},7,[545],{"type":42,"tag":430,"props":546,"children":548},{"emptyLinePlaceholder":547},true,[549],{"type":48,"value":550},"\n",{"type":42,"tag":430,"props":552,"children":554},{"class":432,"line":553},8,[555],{"type":42,"tag":430,"props":556,"children":557},{"style":436},[558],{"type":48,"value":559},"# Use default field-type (SecretString) and full value (no json-key)\n",{"type":42,"tag":430,"props":561,"children":563},{"class":432,"line":562},9,[564,568,572,577,582,586,591,595],{"type":42,"tag":430,"props":565,"children":566},{"style":446},[567],{"type":48,"value":90},{"type":42,"tag":430,"props":569,"children":570},{"style":451},[571],{"type":48,"value":454},{"type":42,"tag":430,"props":573,"children":574},{"style":451},[575],{"type":48,"value":576}," curl",{"type":42,"tag":430,"props":578,"children":579},{"style":451},[580],{"type":48,"value":581}," -H",{"type":42,"tag":430,"props":583,"children":584},{"style":472},[585],{"type":48,"value":530},{"type":42,"tag":430,"props":587,"children":588},{"style":451},[589],{"type":48,"value":590},"Authorization: Bearer {{resolve:secretsmanager:prod\u002Fapi-token}}",{"type":42,"tag":430,"props":592,"children":593},{"style":472},[594],{"type":48,"value":512},{"type":42,"tag":430,"props":596,"children":597},{"style":462},[598],{"type":48,"value":465},{"type":42,"tag":430,"props":600,"children":602},{"class":432,"line":601},10,[603],{"type":42,"tag":430,"props":604,"children":605},{"style":451},[606],{"type":48,"value":607},"  https:\u002F\u002Fapi.example.com\u002Fdata\n",{"type":42,"tag":430,"props":609,"children":611},{"class":432,"line":610},11,[612],{"type":42,"tag":430,"props":613,"children":614},{"emptyLinePlaceholder":547},[615],{"type":48,"value":550},{"type":42,"tag":430,"props":617,"children":619},{"class":432,"line":618},12,[620],{"type":42,"tag":430,"props":621,"children":622},{"style":436},[623],{"type":48,"value":624},"# Multiple secrets in one command\n",{"type":42,"tag":430,"props":626,"children":628},{"class":432,"line":627},13,[629,633,637,642],{"type":42,"tag":430,"props":630,"children":631},{"style":446},[632],{"type":48,"value":90},{"type":42,"tag":430,"props":634,"children":635},{"style":451},[636],{"type":48,"value":454},{"type":42,"tag":430,"props":638,"children":639},{"style":451},[640],{"type":48,"value":641}," mysql",{"type":42,"tag":430,"props":643,"children":644},{"style":462},[645],{"type":48,"value":465},{"type":42,"tag":430,"props":647,"children":649},{"class":432,"line":648},14,[650,655,660],{"type":42,"tag":430,"props":651,"children":652},{"style":451},[653],{"type":48,"value":654},"  -h",{"type":42,"tag":430,"props":656,"children":657},{"style":451},[658],{"type":48,"value":659}," {{resolve:secretsmanager:prod\u002Fmysql:SecretString:host}}",{"type":42,"tag":430,"props":661,"children":662},{"style":462},[663],{"type":48,"value":465},{"type":42,"tag":430,"props":665,"children":667},{"class":432,"line":666},15,[668,673,678],{"type":42,"tag":430,"props":669,"children":670},{"style":451},[671],{"type":48,"value":672},"  -u",{"type":42,"tag":430,"props":674,"children":675},{"style":451},[676],{"type":48,"value":677}," {{resolve:secretsmanager:prod\u002Fmysql:SecretString:username}}",{"type":42,"tag":430,"props":679,"children":680},{"style":462},[681],{"type":48,"value":465},{"type":42,"tag":430,"props":683,"children":685},{"class":432,"line":684},16,[686,691],{"type":42,"tag":430,"props":687,"children":688},{"style":451},[689],{"type":48,"value":690},"  -p",{"type":42,"tag":430,"props":692,"children":693},{"style":462},[694],{"type":48,"value":695},"{{resolve:secretsmanager:prod\u002Fmysql:SecretString:password}} \\\n",{"type":42,"tag":430,"props":697,"children":699},{"class":432,"line":698},17,[700,705,709,714],{"type":42,"tag":430,"props":701,"children":702},{"style":446},[703],{"type":48,"value":704},"  -e",{"type":42,"tag":430,"props":706,"children":707},{"style":472},[708],{"type":48,"value":530},{"type":42,"tag":430,"props":710,"children":711},{"style":451},[712],{"type":48,"value":713},"SHOW TABLES",{"type":42,"tag":430,"props":715,"children":716},{"style":472},[717],{"type":48,"value":540},{"type":42,"tag":414,"props":719,"children":721},{"id":720},"how-it-works",[722],{"type":48,"value":723},"How It Works",{"type":42,"tag":119,"props":725,"children":726},{},[727,739,804,824],{"type":42,"tag":123,"props":728,"children":729},{},[730,732,737],{"type":48,"value":731},"Scans all command arguments for ",{"type":42,"tag":64,"props":733,"children":735},{"className":734},[],[736],{"type":48,"value":193},{"type":48,"value":738}," patterns",{"type":42,"tag":123,"props":740,"children":741},{},[742,744],{"type":48,"value":743},"Resolves each reference through the first available backend, in order:\n",{"type":42,"tag":119,"props":745,"children":746},{},[747,757,783],{"type":42,"tag":123,"props":748,"children":749},{},[750,755],{"type":42,"tag":78,"props":751,"children":752},{},[753],{"type":48,"value":754},"AWS Secrets Manager Agent (SMA)",{"type":48,"value":756}," on localhost:2773 (zero-latency, cached)",{"type":42,"tag":123,"props":758,"children":759},{},[760,765,767,773,775,781],{"type":42,"tag":78,"props":761,"children":762},{},[763],{"type":48,"value":764},"AWS MCP endpoint",{"type":48,"value":766}," (",{"type":42,"tag":64,"props":768,"children":770},{"className":769},[],[771],{"type":48,"value":772},"https:\u002F\u002Faws-mcp.us-east-1.api.aws\u002Fmcp",{"type":48,"value":774},"), calling the\n",{"type":42,"tag":64,"props":776,"children":778},{"className":777},[],[779],{"type":48,"value":780},"aws___call_aws",{"type":48,"value":782}," tool over a SigV4-signed request",{"type":42,"tag":123,"props":784,"children":785},{},[786,788,794,796,802],{"type":48,"value":787},"Determines the secret's region from an ARN's region segment, or from\n",{"type":42,"tag":64,"props":789,"children":791},{"className":790},[],[792],{"type":48,"value":793},"AWS_REGION",{"type":48,"value":795}," \u002F ",{"type":42,"tag":64,"props":797,"children":799},{"className":798},[],[800],{"type":48,"value":801},"AWS_DEFAULT_REGION",{"type":48,"value":803},", and passes it to the resolver",{"type":42,"tag":123,"props":805,"children":806},{},[807,809,815,817,822],{"type":48,"value":808},"Substitutes resolved values using ",{"type":42,"tag":64,"props":810,"children":812},{"className":811},[],[813],{"type":48,"value":814},"re.sub",{"type":48,"value":816}," with a callable (single-pass --\nprevents re-scan injection if a secret value contains ",{"type":42,"tag":64,"props":818,"children":820},{"className":819},[],[821],{"type":48,"value":193},{"type":48,"value":823},")",{"type":42,"tag":123,"props":825,"children":826},{},[827,829,835],{"type":48,"value":828},"Runs the target command via ",{"type":42,"tag":64,"props":830,"children":832},{"className":831},[],[833],{"type":48,"value":834},"subprocess.run",{"type":48,"value":836}," -- secret values exist only in the\nasm-exec process, never in the agent's context window",{"type":42,"tag":94,"props":838,"children":839},{},[840],{"type":42,"tag":58,"props":841,"children":842},{},[843,848,850,855,857,862],{"type":42,"tag":78,"props":844,"children":845},{},[846],{"type":48,"value":847},"No local AWS CLI fallback for resolution.",{"type":48,"value":849}," ",{"type":42,"tag":64,"props":851,"children":853},{"className":852},[],[854],{"type":48,"value":90},{"type":48,"value":856}," does not shell out to\n",{"type":42,"tag":64,"props":858,"children":860},{"className":859},[],[861],{"type":48,"value":69},{"type":48,"value":863}," to resolve references. Resolution happens\nonly through SMA or the MCP endpoint, so the plaintext value is never written to\na local process's stdout where it could be captured.",{"type":42,"tag":414,"props":865,"children":867},{"id":866},"sigv4-signing",[868],{"type":48,"value":869},"SigV4 signing",{"type":42,"tag":58,"props":871,"children":872},{},[873,875,880,882,888,890,896,898,903,905,911,913,919,921,927,929,935,937,943],{"type":48,"value":874},"The MCP endpoint authenticates every tool call with AWS SigV4. ",{"type":42,"tag":64,"props":876,"children":878},{"className":877},[],[879],{"type":48,"value":90},{"type":48,"value":881}," signs\nrequests itself using only the Python standard library (",{"type":42,"tag":64,"props":883,"children":885},{"className":884},[],[886],{"type":48,"value":887},"hashlib",{"type":48,"value":889},"\u002F",{"type":42,"tag":64,"props":891,"children":893},{"className":892},[],[894],{"type":48,"value":895},"hmac",{"type":48,"value":897},") -- it\ndoes ",{"type":42,"tag":78,"props":899,"children":900},{},[901],{"type":48,"value":902},"not",{"type":48,"value":904}," depend on botocore or spin up the ",{"type":42,"tag":64,"props":906,"children":908},{"className":907},[],[909],{"type":48,"value":910},"mcp-proxy-for-aws",{"type":48,"value":912}," proxy, keeping\nthe wrapper a lightweight ephemeral process. The signing service and region are\ninferred from the endpoint hostname (e.g. ",{"type":42,"tag":64,"props":914,"children":916},{"className":915},[],[917],{"type":48,"value":918},"aws-mcp.us-east-1.api.aws",{"type":48,"value":920}," ->\nservice ",{"type":42,"tag":64,"props":922,"children":924},{"className":923},[],[925],{"type":48,"value":926},"aws-mcp",{"type":48,"value":928},", region ",{"type":42,"tag":64,"props":930,"children":932},{"className":931},[],[933],{"type":48,"value":934},"us-east-1",{"type":48,"value":936},"); this signing region is independent of the\nsecret's own region, which is passed as ",{"type":42,"tag":64,"props":938,"children":940},{"className":939},[],[941],{"type":48,"value":942},"--region",{"type":48,"value":944}," to the server-side CLI command.",{"type":42,"tag":58,"props":946,"children":947},{},[948,950,956,958,964,966,972],{"type":48,"value":949},"Credentials for signing are resolved in order: environment variables\n(",{"type":42,"tag":64,"props":951,"children":953},{"className":952},[],[954],{"type":48,"value":955},"AWS_ACCESS_KEY_ID",{"type":48,"value":957}," etc.), ",{"type":42,"tag":64,"props":959,"children":961},{"className":960},[],[962],{"type":48,"value":963},"aws configure export-credentials",{"type":48,"value":965}," (AWS CLI v2), then\n",{"type":42,"tag":64,"props":967,"children":969},{"className":968},[],[970],{"type":48,"value":971},"aws configure get",{"type":48,"value":973}," (AWS CLI v1).",{"type":42,"tag":414,"props":975,"children":977},{"id":976},"prerequisites",[978],{"type":48,"value":979},"Prerequisites",{"type":42,"tag":58,"props":981,"children":982},{},[983,985,991],{"type":48,"value":984},"Either backend must be reachable, with credentials that have\n",{"type":42,"tag":64,"props":986,"children":988},{"className":987},[],[989],{"type":48,"value":990},"secretsmanager:GetSecretValue",{"type":48,"value":992}," permission:",{"type":42,"tag":994,"props":995,"children":996},"ul",{},[997,1006],{"type":42,"tag":123,"props":998,"children":999},{},[1000,1004],{"type":42,"tag":78,"props":1001,"children":1002},{},[1003],{"type":48,"value":754},{"type":48,"value":1005}," running on localhost:2773, OR",{"type":42,"tag":123,"props":1007,"children":1008},{},[1009,1014,1016,1021],{"type":42,"tag":78,"props":1010,"children":1011},{},[1012],{"type":48,"value":1013},"AWS credentials",{"type":48,"value":1015}," resolvable for SigV4 signing of the MCP endpoint (see above).\nFor cross-region secrets, set ",{"type":42,"tag":64,"props":1017,"children":1019},{"className":1018},[],[1020],{"type":48,"value":793},{"type":48,"value":1022}," (or use a full ARN) so the correct\nregion is targeted.",{"type":42,"tag":58,"props":1024,"children":1025},{},[1026,1028,1037],{"type":48,"value":1027},"See ",{"type":42,"tag":1029,"props":1030,"children":1034},"a",{"href":1031,"rel":1032},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fsecretsmanager\u002Flatest\u002Fuserguide\u002Fsecrets-manager-agent.html",[1033],"nofollow",[1035],{"type":48,"value":1036},"SMA setup guide",{"type":48,"value":1038},".",{"type":42,"tag":51,"props":1040,"children":1042},{"id":1041},"common-patterns",[1043],{"type":48,"value":1044},"Common Patterns",{"type":42,"tag":414,"props":1046,"children":1048},{"id":1047},"database-connections",[1049],{"type":48,"value":1050},"Database connections",{"type":42,"tag":197,"props":1052,"children":1054},{"className":422,"code":1053,"language":424,"meta":205,"style":205},"asm-exec -- psql \"postgresql:\u002F\u002F{{resolve:secretsmanager:prod\u002Fdb:SecretString:username}}:{{resolve:secretsmanager:prod\u002Fdb:SecretString:password}}@db.example.com:5432\u002Fmydb\"\n",[1055],{"type":42,"tag":64,"props":1056,"children":1057},{"__ignoreMap":205},[1058],{"type":42,"tag":430,"props":1059,"children":1060},{"class":432,"line":37},[1061,1065,1069,1073,1077,1082],{"type":42,"tag":430,"props":1062,"children":1063},{"style":446},[1064],{"type":48,"value":90},{"type":42,"tag":430,"props":1066,"children":1067},{"style":451},[1068],{"type":48,"value":454},{"type":42,"tag":430,"props":1070,"children":1071},{"style":451},[1072],{"type":48,"value":459},{"type":42,"tag":430,"props":1074,"children":1075},{"style":472},[1076],{"type":48,"value":530},{"type":42,"tag":430,"props":1078,"children":1079},{"style":451},[1080],{"type":48,"value":1081},"postgresql:\u002F\u002F{{resolve:secretsmanager:prod\u002Fdb:SecretString:username}}:{{resolve:secretsmanager:prod\u002Fdb:SecretString:password}}@db.example.com:5432\u002Fmydb",{"type":42,"tag":430,"props":1083,"children":1084},{"style":472},[1085],{"type":48,"value":540},{"type":42,"tag":414,"props":1087,"children":1089},{"id":1088},"docker-with-secrets",[1090],{"type":48,"value":1091},"Docker with secrets",{"type":42,"tag":197,"props":1093,"children":1095},{"className":422,"code":1094,"language":424,"meta":205,"style":205},"asm-exec -- docker run -e \"DB_PASSWORD={{resolve:secretsmanager:prod\u002Fdb:SecretString:password}}\" myapp:latest\n",[1096],{"type":42,"tag":64,"props":1097,"children":1098},{"__ignoreMap":205},[1099],{"type":42,"tag":430,"props":1100,"children":1101},{"class":432,"line":37},[1102,1106,1110,1115,1120,1125,1129,1134,1138],{"type":42,"tag":430,"props":1103,"children":1104},{"style":446},[1105],{"type":48,"value":90},{"type":42,"tag":430,"props":1107,"children":1108},{"style":451},[1109],{"type":48,"value":454},{"type":42,"tag":430,"props":1111,"children":1112},{"style":451},[1113],{"type":48,"value":1114}," docker",{"type":42,"tag":430,"props":1116,"children":1117},{"style":451},[1118],{"type":48,"value":1119}," run",{"type":42,"tag":430,"props":1121,"children":1122},{"style":451},[1123],{"type":48,"value":1124}," -e",{"type":42,"tag":430,"props":1126,"children":1127},{"style":472},[1128],{"type":48,"value":530},{"type":42,"tag":430,"props":1130,"children":1131},{"style":451},[1132],{"type":48,"value":1133},"DB_PASSWORD={{resolve:secretsmanager:prod\u002Fdb:SecretString:password}}",{"type":42,"tag":430,"props":1135,"children":1136},{"style":472},[1137],{"type":48,"value":512},{"type":42,"tag":430,"props":1139,"children":1140},{"style":451},[1141],{"type":48,"value":1142}," myapp:latest\n",{"type":42,"tag":414,"props":1144,"children":1146},{"id":1145},"configuration-file-templating",[1147],{"type":48,"value":1148},"Configuration file templating",{"type":42,"tag":197,"props":1150,"children":1152},{"className":422,"code":1151,"language":424,"meta":205,"style":205},"# Generate config with resolved secrets, write to file\nasm-exec -- sh -c 'echo \"password={{resolve:secretsmanager:app\u002Fdb:SecretString:password}}\" > \u002Ftmp\u002Fapp.conf'\n",[1153],{"type":42,"tag":64,"props":1154,"children":1155},{"__ignoreMap":205},[1156,1164],{"type":42,"tag":430,"props":1157,"children":1158},{"class":432,"line":37},[1159],{"type":42,"tag":430,"props":1160,"children":1161},{"style":436},[1162],{"type":48,"value":1163},"# Generate config with resolved secrets, write to file\n",{"type":42,"tag":430,"props":1165,"children":1166},{"class":432,"line":442},[1167,1171,1175,1180,1185,1190,1195],{"type":42,"tag":430,"props":1168,"children":1169},{"style":446},[1170],{"type":48,"value":90},{"type":42,"tag":430,"props":1172,"children":1173},{"style":451},[1174],{"type":48,"value":454},{"type":42,"tag":430,"props":1176,"children":1177},{"style":451},[1178],{"type":48,"value":1179}," sh",{"type":42,"tag":430,"props":1181,"children":1182},{"style":451},[1183],{"type":48,"value":1184}," -c",{"type":42,"tag":430,"props":1186,"children":1187},{"style":472},[1188],{"type":48,"value":1189}," '",{"type":42,"tag":430,"props":1191,"children":1192},{"style":451},[1193],{"type":48,"value":1194},"echo \"password={{resolve:secretsmanager:app\u002Fdb:SecretString:password}}\" > \u002Ftmp\u002Fapp.conf",{"type":42,"tag":430,"props":1196,"children":1197},{"style":472},[1198],{"type":48,"value":1199},"'\n",{"type":42,"tag":51,"props":1201,"children":1203},{"id":1202},"structural-enforcement-plugin-hook",[1204],{"type":48,"value":1205},"Structural Enforcement (Plugin Hook)",{"type":42,"tag":58,"props":1207,"children":1208},{},[1209,1211,1217,1219,1225,1227,1232,1233,1238],{"type":48,"value":1210},"When the ",{"type":42,"tag":64,"props":1212,"children":1214},{"className":1213},[],[1215],{"type":48,"value":1216},"aws-core",{"type":48,"value":1218}," plugin is enabled, a ",{"type":42,"tag":64,"props":1220,"children":1222},{"className":1221},[],[1223],{"type":48,"value":1224},"PreToolUse",{"type":48,"value":1226}," hook automatically blocks\nany attempt to call ",{"type":42,"tag":64,"props":1228,"children":1230},{"className":1229},[],[1231],{"type":48,"value":136},{"type":48,"value":138},{"type":42,"tag":64,"props":1234,"children":1236},{"className":1235},[],[1237],{"type":48,"value":144},{"type":48,"value":1239}," -- via AWS CLI,\nMCP tools, or direct SMA access. No manual configuration needed.",{"type":42,"tag":58,"props":1241,"children":1242},{},[1243,1245,1251],{"type":48,"value":1244},"The hook is defined at ",{"type":42,"tag":64,"props":1246,"children":1248},{"className":1247},[],[1249],{"type":48,"value":1250},"plugins\u002Faws-core\u002Fhooks\u002Fhooks.json",{"type":48,"value":1252}," and activates\nautomatically when the plugin is installed.",{"type":42,"tag":51,"props":1254,"children":1256},{"id":1255},"troubleshooting",[1257],{"type":48,"value":1258},"Troubleshooting",{"type":42,"tag":414,"props":1260,"children":1262},{"id":1261},"secret-not-found-errors",[1263],{"type":48,"value":1264},"\"Secret not found\" errors",{"type":42,"tag":58,"props":1266,"children":1267},{},[1268,1270,1275],{"type":48,"value":1269},"Verify the secret exists and your IAM role has ",{"type":42,"tag":64,"props":1271,"children":1273},{"className":1272},[],[1274],{"type":48,"value":990},{"type":48,"value":1276},"\npermission. Check the secret name matches exactly (case-sensitive).",{"type":42,"tag":414,"props":1278,"children":1280},{"id":1279},"sma-connection-refused",[1281],{"type":48,"value":1282},"SMA connection refused",{"type":42,"tag":58,"props":1284,"children":1285},{},[1286,1288,1293],{"type":48,"value":1287},"The Secrets Manager Agent may not be running. This is non-fatal: ",{"type":42,"tag":64,"props":1289,"children":1291},{"className":1290},[],[1292],{"type":48,"value":90},{"type":48,"value":1294},"\nfalls through to the SigV4-signed MCP endpoint. Ensure AWS credentials are\nresolvable (see SigV4 signing above) so that backend can authenticate.",{"type":42,"tag":414,"props":1296,"children":1298},{"id":1297},"failed-to-resolve-errors",[1299],{"type":48,"value":1300},"\"Failed to resolve\" errors",{"type":42,"tag":58,"props":1302,"children":1303},{},[1304,1306,1312,1314,1319,1321,1326,1328,1334],{"type":48,"value":1305},"Both backends were unreachable or returned no value. Check that either SMA is\nrunning or AWS credentials are valid (",{"type":42,"tag":64,"props":1307,"children":1309},{"className":1308},[],[1310],{"type":48,"value":1311},"aws sts get-caller-identity",{"type":48,"value":1313},"), that the\nsecret's region is correct (set ",{"type":42,"tag":64,"props":1315,"children":1317},{"className":1316},[],[1318],{"type":48,"value":793},{"type":48,"value":1320}," or use a full ARN), and that your\nidentity has ",{"type":42,"tag":64,"props":1322,"children":1324},{"className":1323},[],[1325],{"type":48,"value":990},{"type":48,"value":1327}," on the secret. A ",{"type":42,"tag":64,"props":1329,"children":1331},{"className":1330},[],[1332],{"type":48,"value":1333},"401",{"type":48,"value":1335}," from the MCP\nendpoint indicates a SigV4 signing or credential problem, not a missing secret.",{"type":42,"tag":414,"props":1337,"children":1339},{"id":1338},"resolution-produces-empty-string",[1340],{"type":48,"value":1341},"Resolution produces empty string",{"type":42,"tag":58,"props":1343,"children":1344},{},[1345],{"type":48,"value":1346},"The JSON key may not exist in the secret value. Verify the secret structure\nin the AWS Console or ask the secret owner to confirm the available keys.",{"type":42,"tag":1348,"props":1349,"children":1350},"style",{},[1351],{"type":48,"value":1352},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1354,"total":1523},[1355,1372,1387,1402,1417,1427,1440,1456,1473,1486,1498,1513],{"slug":1356,"name":1356,"fn":1357,"description":1358,"org":1359,"tags":1360,"stars":24,"repoUrl":25,"updatedAt":1371},"agents-build","add capabilities to existing agent projects","Use when adding capabilities to an existing agent project — memory, app integration, VPC, multi-agent, migration, model changes, browser, code interpreter, or resource removal. Triggers on: \"add memory\", \"remember across sessions\", \"call agent from app\", \"invoke agent from code\", \"auth to call agent\", \"streaming responses\", \"VPC\", \"VPC connectivity\", \"VPC error\", \"can't reach from VPC\", \"multi-agent\", \"A2A\", \"A2A auth\", \"orchestrator not delegating\", \"specialist not called\", \"migrate Bedrock Agent\", \"after import\", \"migration issue\", \"framework for migration\", \"change model\", \"browser tool\", \"code interpreter\", \"delete agent\", \"tear down\", \"agentcore remove\", \"cross-account memory\", \"resource-based policy on memory\", \"pay for x402 content\", \"402 Payment Required\", \"microtransactions\", \"paid API or tool\". Not for connecting to external APIs via Gateway — use agents-connect. Not for scaffolding a new project — use agents-get-started. Not for CLI\u002Fdev server errors — use agents-debug. Strands vs LangGraph in a migration context routes here.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1361,1364,1367,1368],{"name":1362,"slug":1363,"type":15},"Agents","agents",{"name":1365,"slug":1366,"type":15},"Automation","automation",{"name":23,"slug":8,"type":15},{"name":1369,"slug":1370,"type":15},"Engineering","engineering","2026-07-12T08:42:53.812877",{"slug":1373,"name":1373,"fn":1374,"description":1375,"org":1376,"tags":1377,"stars":24,"repoUrl":25,"updatedAt":1386},"agents-connect","connect agents to external services","Use when connecting your agent to external APIs, tools, or services via Gateway, or restricting tool access with Cedar policies. Handles gateway setup, target types, outbound auth (OAuth, API key, IAM), credentials, and Cedar policy authoring. Triggers on: \"connect to API\", \"add gateway\", \"connect to MCP server\", \"Lambda tools\", \"OpenAPI\", \"gateway target\", \"Cedar policy\", \"restrict tools\", \"policy engine\", \"gateway auth error\", \"store API key\", \"outbound credential\", \"env var API key\", \"API key None after deploy\", \"credential not available after deploy\", \"should this be a gateway target\", \"give my agent tools\", \"add tools to agent\". Not for inbound auth (who can call your agent) — use agents-harden. Not for debugging agent behavior — use agents-debug. Not for VPC networking errors (agent can't reach APIs due to VPC) — use agents-build. Not for creating or hosting a new MCP server project — use agents-get-started.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1378,1379,1382,1385],{"name":1362,"slug":1363,"type":15},{"name":1380,"slug":1381,"type":15},"API Development","api-development",{"name":1383,"slug":1384,"type":15},"Authentication","authentication",{"name":23,"slug":8,"type":15},"2026-07-16T06:00:38.866147",{"slug":1388,"name":1388,"fn":1389,"description":1390,"org":1391,"tags":1392,"stars":24,"repoUrl":25,"updatedAt":1401},"agents-debug","debug agent and environment issues","Use when your agent or environment is broken — wrong answers, errors, timeouts, tool failures, or CLI issues. Reads traces and logs to diagnose root causes. Also checks prerequisites when the CLI itself isn't working. Triggers on: \"agent not working\", \"wrong answer\", \"agent error\", \"tool call failing\", \"debug agent\", \"check logs\", \"read traces\", \"broken\", \"500 error\", \"424 error\", \"model access denied\", \"command not found\", \"stuck in DELETING\", \"maxVms exceeded\", \"cold start diagnosis\", \"cold start slow\", \"agentcore create error\", \"create failed\", \"exit code 7\", \"connection refused local dev\". Not for deploy failures — use agents-deploy. Not for performance tuning without errors — use agents-optimize. Not for VPC configuration — use agents-build. Not for observability setup or missing logs — use agents-optimize.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1393,1394,1395,1398],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1396,"slug":1397,"type":15},"Debugging","debugging",{"name":1399,"slug":1400,"type":15},"Observability","observability","2026-07-16T06:00:44.679093",{"slug":1403,"name":1403,"fn":1404,"description":1405,"org":1406,"tags":1407,"stars":24,"repoUrl":25,"updatedAt":1416},"agents-deploy","deploy AI agents to AWS","Use when deploying your agent to AWS, or when a deploy has failed. Handles pre-flight validation, CDK\u002FIAM\u002Fquota error diagnosis, version management, rollback, and canary deployments. Triggers on: \"deploy my agent\", \"agentcore deploy\", \"deploy failed\", \"CDK error\", \"rollback\", \"canary deploy\", \"pin version\", \"redeploy\", \"deploy stuck\". Not for production hardening — use agents-harden. Not for adding capabilities before deploy — use agents-build or agents-connect. Not for VPC configuration errors — use agents-build.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1408,1409,1410,1413],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1411,"slug":1412,"type":15},"CI\u002FCD","ci-cd",{"name":1414,"slug":1415,"type":15},"Deployment","deployment","2026-07-12T08:42:55.059577",{"slug":1418,"name":1418,"fn":1419,"description":1420,"org":1421,"tags":1422,"stars":24,"repoUrl":25,"updatedAt":1426},"agents-get-started","scaffold and deploy new agent projects","Use when a developer wants to create a new agent project or get started with AgentCore. Handles framework selection, project scaffolding, first deploy, and first invocation. Triggers on: \"build an agent\", \"create an agent\", \"get started\", \"new project\", \"agentcore create\", \"which framework\", \"Strands vs LangGraph\", \"hello world agent\", \"first agent\", \"create MCP server\", \"host MCP server\", \"agentcore dev\", \"dev server\", \"what port\", \"local development\". Not for adding capabilities to existing projects — use agents-build or agents-connect. Strands vs LangGraph in a migration context routes to agents-build, not here. Connecting to an existing MCP server routes to agents-connect, not here.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1423,1424,1425],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1414,"slug":1415,"type":15},"2026-07-12T08:42:51.963247",{"slug":1428,"name":1428,"fn":1429,"description":1430,"org":1431,"tags":1432,"stars":24,"repoUrl":25,"updatedAt":1439},"agents-harden","harden agents for production","Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate limiting, input validation, and quota guidance. Triggers on: \"production checklist\", \"harden agent\", \"production ready\", \"secure agent\", \"inbound auth\", \"going live\", \"cold start optimization\", \"session lifecycle\", \"StopRuntimeSession\", \"quota\", \"throttling\", \"maxVms\", \"rate limit\", \"security audit of outbound API calls\", \"gateway target audit for production\", \"restrict who can call\", \"lock down endpoint\", \"only our app can call\". Not for Cedar tool-restriction policies — use agents-connect. Not for quality measurement — use agents-optimize. Not for outbound credential storage or API key wiring — use agents-connect. Not for A2A agent-to-agent auth — use agents-build. Cold start observation and diagnosis (not optimization) routes to agents-debug.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1433,1434,1435,1438],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1436,"slug":1437,"type":15},"Best Practices","best-practices",{"name":13,"slug":14,"type":15},"2026-07-16T06:00:42.174705",{"slug":1441,"name":1441,"fn":1442,"description":1443,"org":1444,"tags":1445,"stars":24,"repoUrl":25,"updatedAt":1455},"agents-optimize","optimize agent quality and performance","Use when measuring or improving agent quality and performance — set up evaluators, online monitoring, CI\u002FCD quality gates, observability, or cost optimization. Triggers on: \"evaluate my agent\", \"add evaluator\", \"measure quality\", \"quality gate\", \"run evals\", \"agent too slow\", \"why is it slow\", \"reduce latency\", \"set up observability\", \"CloudWatch dashboard\", \"how much does my agent cost\", \"cost optimization\", \"logs not showing up\", \"logs missing\", \"spans not found\", \"eval failing\", \"eval error\", \"dev traces\", \"local traces\", \"agentcore dev traces\", \"traces to CloudWatch\". Not for debugging errors or crashes — use agents-debug. Slow but correct routes here; broken routes to debug.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1446,1447,1448,1451,1452],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1449,"slug":1450,"type":15},"Evals","evals",{"name":1399,"slug":1400,"type":15},{"name":1453,"slug":1454,"type":15},"Performance","performance","2026-07-12T08:42:56.488105",{"slug":1457,"name":1457,"fn":1458,"description":1459,"org":1460,"tags":1461,"stars":24,"repoUrl":25,"updatedAt":1472},"amazon-aurora-mysql","manage Amazon Aurora MySQL clusters","Amazon Aurora MySQL — creates, modifies, and advises on Aurora MySQL clusters specifically (MySQL-compatible engine, Aurora serverless, parallel query). Trigger for Aurora MySQL cluster operations, ACU sizing, I\u002FO-Optimized storage, commitment pricing, or MySQL upgrade planning. Aurora MySQL uses full (VPC-based) configuration — express configuration is PostgreSQL-only. For Aurora PostgreSQL, use amazon-aurora-postgresql instead. Contains safety guardrails and response templates that override defaults.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1462,1463,1466,1469],{"name":23,"slug":8,"type":15},{"name":1464,"slug":1465,"type":15},"Database","database",{"name":1467,"slug":1468,"type":15},"MySQL","mysql",{"name":1470,"slug":1471,"type":15},"Serverless","serverless","2026-07-12T08:43:13.27939",{"slug":1474,"name":1474,"fn":1475,"description":1476,"org":1477,"tags":1478,"stars":24,"repoUrl":25,"updatedAt":1485},"amazon-aurora-postgresql","configure Amazon Aurora PostgreSQL clusters","Amazon Aurora PostgreSQL — creates, modifies, and advises on Aurora PostgreSQL clusters specifically (PostgreSQL-compatible engine, Aurora serverless, express configuration, pgvector, Babelfish). Trigger for Aurora PostgreSQL cluster operations, express-configuration quick-start, ACU sizing, I\u002FO-Optimized storage, commitment pricing, or PostgreSQL upgrade planning. For Aurora MySQL, use amazon-aurora-mysql instead. Contains safety guardrails, express-first routing, and response templates that override defaults.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1479,1480,1481,1484],{"name":23,"slug":8,"type":15},{"name":1464,"slug":1465,"type":15},{"name":1482,"slug":1483,"type":15},"PostgreSQL","postgresql",{"name":1470,"slug":1471,"type":15},"2026-07-16T06:00:34.789624",{"slug":1487,"name":1487,"fn":1488,"description":1489,"org":1490,"tags":1491,"stars":24,"repoUrl":25,"updatedAt":1497},"amazon-bedrock","build generative AI apps with Amazon Bedrock","Builds generative AI applications on Amazon Bedrock. Covers model invocation (Converse API, InvokeModel), RAG with Knowledge Bases, Bedrock Agents, Guardrails, and AgentCore. Use when invoking models, setting up Knowledge Bases, creating agents, applying guardrails, deploying to AgentCore, migrating\u002Fporting\u002Fconverting a Bedrock Agent (including inline agents) to an AgentCore Harness, troubleshooting Bedrock errors (ThrottlingException, AccessDeniedException), or choosing models (Claude, Llama, Nova, Titan). ALSO USE for prompt caching setup and debugging, quota health checks and throttling diagnosis, cost attribution and tracking, migrating between Claude model generations (4.5 to 4.6 to 4.7), chunking strategies, API selection (Converse vs InvokeModel), guardrail capabilities, and model selection. Also covers AgentCore Payments setup (x402, microtransactions, Payment Manager, Connector, Instrument, Coinbase CDP, Stripe Privy, 402 Payment Required, pay for content, paid endpoint, agent payments). NOT for custom model training, Rekognition, or Comprehend.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1492,1493,1494],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1495,"slug":1496,"type":15},"LLM","llm","2026-07-25T05:30:35.20899",{"slug":1499,"name":1499,"fn":1500,"description":1501,"org":1502,"tags":1503,"stars":24,"repoUrl":25,"updatedAt":1512},"amazon-documentdb","manage Amazon DocumentDB clusters","Manages Amazon DocumentDB end-to-end — serverless-on-8.0 cluster setup, TLS\u002FVPC\u002Fdriver config, flexible-schema and vector-search data modeling, MongoDB compatibility assessment, DMS-based migration, slow-query diagnosis, major version upgrades (4.0→5.0→8.0), Well-Architected reviews (41-check wa_review.py), cost estimation, and security hardening. Retrieve for every DocumentDB question and when the user asks to set up or migrate MongoDB to AWS — DocumentDB is AWS's MongoDB-compatible managed database. Triggers: JSON document store, document database, MongoDB on AWS, Nested fields, Lambda cannot connect, TLS handshake, VPC port 27017, IAM auth, Secrets Manager, encryption at rest, $graphLookup, flexible schema, COLLSCAN, compound index, DMS migration, CDC cutover, $vectorSearch, RAG, Global Clusters, DR replication, cost sizing, audit, health check, production-readiness.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1504,1505,1506,1509],{"name":23,"slug":8,"type":15},{"name":1464,"slug":1465,"type":15},{"name":1507,"slug":1508,"type":15},"MongoDB","mongodb",{"name":1510,"slug":1511,"type":15},"NoSQL","nosql","2026-07-12T08:43:00.455878",{"slug":1514,"name":1514,"fn":1515,"description":1516,"org":1517,"tags":1518,"stars":24,"repoUrl":25,"updatedAt":1522},"amazon-dynamodb","design and debug DynamoDB data layers","Designs, reviews, and debugs DynamoDB data layers from design axioms — enumerates access patterns, chooses partition\u002Fsort keys and GSIs, decides single-table vs. multi-table, configures Streams, Global Tables, TTL, and zero-ETL integrations to OpenSearch\u002FRedshift\u002FSageMaker Lakehouse, and produces a defensible data-layer design with a monthly cost estimate and optional live validation. Applies whenever a user is designing, reviewing, or refactoring anything backed by DynamoDB — schemas, access patterns, GSIs, single- vs. multi-table choices, Streams consumers, transactional outboxes, Global Tables, zero-ETL pipelines — even when they don't say \"axioms\" or \"design review.\" Also applies when debugging hot partitions, throttling, unbounded Scans, LWW conflicts, or surprise bills on DynamoDB workloads.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1519,1520,1521],{"name":23,"slug":8,"type":15},{"name":1464,"slug":1465,"type":15},{"name":1510,"slug":1511,"type":15},"2026-07-16T06:00:37.690386",115,{"items":1525,"total":1575},[1526,1533,1540,1547,1554,1560,1567],{"slug":1356,"name":1356,"fn":1357,"description":1358,"org":1527,"tags":1528,"stars":24,"repoUrl":25,"updatedAt":1371},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1529,1530,1531,1532],{"name":1362,"slug":1363,"type":15},{"name":1365,"slug":1366,"type":15},{"name":23,"slug":8,"type":15},{"name":1369,"slug":1370,"type":15},{"slug":1373,"name":1373,"fn":1374,"description":1375,"org":1534,"tags":1535,"stars":24,"repoUrl":25,"updatedAt":1386},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1536,1537,1538,1539],{"name":1362,"slug":1363,"type":15},{"name":1380,"slug":1381,"type":15},{"name":1383,"slug":1384,"type":15},{"name":23,"slug":8,"type":15},{"slug":1388,"name":1388,"fn":1389,"description":1390,"org":1541,"tags":1542,"stars":24,"repoUrl":25,"updatedAt":1401},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1543,1544,1545,1546],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1396,"slug":1397,"type":15},{"name":1399,"slug":1400,"type":15},{"slug":1403,"name":1403,"fn":1404,"description":1405,"org":1548,"tags":1549,"stars":24,"repoUrl":25,"updatedAt":1416},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1550,1551,1552,1553],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1411,"slug":1412,"type":15},{"name":1414,"slug":1415,"type":15},{"slug":1418,"name":1418,"fn":1419,"description":1420,"org":1555,"tags":1556,"stars":24,"repoUrl":25,"updatedAt":1426},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1557,1558,1559],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1414,"slug":1415,"type":15},{"slug":1428,"name":1428,"fn":1429,"description":1430,"org":1561,"tags":1562,"stars":24,"repoUrl":25,"updatedAt":1439},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1563,1564,1565,1566],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1436,"slug":1437,"type":15},{"name":13,"slug":14,"type":15},{"slug":1441,"name":1441,"fn":1442,"description":1443,"org":1568,"tags":1569,"stars":24,"repoUrl":25,"updatedAt":1455},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1570,1571,1572,1573,1574],{"name":1362,"slug":1363,"type":15},{"name":23,"slug":8,"type":15},{"name":1449,"slug":1450,"type":15},{"name":1399,"slug":1400,"type":15},{"name":1453,"slug":1454,"type":15},114]