[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5E1SR2MDT34SBCWACSP8N":3,"skill-same:01M7A5E1SR2MDT34SBCWACSP8N":142},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7A5E1SR2MDT34SBCWACSP8N","cloudwatch-cross-account-observability-deployer",null,"Provisions CloudWatch cross-account observability via Observability Access Manager (OAM) — creates the monitoring account sink, attaches source accounts, configures the link (metrics \u002F logs \u002F traces \u002F Application Signals sharing), wires IAM roles, and validates the topology. Wires Amazon Managed Grafana cross-account data-source queries, integrates CloudWatch cross-account with AMP (Managed Prometheus), and surfaces cross-account Application Signals service maps. Emits a READY_TO_DEPLOY checklist. Use when creating an OAM sink, linking source accounts, sharing CloudWatch metrics \u002F logs \u002F traces across accounts, attaching AMP workspaces cross-account, enabling cross-account Application Signals, or wiring Managed Grafana across accounts. Triggers: cloudwatch cross-account, observability access manager, oam, oam sink, oam link, cross-account observability, monitoring account, cross-account metrics \u002F logs \u002F traces \u002F application signals, managed grafana cross-account, amp cross-account, cloudwatch multi-account.","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloudwatch-cross-account-observability-deployer\ndescription: 'Provisions CloudWatch cross-account observability via Observability Access Manager (OAM) — creates the monitoring account sink, attaches source accounts, configures the link (metrics \u002F logs \u002F traces \u002F Application Signals sharing), wires IAM roles, and validates the topology. Wires Amazon Managed Grafana cross-account data-source queries, integrates CloudWatch cross-account with AMP (Managed Prometheus), and surfaces cross-account Application Signals service maps. Emits a READY_TO_DEPLOY checklist. Use when creating an OAM sink, linking source accounts, sharing CloudWatch metrics \u002F logs \u002F traces across accounts, attaching AMP workspaces cross-account, enabling cross-account Application Signals, or wiring Managed Grafana across accounts. Triggers: cloudwatch cross-account, observability access manager, oam, oam sink, oam link, cross-account observability, monitoring account, cross-account metrics \u002F logs \u002F traces \u002F application signals, managed grafana cross-account, amp cross-account, cloudwatch multi-account.'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with oam, cloudwatch, iam, logs, xray, application-signals, amp, grafana, and organizations access. Works with Terraform aws_oam_sink \u002F aws_oam_link, CloudFormation AWS::Oam::Sink \u002F AWS::Oam::Link, and AWS CloudFormation StackSets for multi-account link deployment.'\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '1'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Management\n  task_type: deploy\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, cloudwatch, oam, cross-account, observability, deploy\n  dependencies: aws-orchestrator\n  keywords: aws, cloudwatch, oam, observability-access-manager, cross-account, multi-account, observability, cloudops, deploy, provisioning, managed-grafana, amp, managed-prometheus, application-signals\n  when_to_use: Invoke when the user wants to create a CloudWatch cross-account observability topology — a monitoring (aggregator) account with an OAM sink and one or more source accounts with OAM links sharing metrics, logs, traces, or Application Signals data. Use for provisioning the OAM sink, attaching source accounts, scoping the sharing model (which namespaces, which log groups, which X-Ray services), wiring Amazon Managed Grafana to query across accounts via the sink, attaching AMP (Managed Prometheus) workspaces to the OAM sink, or enabling cross-account Application Signals service maps. Do NOT invoke for single-account CloudWatch dashboards \u002F alarms (cloudwatch-dashboard-deployer \u002F cloudwatch-alarm-operator), for IAM cross-account role assumption patterns (iam-role-deployer), for CloudTrail org trails (cloudtrail-org-trail-auditor), or for single-account Application Signals enablement (cloudwatch-application-signals-deployer).\n---\n\n# CloudWatch Cross-Account Observability Deployer\n\nAn AWS CloudOps agent skill that provisions CloudWatch cross-account\nobservability via Observability Access Manager (OAM). Creates the\nmonitoring account sink, attaches source accounts via OAM links,\nconfigures the sharing model (metrics, logs, traces, Application\nSignals), and validates the resulting topology with\n`READY_TO_DEPLOY` status. Wires Amazon Managed Grafana and AMP\ncross-account data-source integration.\n\n## Quick navigation\n\n| Need | Section |\n|---|---|\n| What MUST be in the response | \"STRICT output contract\" |\n| Why the topology order matters | \"Reasoning framework\" |\n| What to verify before linking | \"Prerequisites\" |\n| The ordered provisioning steps | \"Deployment procedure\" |\n| Common silent-failure pitfalls | \"NEVER\" |\n| Sink creation, link attachment, sharing scopes | \"Deployment procedure\" Steps 1-5 |\n| Managed Grafana and AMP cross-account wiring | \"Deployment procedure\" Steps 6-7 |\n| Cross-account Application Signals | \"Deployment procedure\" Step 8 |\n| 2024-2026 feature changes | \"Recent AWS features\" |\n| Deep CLI sequences | `references\u002Fdeployment-cli-commands.md` |\n| Sharing scopes, IAM policy templates, multi-org | `references\u002Fsharing-scopes-and-iam-guide.md` |\n\n## STRICT output contract\n\nWhen this skill is invoked with a CloudWatch cross-account\nobservability request (sink creation, source account linking,\nsharing scope, Grafana integration, AMP cross-account, or a\npartial existing OAM topology), the agent MUST respond with the\nREADY_TO_DEPLOY checklist defined in \"Output format\" using the\nliteral all-caps labels `MONITORING_ACCOUNT:`, `VERDICT:`,\n`CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface the\nchecklist with prose, headings, or disclaimers — emit the block\nas the first lines of the response.\n\n### Required output structure\n\n1. `MONITORING_ACCOUNT: \u003Caccount-id>` — the aggregator account\n   hosting the OAM sink.\n2. `VERDICT: READY_TO_DEPLOY` OR `VERDICT: PREREQUISITES_MISSING`.\n3. `CHECKLIST:` followed by indented lines with status markers\n   (`[✓]`, `[✗]`, `[OPTIONAL]`, `[INPUT NEEDED]`).\n4. `VERIFICATION_COMMANDS:` followed by indented `aws ...` commands.\n\n### FORBIDDEN output patterns\n\n- **No prose preamble before `MONITORING_ACCOUNT:`** — the first\n  non-empty line MUST be `MONITORING_ACCOUNT:`.\n- **No markdown variants of labels** — write `VERDICT:`, not\n  `**VERDICT:**`, `### Verdict`, `Verdict =`, or `` `VERDICT` ``.\n- **No swapping verdict tokens** — exactly `READY_TO_DEPLOY` or\n  `PREREQUISITES_MISSING`. Not \"ready\", \"missing\", \"BLOCKED\", \"OK\".\n- **No omitting `VERIFICATION_COMMANDS:`** — include even when\n  PREREQUISITES_MISSING; the operator needs commands to verify\n  gaps.\n- **No extra sections after `VERIFICATION_COMMANDS:`** — the\n  checklist block is the entire response. Put deeper explanation\n  in `references\u002F`.\n- **No status marker drift** — use only `[✓]`, `[✗]`, `[OPTIONAL]`,\n  `[INPUT NEEDED]`. Do not invent `[?]`, `[!]`, `[WARN]`, or emoji.\n\n### Perfect example (copy the shape exactly)\n\n```text\nMONITORING_ACCOUNT: 111122223333\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓]      Monitoring account sink — arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink\n  [✓]      Sink policy — allows source accounts 444455556666, 777788889999 to attach\n  [✓]      Source link (444455556666) — link\u002Fpayloads-prod-app attached to sink\n  [✓]      Source link (777788889999) — link\u002Fpayloads-payments-app attached to sink\n  [✓]      Sharing — MetricConfiguration: AWS\u002FEC2, AWS\u002FECS, AWS\u002FApplicationSignals (ALL)\n  [✓]      Sharing — LogGroupConfiguration: \u002Faws\u002Fecs\u002Fprod-app, \u002Faws\u002Flambda\u002Fpayments-api\n  [✓]      Sharing — TraceConfiguration: X-Ray services api-gateway, checkout, payments\n  [✓]      IAM — source accounts hold oam:CreateLink and oam:PutSinkPolicy on the sink ARN\n  [✓]      Managed Grafana — workspace grafana-prod has CloudWatch data source querying sink\n  [✓]      AMP workspace — amp-prod attached as cross-account data source\n  [✓]      Cross-account Application Signals — service map aggregates across both source accounts\n  [OPTIONAL] AWS Organizations managed link — use org-wide sink policy for > 50 source accounts\n  [OPTIONAL] CloudWatch Logs account-level data protection — mask PII in shared log groups\nVERIFICATION_COMMANDS:\n  aws oam list-sinks --region us-east-1\n  aws oam get-sink --identifier arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink\n  aws oam list-attached-links --sink-identifier arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink\n  aws oam list-links --region us-east-1\n  aws cloudwatch list-metrics --namespace AWS\u002FApplicationSignals --region us-east-1\n  aws logs describe-log-groups --log-group-name-prefix \u002Faws\u002Fecs --region us-east-1\n  aws grafana list-workspaces --region us-east-1\n  aws amp list-workspaces --region us-east-1\n```\n\n## Reasoning framework (why the topology order matters)\n\nCross-account observability via OAM has **dependency and ordering\nconstraints**. Skipping or misordering causes silent gaps — the\nmonitoring account sees some accounts but not others, certain\nnamespaces never appear, or Managed Grafana queries return empty:\n\n1. **Sink FIRST, in the monitoring account** — `oam create-sink`\n   provisions the aggregation point. Every link references the\n   sink ARN. The sink must exist before any source account can\n   call `oam create-link`.\n2. **Sink policy controls who can attach** — the sink policy is a\n   resource-based policy. Without an entry for a source account,\n   `oam create-link` from that account returns `AccessDenied`.\n3. **Source account creates the link** — the link is created in\n   the SOURCE account, not the monitoring account. The source\n   account must have an IAM identity with `oam:CreateLink`\n   permission scoped to the sink ARN. Calling `oam create-link`\n   from the monitoring account fails.\n4. **Sharing scope declared at link creation** —\n   `MetricConfiguration`, `LogGroupConfiguration`, and\n   `TraceConfiguration` are set on the link at creation. Changing\n   scope later requires `update-link`. Over-scoping floods the\n   monitoring account; under-scoping silently hides the metric.\n5. **IAM `oam:PutSinkPolicy` in the monitoring account** — to\n   authorize a new source account, the monitoring account updates\n   the sink policy. Source accounts need `oam:CreateLink` only.\n6. **Managed Grafana queries via the sink role** — Grafana does\n   NOT query each source account individually. It assumes a role\n   in the monitoring account that has read access to the sink.\n7. **AMP cross-account uses a different attachment model** — AMP\n   workspace cross-account query rules are configured on the\n   workspace, NOT via OAM. OAM applies to CloudWatch metrics,\n   logs, and traces. For AMP, use cross-account IAM roles on the\n   workspace.\n8. **Application Signals cross-account requires the link plus\n   enablement in each source** — OAM shares the\n   `AWS\u002FApplicationSignals` namespace, but the source workload\n   must have Application Signals enabled separately. OAM transports\n   the metrics; it does not flip the enable bit.\n\n## Prerequisites (verify before deployment)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| **Two or more AWS accounts** | One monitoring account, one or more source accounts. | `aws sts get-caller-identity` in each |\n| **Monitoring account IAM principal** | Needs `oam:CreateSink`, `oam:PutSinkPolicy`, `oam:GetSink`, `oam:ListSinks`, `oam:ListAttachedLinks`. | `aws iam list-attached-role-policies --role-name \u003Crole>` |\n| **Source account IAM principal** | Needs `oam:CreateLink`, `oam:UpdateLink`, `oam:GetLink`, `oam:DeleteLink` scoped to the sink ARN. | Same, in source account |\n| **Sink policy resource principal entry** | MUST list each source account principal before `CreateLink` succeeds. | `aws oam get-sink-policy --sink-identifier \u003Carn>` |\n| **AWS Organizations (optional)** | Org-managed sink policies simplify large fleets. | `aws organizations describe-organization` |\n| **CloudWatch Logs groups exist** | LogGroupConfiguration filter must match existing log groups. | `aws logs describe-log-groups --region \u003Cr>` |\n| **X-Ray services emitting traces** | TraceConfiguration filter must match services that exist. | `aws xray get-summary --region \u003Cr>` |\n| **Application Signals enabled in each source** (optional) | Required for cross-account Application Signals correlation. | `aws application-signals list-services --region \u003Cr>` |\n| **Managed Grafana \u002F AMP workspaces** (optional) | Required for unified cross-account dashboards \u002F Prometheus queries. | `aws grafana list-workspaces`, `aws amp list-workspaces` |\n\n## Deployment procedure (apply in order)\n\n### Step 1: Create the OAM sink in the monitoring account\n\nThe sink is the aggregation point, Region-scoped. Create it in the\nmonitoring account with a descriptive name.\n\n```bash\n# Run from the MONITORING account (111122223333)\naws oam create-sink \\\n  --name ProdObservabilitySink \\\n  --tags Environment=prod,Team=observability \\\n  --region us-east-1\n```\n\nThe response returns a sink ARN like\n`arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink`.\nCapture it — every downstream command uses it. The default sink\npolicy allows only the monitoring account; update it (Step 2).\n\n### Step 2: Authorize source accounts via the sink policy\n\nThe sink policy is a resource-based policy. Add each source\naccount principal. Use the `aws:PrincipalAccount` condition to\nscope to specific accounts, or `aws:PrincipalOrgID` for an\norg-wide policy.\n\nStep 2 sink-policy CLI payload (sink-policy.json heredoc + put-sink-policy) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when authoring the resource-based sink policy; the Organizations `aws:PrincipalOrgID` variant stays below.\n\nFor an Organizations-managed fleet, prefer\n`aws:PrincipalOrgID` over enumerating accounts:\n\n```json\n\"Principal\": { \"AWS\": \"*\" },\n\"Condition\": { \"StringEquals\": { \"aws:PrincipalOrgID\": \"o-abcdef1234\" } }\n```\n\nThis auto-includes new accounts as they join the org, but the\nsource account IAM role still needs `oam:CreateLink` on the sink\nARN.\n\n### Step 3: Create the source account IAM role\n\nEach source account needs an IAM principal with permissions to\ncall `oam:CreateLink` on the sink ARN. Use a dedicated role; do\nnot attach to a broad administrative role.\n\nStep 3 source-account IAM role CLI payload (trust + permission documents + create-role + put-role-policy) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when creating the sink-scoped OAMLinkRole; keep the policy resource-locked to the sink ARN.\n\nResource-lock the policy to the specific sink ARN. A wildcard\n(`oam:CreateLink: *`) lets the source attach to any sink in any\naccount, which is rarely intended.\n\n### Step 4: Create the OAM link from the source account\n\nThe link is created in the SOURCE account. The link declares what\nresource types (metrics, log groups, traces, Application Signals)\nto share and the scope (which namespaces, which log group names,\nwhich X-Ray services).\n\nStep 4 OAM link CLI payload (link-config.json heredoc + create-link) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when authoring Metric\u002FLogGroup\u002FTrace filters; the Filter-language notes stay below.\n\nThe `Filter` language supports: `Namespace IN (...)`,\n`Service(\"...\")`, `prefix(\"...\")`, `OR`, `AND`. The filter is\ncase-sensitive. Use `AWS::CloudWatch::Metric` for CloudWatch\nmetrics, `AWS::Logs::LogGroup` for log groups, `AWS::XRay::Trace`\nfor X-Ray traces, and `AWS::ApplicationSignals::Service` for\nApplication Signals service map data. Repeat for each source\naccount.\n\n### Step 5: Verify the link is attached\n\nFrom the monitoring account, confirm each link landed:\n\n```bash\naws oam list-attached-links \\\n  --sink-identifier arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink \\\n  --region us-east-1\n\naws oam get-link \\\n  --identifier arn:aws:oam:us-east-1:444455556666:link\u002Fprod-app-link-abcdef \\\n  --region us-east-1\n```\n\nA link that is `CREATED` but not `ATTACHED` means the source\naccount created the link but the sink policy rejected the resource\ntypes; check the sink policy condition `oam:ResourceTypes`.\n\n### Step 6: Wire Managed Grafana to query via the sink\n\nManaged Grafana does not query each source account directly.\nGrafana assumes a role in the monitoring account that has read\naccess to CloudWatch (and the sink's data). The sink aggregates\ncross-account metrics, logs, and traces.\n\n1. In the monitoring account, create `GrafanaCrossAccountReadRole`\n   with `sts:AssumeRole` trust allowing the Grafana workspace\n   service principal.\n2. Attach a policy with `cloudwatch:GetMetricData`,\n   `cloudwatch:GetMetricStatistics`, `cloudwatch:ListMetrics`,\n   `logs:DescribeLogGroups`, `logs:FilterLogEvents`,\n   `logs:GetLogEvents`, `xray:GetTraceSummaries`,\n   `xray:GetTraceGraph`, `oam:GetSink`, `oam:ListAttachedLinks`.\n3. In the Managed Grafana workspace, add a CloudWatch data source\n   with the role ARN and Region. Add an X-Ray data source with\n   the same role ARN.\n\n```bash\naws grafana update-workspace \\\n  --workspace-id g-abcdef1234 \\\n  --workspace-data-sources '[{\"Type\":\"CLOUDWATCH\",\"Settings\":{\"accountID\":\"111122223333\",\"roleArn\":\"arn:aws:iam::111122223333:role\u002FGrafanaCrossAccountReadRole\"}},{\"Type\":\"XRAY\"}]' \\\n  --region us-east-1\n```\n\nIn Grafana dashboards, the cross-account data appears as a single\nCloudWatch \u002F X-Ray source. The `accountId` field in queries\ndefaults to the monitoring account; the sink transparently\nreturns aggregated data.\n\n### Step 7: Attach AMP workspace for cross-account Prometheus\n\nAMP (Managed Prometheus) cross-account query uses workspace\nquery-rule IAM roles, NOT OAM. To let the monitoring account or\nGrafana query an AMP workspace in a source account:\n\nStep 7 AMP cross-account query-rule CLI payload (amp-query-rule.json trust policy + create-workspace) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when wiring AMP workspace cross-account queries; remember OAM does NOT proxy AMP.\n\nThen in Grafana, add a Prometheus data source pointing at the AMP\nworkspace endpoint with the cross-account role ARN. Grafana\nassumes the role to query the workspace. OAM does NOT proxy AMP —\nthe workspace remains in the source account.\n\n### Step 8: Enable cross-account Application Signals\n\nApplication Signals cross-account requires: (1) Application\nSignals enabled in EACH source account for the workload (EKS,\nECS, Lambda, EC2) — use the\n`cloudwatch-application-signals-deployer` skill per source; (2)\nthe OAM link in each source includes\n`AWS::ApplicationSignals::Service` in `ResourceTypes`; (3) the\nsink policy allows the source account principal to share\n`AWS::ApplicationSignals::Service`.\n\nOnce linked, the monitoring account sees the\n`AWS\u002FApplicationSignals` namespace with metrics and service maps\naggregated across source accounts. Each service is dimensioned by\n`ServiceName`, `Environment`, `Type`, and includes a derived\n`SourceAccount` dimension for filtering.\n\n```bash\naws cloudwatch list-metrics \\\n  --namespace AWS\u002FApplicationSignals \\\n  --region us-east-1\n```\n\nIf the namespace is empty in the monitoring account, the cause is\nalmost always: Application Signals not enabled on the workload in\nthe source; link missing `AWS::ApplicationSignals::Service`; or\nthe workload not yet discovered (`list-services` returns empty in\nthe source account).\n\n### Step 9: Verify cross-account data flows\n\nWithin 1-5 minutes of link creation, cross-account data should\nappear in the monitoring account:\n\n```bash\naws cloudwatch list-metrics --namespace AWS\u002FEC2 --region us-east-1\naws logs describe-log-groups --log-group-name-prefix \u002Faws\u002Fecs\u002Fprod-app --region us-east-1\naws xray get-trace-summaries \\\n  --start-time $(date -u +%s --date='10 min ago') \\\n  --end-time $(date -u +%s) --region us-east-1\n```\n\nIf data does not appear within 15 minutes, the cause is almost\nalways: link filter scope excludes the namespace \u002F log group \u002F\nservice; sink policy condition\n`ForAllValues:StringEquals oam:ResourceTypes` excludes the\nresource type you expected; IAM role in the source account does\nNOT include the resource type in `oam:CreateLink` permission\nscope; or filter uses uppercase where the actual name is\nlowercase (filters are case-sensitive).\n\n### Step 10: Tag, alarm, and visualize cross-account\n\nTag the sink for cost allocation. Build dashboards and alarms on\nthe aggregated metrics in the monitoring account:\n\n```bash\naws oam tag-resource \\\n  --resource-arn arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink \\\n  --tags team=observability,env=prod\n\naws cloudwatch put-metric-alarm \\\n  --alarm-name cross-account-checkout-error-spike \\\n  --namespace AWS\u002FApplicationSignals \\\n  --metric-name Error \\\n  --dimensions Name=ServiceName,Value=checkout \\\n  --period 300 --evaluation-periods 2 \\\n  --threshold 50 --comparison-operator GreaterThanThreshold \\\n  --alarm-actions arn:aws:sns:us-east-1:111122223333:oncall\n```\n\nOpen the CloudWatch console in the monitoring account to confirm\nthe cross-account namespace, log groups, and X-Ray service map\npopulate. Use the \"Account\" column in the console to confirm each\nsource account is represented.\n\n## Resource-type sharing matrix\n\n| Resource type | What it shares | Filter language |\n|---|---|---|\n| `AWS::CloudWatch::Metric` | CloudWatch metrics by namespace | `Namespace IN (...)`, `prefix(\"...\")`, `AND`, `OR` |\n| `AWS::Logs::LogGroup` | CloudWatch Logs groups | log group name patterns: `name OR name OR prefix(\"...\")` |\n| `AWS::XRay::Trace` | X-Ray traces by service | `Service(\"name\") OR Service(\"name\")` |\n| `AWS::ApplicationSignals::Service` | Application Signals services | service name patterns |\n\n## Edge-case handling\n\nEdge-case catalog (CREATED-not-ATTACHED links, case-sensitive filters, empty log groups, disconnected service maps, missing Application Signals, empty Grafana queries, AMP 403, policy-change effects, cross-Region) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when a linked account's data does not appear in the monitoring account.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (2024-2026) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when choosing between new and legacy OAM mechanisms.\n\n## NEVER (top 5 — full list in references)\n\n- NEVER create the link from the monitoring account. The link is\n  created in the SOURCE account and references the sink ARN.\n  Creating from the monitoring account returns\n  `InvalidParameterException`.\n- NEVER use a wildcard sink policy (`\"Principal\": {\"AWS\": \"*\"}`)\n  without a condition. An open sink policy lets ANY AWS account\n  attach a link to your sink. Always scope with\n  `aws:PrincipalAccount`, `aws:PrincipalOrgID`, or explicit ARNs.\n- NEVER omit the `oam:ResourceTypes` condition on the sink policy\n  when you want to restrict resource types. Without the condition,\n  source accounts can share ANY resource type.\n- NEVER resource-lock the source account IAM policy to\n  `oam:CreateLink: *`. A wildcard lets the source attach to sinks\n  in other accounts. Scope to the specific sink ARN.\n- NEVER configure per-account Managed Grafana data sources for\n  OAM-shared data. Grafana queries the monitoring account role\n  which reads via the sink. Use a single data source per Region.\n\n## Expert heuristic — designing cross-account observability topology\n\nExpert heuristic — designing cross-account observability topology moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when planning multi-account \u002F multi-Region observability layouts.\n\n## Pre-flight safety checks (run before any OAM CLI)\n\nPre-flight safety checks (sink existence, sink policy principals, source IAM scoping, Region pinning, resource-type inventory) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand before running any OAM CLI.\n\n## Output format — MANDATORY literal labels\n\nWhen invoked with a CloudWatch cross-account observability\nrequest, your ENTIRE response MUST be the checklist block below.\nThe labels are **case-sensitive all-caps keywords** — write them\nEXACTLY as shown. Do NOT write a preamble. Start with\n`MONITORING_ACCOUNT:` and stop after the `VERIFICATION_COMMANDS:`\nblock.\n\n```text\nMONITORING_ACCOUNT: \u003Caccount-id>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓]      Monitoring account sink — \u003Csink-arn>\n  [✓]      Sink policy — allows source accounts \u003Clist> to attach\n  [✓]      Source link (\u003Caccount-id>) — \u003Clink-arn> attached to sink\n  [✓]      Sharing — MetricConfiguration: \u003Cnamespaces>\n  [✓]      Sharing — LogGroupConfiguration: \u003Clog-group-patterns>\n  [✓]      Sharing — TraceConfiguration: \u003Cxray-services>\n  [✓]      Sharing — ApplicationSignals services \u003Clist>\n  [✓]      IAM — source accounts hold oam:CreateLink on \u003Csink-arn>\n  [✓]      Managed Grafana — workspace \u003Cid> with CloudWatch data source via \u003Crole-arn>\n  [✓]      AMP workspace — \u003Cworkspace-id> attached as cross-account data source\n  [✓]      Cross-account Application Signals — service map aggregates across source accounts\n  [OPTIONAL] AWS Organizations managed link — org-wide sink policy\n  [OPTIONAL] CloudWatch Logs data protection — PII masking in shared log groups\nVERIFICATION_COMMANDS:\n  aws oam list-sinks --region \u003Cregion>\n  aws oam get-sink --identifier \u003Csink-arn>\n  aws oam list-attached-links --sink-identifier \u003Csink-arn>\n  aws oam list-links --region \u003Cregion>\n  aws cloudwatch list-metrics --namespace AWS\u002FApplicationSignals --region \u003Cregion>\n  aws logs describe-log-groups --log-group-name-prefix \u003Cprefix> --region \u003Cregion>\n  aws grafana list-workspaces --region \u003Cregion>\n  aws amp list-workspaces --region \u003Cregion>\n```\n\n**Status marker semantics:**\n- `[✓]` — applied and verified.\n- `[✗]` — NOT applied or misconfigured. Cite the gap.\n- `[OPTIONAL]` — recommended but not required for the workload\n  type.\n- `[INPUT NEEDED]` — prerequisite value missing; operator must\n  provide.\n\n**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite\nis missing (sink does not exist, sink policy missing source\naccount principal, source account lacks `oam:CreateLink` on sink\nARN, Application Signals enabled in monitoring but not in source),\nthe verdict is `PREREQUISITES_MISSING` with each gap listed and\na `REMEDIATION:` line per gap.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — edge-case catalog, topology-design expert heuristic, and Recent AWS features (2024-2026) moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight safety checks moved from SKILL.md\n- [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md) — deep CLI sequences; now also holds the Step 2\u002F3\u002F4 and Step 7 payload blocks moved from SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F Cross-Account Observability Provisioning.\n\n## AWS documentation\n\n- **CloudWatch Observability Access Manager** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-OAM.html\n- **OAM sink management** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-OAM-sink.html\n- **OAM link management + filter syntax** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-OAM-link.html\n- **Cross-account Application Signals** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-Application-Signals-cross-account.html\n- **Managed Grafana cross-account** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fgrafana\u002Flatest\u002Fuserguide\u002Fcross-account.html\n- **AMP cross-account query** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fprometheus\u002Flatest\u002Fuserguide\u002Fcross-account-query.html\n- **AWS CLI oam reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Foam\u002F\n- **AWS::Oam::Sink \u002F AWS::Oam::Link CloudFormation** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Faws-resource-oam-sink.html\n\n## References\n\n- `references\u002Fdeployment-cli-commands.md` — full copy-pasteable\n  CLI command sequence for all 10 provisioning steps, Terraform\n  equivalents, CloudFormation snippets, and StackSets templates.\n\n- `references\u002Fsharing-scopes-and-iam-guide.md` — sharing scopes,\n  sink policy templates (single, multi-account, org-wide), source\n  account IAM role patterns, AMP cross-account workspace roles,\n  full NEVER list, and edge-case handling.\n\n","# CloudWatch Cross-Account Observability Deployer\n\nAn AWS CloudOps agent skill that provisions CloudWatch cross-account\nobservability via Observability Access Manager (OAM). Creates the\nmonitoring account sink, attaches source accounts via OAM links,\nconfigures the sharing model (metrics, logs, traces, Application\nSignals), and validates the resulting topology with\n`READY_TO_DEPLOY` status. Wires Amazon Managed Grafana and AMP\ncross-account data-source integration.\n\n## Quick navigation\n\n| Need | Section |\n|---|---|\n| What MUST be in the response | \"STRICT output contract\" |\n| Why the topology order matters | \"Reasoning framework\" |\n| What to verify before linking | \"Prerequisites\" |\n| The ordered provisioning steps | \"Deployment procedure\" |\n| Common silent-failure pitfalls | \"NEVER\" |\n| Sink creation, link attachment, sharing scopes | \"Deployment procedure\" Steps 1-5 |\n| Managed Grafana and AMP cross-account wiring | \"Deployment procedure\" Steps 6-7 |\n| Cross-account Application Signals | \"Deployment procedure\" Step 8 |\n| 2024-2026 feature changes | \"Recent AWS features\" |\n| Deep CLI sequences | `references\u002Fdeployment-cli-commands.md` |\n| Sharing scopes, IAM policy templates, multi-org | `references\u002Fsharing-scopes-and-iam-guide.md` |\n\n## STRICT output contract\n\nWhen this skill is invoked with a CloudWatch cross-account\nobservability request (sink creation, source account linking,\nsharing scope, Grafana integration, AMP cross-account, or a\npartial existing OAM topology), the agent MUST respond with the\nREADY_TO_DEPLOY checklist defined in \"Output format\" using the\nliteral all-caps labels `MONITORING_ACCOUNT:`, `VERDICT:`,\n`CHECKLIST:`, and `VERIFICATION_COMMANDS:`. Do NOT preface the\nchecklist with prose, headings, or disclaimers — emit the block\nas the first lines of the response.\n\n### Required output structure\n\n1. `MONITORING_ACCOUNT: \u003Caccount-id>` — the aggregator account\n   hosting the OAM sink.\n2. `VERDICT: READY_TO_DEPLOY` OR `VERDICT: PREREQUISITES_MISSING`.\n3. `CHECKLIST:` followed by indented lines with status markers\n   (`[✓]`, `[✗]`, `[OPTIONAL]`, `[INPUT NEEDED]`).\n4. `VERIFICATION_COMMANDS:` followed by indented `aws ...` commands.\n\n### FORBIDDEN output patterns\n\n- **No prose preamble before `MONITORING_ACCOUNT:`** — the first\n  non-empty line MUST be `MONITORING_ACCOUNT:`.\n- **No markdown variants of labels** — write `VERDICT:`, not\n  `**VERDICT:**`, `### Verdict`, `Verdict =`, or `` `VERDICT` ``.\n- **No swapping verdict tokens** — exactly `READY_TO_DEPLOY` or\n  `PREREQUISITES_MISSING`. Not \"ready\", \"missing\", \"BLOCKED\", \"OK\".\n- **No omitting `VERIFICATION_COMMANDS:`** — include even when\n  PREREQUISITES_MISSING; the operator needs commands to verify\n  gaps.\n- **No extra sections after `VERIFICATION_COMMANDS:`** — the\n  checklist block is the entire response. Put deeper explanation\n  in `references\u002F`.\n- **No status marker drift** — use only `[✓]`, `[✗]`, `[OPTIONAL]`,\n  `[INPUT NEEDED]`. Do not invent `[?]`, `[!]`, `[WARN]`, or emoji.\n\n### Perfect example (copy the shape exactly)\n\n```text\nMONITORING_ACCOUNT: 111122223333\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓]      Monitoring account sink — arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink\n  [✓]      Sink policy — allows source accounts 444455556666, 777788889999 to attach\n  [✓]      Source link (444455556666) — link\u002Fpayloads-prod-app attached to sink\n  [✓]      Source link (777788889999) — link\u002Fpayloads-payments-app attached to sink\n  [✓]      Sharing — MetricConfiguration: AWS\u002FEC2, AWS\u002FECS, AWS\u002FApplicationSignals (ALL)\n  [✓]      Sharing — LogGroupConfiguration: \u002Faws\u002Fecs\u002Fprod-app, \u002Faws\u002Flambda\u002Fpayments-api\n  [✓]      Sharing — TraceConfiguration: X-Ray services api-gateway, checkout, payments\n  [✓]      IAM — source accounts hold oam:CreateLink and oam:PutSinkPolicy on the sink ARN\n  [✓]      Managed Grafana — workspace grafana-prod has CloudWatch data source querying sink\n  [✓]      AMP workspace — amp-prod attached as cross-account data source\n  [✓]      Cross-account Application Signals — service map aggregates across both source accounts\n  [OPTIONAL] AWS Organizations managed link — use org-wide sink policy for > 50 source accounts\n  [OPTIONAL] CloudWatch Logs account-level data protection — mask PII in shared log groups\nVERIFICATION_COMMANDS:\n  aws oam list-sinks --region us-east-1\n  aws oam get-sink --identifier arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink\n  aws oam list-attached-links --sink-identifier arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink\n  aws oam list-links --region us-east-1\n  aws cloudwatch list-metrics --namespace AWS\u002FApplicationSignals --region us-east-1\n  aws logs describe-log-groups --log-group-name-prefix \u002Faws\u002Fecs --region us-east-1\n  aws grafana list-workspaces --region us-east-1\n  aws amp list-workspaces --region us-east-1\n```\n\n## Reasoning framework (why the topology order matters)\n\nCross-account observability via OAM has **dependency and ordering\nconstraints**. Skipping or misordering causes silent gaps — the\nmonitoring account sees some accounts but not others, certain\nnamespaces never appear, or Managed Grafana queries return empty:\n\n1. **Sink FIRST, in the monitoring account** — `oam create-sink`\n   provisions the aggregation point. Every link references the\n   sink ARN. The sink must exist before any source account can\n   call `oam create-link`.\n2. **Sink policy controls who can attach** — the sink policy is a\n   resource-based policy. Without an entry for a source account,\n   `oam create-link` from that account returns `AccessDenied`.\n3. **Source account creates the link** — the link is created in\n   the SOURCE account, not the monitoring account. The source\n   account must have an IAM identity with `oam:CreateLink`\n   permission scoped to the sink ARN. Calling `oam create-link`\n   from the monitoring account fails.\n4. **Sharing scope declared at link creation** —\n   `MetricConfiguration`, `LogGroupConfiguration`, and\n   `TraceConfiguration` are set on the link at creation. Changing\n   scope later requires `update-link`. Over-scoping floods the\n   monitoring account; under-scoping silently hides the metric.\n5. **IAM `oam:PutSinkPolicy` in the monitoring account** — to\n   authorize a new source account, the monitoring account updates\n   the sink policy. Source accounts need `oam:CreateLink` only.\n6. **Managed Grafana queries via the sink role** — Grafana does\n   NOT query each source account individually. It assumes a role\n   in the monitoring account that has read access to the sink.\n7. **AMP cross-account uses a different attachment model** — AMP\n   workspace cross-account query rules are configured on the\n   workspace, NOT via OAM. OAM applies to CloudWatch metrics,\n   logs, and traces. For AMP, use cross-account IAM roles on the\n   workspace.\n8. **Application Signals cross-account requires the link plus\n   enablement in each source** — OAM shares the\n   `AWS\u002FApplicationSignals` namespace, but the source workload\n   must have Application Signals enabled separately. OAM transports\n   the metrics; it does not flip the enable bit.\n\n## Prerequisites (verify before deployment)\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| **Two or more AWS accounts** | One monitoring account, one or more source accounts. | `aws sts get-caller-identity` in each |\n| **Monitoring account IAM principal** | Needs `oam:CreateSink`, `oam:PutSinkPolicy`, `oam:GetSink`, `oam:ListSinks`, `oam:ListAttachedLinks`. | `aws iam list-attached-role-policies --role-name \u003Crole>` |\n| **Source account IAM principal** | Needs `oam:CreateLink`, `oam:UpdateLink`, `oam:GetLink`, `oam:DeleteLink` scoped to the sink ARN. | Same, in source account |\n| **Sink policy resource principal entry** | MUST list each source account principal before `CreateLink` succeeds. | `aws oam get-sink-policy --sink-identifier \u003Carn>` |\n| **AWS Organizations (optional)** | Org-managed sink policies simplify large fleets. | `aws organizations describe-organization` |\n| **CloudWatch Logs groups exist** | LogGroupConfiguration filter must match existing log groups. | `aws logs describe-log-groups --region \u003Cr>` |\n| **X-Ray services emitting traces** | TraceConfiguration filter must match services that exist. | `aws xray get-summary --region \u003Cr>` |\n| **Application Signals enabled in each source** (optional) | Required for cross-account Application Signals correlation. | `aws application-signals list-services --region \u003Cr>` |\n| **Managed Grafana \u002F AMP workspaces** (optional) | Required for unified cross-account dashboards \u002F Prometheus queries. | `aws grafana list-workspaces`, `aws amp list-workspaces` |\n\n## Deployment procedure (apply in order)\n\n### Step 1: Create the OAM sink in the monitoring account\n\nThe sink is the aggregation point, Region-scoped. Create it in the\nmonitoring account with a descriptive name.\n\n```bash\n# Run from the MONITORING account (111122223333)\naws oam create-sink \\\n  --name ProdObservabilitySink \\\n  --tags Environment=prod,Team=observability \\\n  --region us-east-1\n```\n\nThe response returns a sink ARN like\n`arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink`.\nCapture it — every downstream command uses it. The default sink\npolicy allows only the monitoring account; update it (Step 2).\n\n### Step 2: Authorize source accounts via the sink policy\n\nThe sink policy is a resource-based policy. Add each source\naccount principal. Use the `aws:PrincipalAccount` condition to\nscope to specific accounts, or `aws:PrincipalOrgID` for an\norg-wide policy.\n\nStep 2 sink-policy CLI payload (sink-policy.json heredoc + put-sink-policy) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when authoring the resource-based sink policy; the Organizations `aws:PrincipalOrgID` variant stays below.\n\nFor an Organizations-managed fleet, prefer\n`aws:PrincipalOrgID` over enumerating accounts:\n\n```json\n\"Principal\": { \"AWS\": \"*\" },\n\"Condition\": { \"StringEquals\": { \"aws:PrincipalOrgID\": \"o-abcdef1234\" } }\n```\n\nThis auto-includes new accounts as they join the org, but the\nsource account IAM role still needs `oam:CreateLink` on the sink\nARN.\n\n### Step 3: Create the source account IAM role\n\nEach source account needs an IAM principal with permissions to\ncall `oam:CreateLink` on the sink ARN. Use a dedicated role; do\nnot attach to a broad administrative role.\n\nStep 3 source-account IAM role CLI payload (trust + permission documents + create-role + put-role-policy) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when creating the sink-scoped OAMLinkRole; keep the policy resource-locked to the sink ARN.\n\nResource-lock the policy to the specific sink ARN. A wildcard\n(`oam:CreateLink: *`) lets the source attach to any sink in any\naccount, which is rarely intended.\n\n### Step 4: Create the OAM link from the source account\n\nThe link is created in the SOURCE account. The link declares what\nresource types (metrics, log groups, traces, Application Signals)\nto share and the scope (which namespaces, which log group names,\nwhich X-Ray services).\n\nStep 4 OAM link CLI payload (link-config.json heredoc + create-link) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when authoring Metric\u002FLogGroup\u002FTrace filters; the Filter-language notes stay below.\n\nThe `Filter` language supports: `Namespace IN (...)`,\n`Service(\"...\")`, `prefix(\"...\")`, `OR`, `AND`. The filter is\ncase-sensitive. Use `AWS::CloudWatch::Metric` for CloudWatch\nmetrics, `AWS::Logs::LogGroup` for log groups, `AWS::XRay::Trace`\nfor X-Ray traces, and `AWS::ApplicationSignals::Service` for\nApplication Signals service map data. Repeat for each source\naccount.\n\n### Step 5: Verify the link is attached\n\nFrom the monitoring account, confirm each link landed:\n\n```bash\naws oam list-attached-links \\\n  --sink-identifier arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink \\\n  --region us-east-1\n\naws oam get-link \\\n  --identifier arn:aws:oam:us-east-1:444455556666:link\u002Fprod-app-link-abcdef \\\n  --region us-east-1\n```\n\nA link that is `CREATED` but not `ATTACHED` means the source\naccount created the link but the sink policy rejected the resource\ntypes; check the sink policy condition `oam:ResourceTypes`.\n\n### Step 6: Wire Managed Grafana to query via the sink\n\nManaged Grafana does not query each source account directly.\nGrafana assumes a role in the monitoring account that has read\naccess to CloudWatch (and the sink's data). The sink aggregates\ncross-account metrics, logs, and traces.\n\n1. In the monitoring account, create `GrafanaCrossAccountReadRole`\n   with `sts:AssumeRole` trust allowing the Grafana workspace\n   service principal.\n2. Attach a policy with `cloudwatch:GetMetricData`,\n   `cloudwatch:GetMetricStatistics`, `cloudwatch:ListMetrics`,\n   `logs:DescribeLogGroups`, `logs:FilterLogEvents`,\n   `logs:GetLogEvents`, `xray:GetTraceSummaries`,\n   `xray:GetTraceGraph`, `oam:GetSink`, `oam:ListAttachedLinks`.\n3. In the Managed Grafana workspace, add a CloudWatch data source\n   with the role ARN and Region. Add an X-Ray data source with\n   the same role ARN.\n\n```bash\naws grafana update-workspace \\\n  --workspace-id g-abcdef1234 \\\n  --workspace-data-sources '[{\"Type\":\"CLOUDWATCH\",\"Settings\":{\"accountID\":\"111122223333\",\"roleArn\":\"arn:aws:iam::111122223333:role\u002FGrafanaCrossAccountReadRole\"}},{\"Type\":\"XRAY\"}]' \\\n  --region us-east-1\n```\n\nIn Grafana dashboards, the cross-account data appears as a single\nCloudWatch \u002F X-Ray source. The `accountId` field in queries\ndefaults to the monitoring account; the sink transparently\nreturns aggregated data.\n\n### Step 7: Attach AMP workspace for cross-account Prometheus\n\nAMP (Managed Prometheus) cross-account query uses workspace\nquery-rule IAM roles, NOT OAM. To let the monitoring account or\nGrafana query an AMP workspace in a source account:\n\nStep 7 AMP cross-account query-rule CLI payload (amp-query-rule.json trust policy + create-workspace) moved verbatim to [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md).\nLoad on demand when wiring AMP workspace cross-account queries; remember OAM does NOT proxy AMP.\n\nThen in Grafana, add a Prometheus data source pointing at the AMP\nworkspace endpoint with the cross-account role ARN. Grafana\nassumes the role to query the workspace. OAM does NOT proxy AMP —\nthe workspace remains in the source account.\n\n### Step 8: Enable cross-account Application Signals\n\nApplication Signals cross-account requires: (1) Application\nSignals enabled in EACH source account for the workload (EKS,\nECS, Lambda, EC2) — use the\n`cloudwatch-application-signals-deployer` skill per source; (2)\nthe OAM link in each source includes\n`AWS::ApplicationSignals::Service` in `ResourceTypes`; (3) the\nsink policy allows the source account principal to share\n`AWS::ApplicationSignals::Service`.\n\nOnce linked, the monitoring account sees the\n`AWS\u002FApplicationSignals` namespace with metrics and service maps\naggregated across source accounts. Each service is dimensioned by\n`ServiceName`, `Environment`, `Type`, and includes a derived\n`SourceAccount` dimension for filtering.\n\n```bash\naws cloudwatch list-metrics \\\n  --namespace AWS\u002FApplicationSignals \\\n  --region us-east-1\n```\n\nIf the namespace is empty in the monitoring account, the cause is\nalmost always: Application Signals not enabled on the workload in\nthe source; link missing `AWS::ApplicationSignals::Service`; or\nthe workload not yet discovered (`list-services` returns empty in\nthe source account).\n\n### Step 9: Verify cross-account data flows\n\nWithin 1-5 minutes of link creation, cross-account data should\nappear in the monitoring account:\n\n```bash\naws cloudwatch list-metrics --namespace AWS\u002FEC2 --region us-east-1\naws logs describe-log-groups --log-group-name-prefix \u002Faws\u002Fecs\u002Fprod-app --region us-east-1\naws xray get-trace-summaries \\\n  --start-time $(date -u +%s --date='10 min ago') \\\n  --end-time $(date -u +%s) --region us-east-1\n```\n\nIf data does not appear within 15 minutes, the cause is almost\nalways: link filter scope excludes the namespace \u002F log group \u002F\nservice; sink policy condition\n`ForAllValues:StringEquals oam:ResourceTypes` excludes the\nresource type you expected; IAM role in the source account does\nNOT include the resource type in `oam:CreateLink` permission\nscope; or filter uses uppercase where the actual name is\nlowercase (filters are case-sensitive).\n\n### Step 10: Tag, alarm, and visualize cross-account\n\nTag the sink for cost allocation. Build dashboards and alarms on\nthe aggregated metrics in the monitoring account:\n\n```bash\naws oam tag-resource \\\n  --resource-arn arn:aws:oam:us-east-1:111122223333:sink\u002FProdObservabilitySink \\\n  --tags team=observability,env=prod\n\naws cloudwatch put-metric-alarm \\\n  --alarm-name cross-account-checkout-error-spike \\\n  --namespace AWS\u002FApplicationSignals \\\n  --metric-name Error \\\n  --dimensions Name=ServiceName,Value=checkout \\\n  --period 300 --evaluation-periods 2 \\\n  --threshold 50 --comparison-operator GreaterThanThreshold \\\n  --alarm-actions arn:aws:sns:us-east-1:111122223333:oncall\n```\n\nOpen the CloudWatch console in the monitoring account to confirm\nthe cross-account namespace, log groups, and X-Ray service map\npopulate. Use the \"Account\" column in the console to confirm each\nsource account is represented.\n\n## Resource-type sharing matrix\n\n| Resource type | What it shares | Filter language |\n|---|---|---|\n| `AWS::CloudWatch::Metric` | CloudWatch metrics by namespace | `Namespace IN (...)`, `prefix(\"...\")`, `AND`, `OR` |\n| `AWS::Logs::LogGroup` | CloudWatch Logs groups | log group name patterns: `name OR name OR prefix(\"...\")` |\n| `AWS::XRay::Trace` | X-Ray traces by service | `Service(\"name\") OR Service(\"name\")` |\n| `AWS::ApplicationSignals::Service` | Application Signals services | service name patterns |\n\n## Edge-case handling\n\nEdge-case catalog (CREATED-not-ATTACHED links, case-sensitive filters, empty log groups, disconnected service maps, missing Application Signals, empty Grafana queries, AMP 403, policy-change effects, cross-Region) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when a linked account's data does not appear in the monitoring account.\n\n## Recent AWS features (2024-2026)\n\nRecent AWS features (2024-2026) moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when choosing between new and legacy OAM mechanisms.\n\n## NEVER (top 5 — full list in references)\n\n- NEVER create the link from the monitoring account. The link is\n  created in the SOURCE account and references the sink ARN.\n  Creating from the monitoring account returns\n  `InvalidParameterException`.\n- NEVER use a wildcard sink policy (`\"Principal\": {\"AWS\": \"*\"}`)\n  without a condition. An open sink policy lets ANY AWS account\n  attach a link to your sink. Always scope with\n  `aws:PrincipalAccount`, `aws:PrincipalOrgID`, or explicit ARNs.\n- NEVER omit the `oam:ResourceTypes` condition on the sink policy\n  when you want to restrict resource types. Without the condition,\n  source accounts can share ANY resource type.\n- NEVER resource-lock the source account IAM policy to\n  `oam:CreateLink: *`. A wildcard lets the source attach to sinks\n  in other accounts. Scope to the specific sink ARN.\n- NEVER configure per-account Managed Grafana data sources for\n  OAM-shared data. Grafana queries the monitoring account role\n  which reads via the sink. Use a single data source per Region.\n\n## Expert heuristic — designing cross-account observability topology\n\nExpert heuristic — designing cross-account observability topology moved verbatim to [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\nLoad on demand when planning multi-account \u002F multi-Region observability layouts.\n\n## Pre-flight safety checks (run before any OAM CLI)\n\nPre-flight safety checks (sink existence, sink policy principals, source IAM scoping, Region pinning, resource-type inventory) moved verbatim to [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md).\nLoad on demand before running any OAM CLI.\n\n## Output format — MANDATORY literal labels\n\nWhen invoked with a CloudWatch cross-account observability\nrequest, your ENTIRE response MUST be the checklist block below.\nThe labels are **case-sensitive all-caps keywords** — write them\nEXACTLY as shown. Do NOT write a preamble. Start with\n`MONITORING_ACCOUNT:` and stop after the `VERIFICATION_COMMANDS:`\nblock.\n\n```text\nMONITORING_ACCOUNT: \u003Caccount-id>\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓]      Monitoring account sink — \u003Csink-arn>\n  [✓]      Sink policy — allows source accounts \u003Clist> to attach\n  [✓]      Source link (\u003Caccount-id>) — \u003Clink-arn> attached to sink\n  [✓]      Sharing — MetricConfiguration: \u003Cnamespaces>\n  [✓]      Sharing — LogGroupConfiguration: \u003Clog-group-patterns>\n  [✓]      Sharing — TraceConfiguration: \u003Cxray-services>\n  [✓]      Sharing — ApplicationSignals services \u003Clist>\n  [✓]      IAM — source accounts hold oam:CreateLink on \u003Csink-arn>\n  [✓]      Managed Grafana — workspace \u003Cid> with CloudWatch data source via \u003Crole-arn>\n  [✓]      AMP workspace — \u003Cworkspace-id> attached as cross-account data source\n  [✓]      Cross-account Application Signals — service map aggregates across source accounts\n  [OPTIONAL] AWS Organizations managed link — org-wide sink policy\n  [OPTIONAL] CloudWatch Logs data protection — PII masking in shared log groups\nVERIFICATION_COMMANDS:\n  aws oam list-sinks --region \u003Cregion>\n  aws oam get-sink --identifier \u003Csink-arn>\n  aws oam list-attached-links --sink-identifier \u003Csink-arn>\n  aws oam list-links --region \u003Cregion>\n  aws cloudwatch list-metrics --namespace AWS\u002FApplicationSignals --region \u003Cregion>\n  aws logs describe-log-groups --log-group-name-prefix \u003Cprefix> --region \u003Cregion>\n  aws grafana list-workspaces --region \u003Cregion>\n  aws amp list-workspaces --region \u003Cregion>\n```\n\n**Status marker semantics:**\n- `[✓]` — applied and verified.\n- `[✗]` — NOT applied or misconfigured. Cite the gap.\n- `[OPTIONAL]` — recommended but not required for the workload\n  type.\n- `[INPUT NEEDED]` — prerequisite value missing; operator must\n  provide.\n\n**PREREQUISITES_MISSING verdict:** if any REQUIRED prerequisite\nis missing (sink does not exist, sink policy missing source\naccount principal, source account lacks `oam:CreateLink` on sink\nARN, Application Signals enabled in monitoring but not in source),\nthe verdict is `PREREQUISITES_MISSING` with each gap listed and\na `REMEDIATION:` line per gap.\n\n## References (load on demand)\n\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — edge-case catalog, topology-design expert heuristic, and Recent AWS features (2024-2026) moved from SKILL.md\n- [references\u002Fdiagnostic-commands.md](references\u002Fdiagnostic-commands.md) — pre-flight safety checks moved from SKILL.md\n- [references\u002Fdeployment-cli-commands.md](references\u002Fdeployment-cli-commands.md) — deep CLI sequences; now also holds the Step 2\u002F3\u002F4 and Step 7 payload blocks moved from SKILL.md\n\n## Domain\n\nAWS CloudOps \u002F Cross-Account Observability Provisioning.\n\n## AWS documentation\n\n- **CloudWatch Observability Access Manager** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-OAM.html\n- **OAM sink management** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-OAM-sink.html\n- **OAM link management + filter syntax** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-OAM-link.html\n- **Cross-account Application Signals** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonCloudWatch\u002Flatest\u002Fmonitoring\u002FCloudWatch-Application-Signals-cross-account.html\n- **Managed Grafana cross-account** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fgrafana\u002Flatest\u002Fuserguide\u002Fcross-account.html\n- **AMP cross-account query** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fprometheus\u002Flatest\u002Fuserguide\u002Fcross-account-query.html\n- **AWS CLI oam reference** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fcli\u002Flatest\u002Freference\u002Foam\u002F\n- **AWS::Oam::Sink \u002F AWS::Oam::Link CloudFormation** — https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSCloudFormation\u002Flatest\u002FUserGuide\u002Faws-resource-oam-sink.html\n\n## References\n\n- `references\u002Fdeployment-cli-commands.md` — full copy-pasteable\n  CLI command sequence for all 10 provisioning steps, Terraform\n  equivalents, CloudFormation snippets, and StackSets templates.\n\n- `references\u002Fsharing-scopes-and-iam-guide.md` — sharing scopes,\n  sink policy templates (single, multi-account, org-wide), source\n  account IAM role patterns, AMP cross-account workspace roles,\n  full NEVER list, and edge-case handling.\n\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"dependencies":37,"requires_llm":38,"verdict_shape":39,"lifecycle_status":40,"supports_pipeline":38},"aws, cloudwatch, oam, cross-account, observability, deploy","1","Jacky Chan — AWS Community Builder","aws-cloudops","Management","0.1.0","aws, cloudwatch, oam, observability-access-manager, cross-account, multi-account, observability, cloudops, deploy, provisioning, managed-grafana, amp, managed-prometheus, application-signals","deploy","high","false","capability","Invoke when the user wants to create a CloudWatch cross-account observability topology — a monitoring (aggregator) account with an OAM sink and one or more source accounts with OAM links sharing metrics, logs, traces, or Application Signals data. Use for provisioning the OAM sink, attaching source accounts, scoping the sharing model (which namespaces, which log groups, which X-Ray services), wiring Amazon Managed Grafana to query across accounts via the sink, attaching AMP (Managed Prometheus) workspaces to the OAM sink, or enabling cross-account Application Signals service maps. Do NOT invoke for single-account CloudWatch dashboards \u002F alarms (cloudwatch-dashboard-deployer \u002F cloudwatch-alarm-operator), for IAM cross-account role assumption patterns (iam-role-deployer), for CloudTrail org trails (cloudtrail-org-trail-auditor), or for single-account Application Signals enablement (cloudwatch-application-signals-deployer).","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with oam, cloudwatch, iam, logs, xray, application-signals, amp, grafana, and organizations access. Works with Terraform aws_oam_sink \u002F aws_oam_link, CloudFormation AWS::Oam::Sink \u002F AWS::Oam::Link, and AWS CloudFormation StackSets for multi-account link deployment.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fcloudwatch-cross-account-observability-deployer",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-cross-account-observability-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-cross-account-observability-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill cloudwatch-cross-account-observability-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5745,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Foam-cross-account-application-signals-gap.md",561,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fbaselines\u002Foam-cross-account-application-signals-gap.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Foam-managed-grafana-and-amp-cross-account.md",442,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fbaselines\u002Foam-managed-grafana-and-amp-cross-account.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Foam-org-wide-sink-policy-fleet.md",537,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fbaselines\u002Foam-org-wide-sink-policy-fleet.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Foam-sink-and-link-two-source-accounts.md",631,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fbaselines\u002Foam-sink-and-link-two-source-accounts.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Foam-sink-policy-missing-source-principal.md",528,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fbaselines\u002Foam-sink-policy-missing-source-principal.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1998,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",4539,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Foam-cross-account-application-signals-gap.md",1308,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fprompts\u002Foam-cross-account-application-signals-gap.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Foam-managed-grafana-and-amp-cross-account.md",1404,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fprompts\u002Foam-managed-grafana-and-amp-cross-account.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Foam-org-wide-sink-policy-fleet.md",1274,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fprompts\u002Foam-org-wide-sink-policy-fleet.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Foam-sink-and-link-two-source-accounts.md",1417,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fprompts\u002Foam-sink-and-link-two-source-accounts.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Foam-sink-policy-missing-source-principal.md",1193,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fevals\u002Fprompts\u002Foam-sink-policy-missing-source-principal.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"example\u002FREADME.md",5429,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fexample\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",4754,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Fdeployment-cli-commands.md",16569,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Freferences\u002Fdeployment-cli-commands.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fdiagnostic-commands.md",1224,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Freferences\u002Fdiagnostic-commands.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fsharing-scopes-and-iam-guide.md",11689,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Freferences\u002Fsharing-scopes-and-iam-guide.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"skill.usf.yaml",4375,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fcloudwatch-cross-account-observability-deployer\u002Fskill.usf.yaml",[143,150,157,164,171,178],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]