Files
floci/tools/docs/service_matrix.yaml
T
Matan Baruch 277809fb41 feat(aps): add Amazon Managed Service for Prometheus workspaces (#2604)
* feat(aps): add Amazon Managed Service for Prometheus workspaces

Implements the AMP workspace lifecycle (CreateWorkspace,
DescribeWorkspace, ListWorkspaces, UpdateWorkspaceAlias,
DeleteWorkspace) plus tagging through the shared /tags/{resourceArn}
dispatcher via a TagHandler with service key aps. Previously the aps
service did not exist, so aws_prometheus_workspace could not be created
through Terraform or Pulumi at all.

Workspaces are ACTIVE from birth so the provider's create waiter
(CREATING to ACTIVE) completes on its first DescribeWorkspace poll, and
a deleted workspace answers DescribeWorkspace with the typed
ResourceNotFoundException its delete waiter matches. createdAt is
serialized as restJson1 epoch-seconds; the ListWorkspaces alias
parameter is a prefix filter, matching the provider's alias_prefix.

clientToken is accepted and ignored, kmsKeyArn is stored and echoed,
and no alertmanager/rulegroups/scraper/logging operations are included.

* refactor(aps): build ARNs via RegionResolver and parse tag ARNs with AwsArnUtils

Replaces the inlined AwsArnUtils.Arn.of + config.defaultRegion pair with
regionResolver.getRegion()/buildArn so a request signed for another
region gets an ARN and endpoint in that region, and drops the
EmulatorConfig dependency that existed only for that getter. The tag
dispatcher path now parses ARNs with AwsArnUtils.parse plus an explicit
workspace/ prefix check (the SchedulerTagHandler idiom), so a
non-workspace aps ARN fails with ValidationException instead of a
misleading workspace ResourceNotFoundException. Also makes the delete
and alias mutators void (their returns were unused) and removes a dead
DELETING status mutation.

* docs(aps): map the aps service key to managed-prometheus.md in the service matrix

The docs-check gate matches ResolvedServiceCatalog external keys against
docs/services/index.md rows by filename; aps is documented at
managed-prometheus.md, so it needs the same alias treatment as
kafka -> msk.

* fix(aps): partition workspaces by request region and align minor wire details

Review follow-ups from #2604:

- Key the workspace store by region (region::workspaceId, like
  CloudWatchLogsService's groupKey), and thread the SigV4-resolved request
  region through every lifecycle and TagHandler operation, so workspaces
  created in one region are invisible to describe/list/delete/tag calls
  served in another. Covered by unit and HTTP region-isolation tests.
- Default ListWorkspaces to pages of 100 (AWS's documented default) while
  keeping the 1000 ceiling, via Pagination's seven-argument overload.
- Strip leading/trailing blanks from aliases at create, alias update, and
  the list prefix filter, per the documented normalisation.
- Return DeleteWorkspace's 202 with an empty body instead of {}.
- Reject tag keys beginning with the reserved aws: prefix in TagResource
  with a ValidationException.

* refactor(aps): align the reserved tag-key check with sibling services

- Match the aws: prefix case-insensitively as a plain loop, the same idiom
  as FisService and BatchService, instead of a case-sensitive stream chain.
- Derive key() from keyPrefix() so the :: separator lives in one place, and
  hoist the region prefix out of the scan predicate.
- Replace the two near-identical SigV4 Authorization literals in the
  integration test with an auth(region) helper.
2026-08-28 10:05:42 -04:00

62 lines
3.9 KiB
YAML

# Registry for the service-matrix presence check (tools/docs/check_service_matrix.py).
#
# Every descriptor("externalKey", "configKey", ...) registered in
# core/common/ResolvedServiceCatalog.java must resolve to a row in the Service Matrix
# table in docs/services/index.md, keyed by the .md filename its row links to (no
# extension, no #anchor). A key resolves one of three ways:
#
# 1. exact match - externalKey literally equals a documented filename. No entry
# needed in this file; most services work this way.
# 2. aliases - externalKey differs from the filename that documents it, because
# it's an AWS SigV4 signing-name quirk (`kafka` -> msk.md) or a
# facet folded into another service's page (`ec2messages` -> ssm.md).
# 3. deferred - genuinely undocumented today, tracked with a reason. A NEW
# descriptor key that is neither an exact match, an alias target,
# nor listed here fails `check_service_matrix.py --strict`.
aliases:
apigateway: api-gateway # "API Gateway v1" row title
apigatewayv2: api-gateway # v2 facet, documented at api-gateway.md#v2
aps: managed-prometheus # AMP's SigV4 signing name is "aps"
kafka: msk # MSK's SigV4 signing name is "kafka"
mq: amazonmq # Amazon MQ's SigV4 signing name is "mq"
signin: iam # AWS Sign-In facet, at iam.md#aws-sign-in-login-credentials
sso: iam # Identity Center ListInstances facet on the IAM page
events: eventbridge
servicediscovery: cloudmap # Cloud Map's SigV4 signing name
elasticmapreduce: emr # EMR's SigV4 signing name
logs: cloudwatch # CloudWatch Logs facet, at cloudwatch.md
monitoring: cloudwatch # CloudWatch Metrics facet, at cloudwatch.md#metrics
secretsmanager: secrets-manager
servicecatalog: service-catalog
cognito-idp: cognito # Cognito's SigV4 signing name
states: step-functions # Step Functions' SigV4 signing name
email: ses # SES's SigV4 signing name
es: opensearch # OpenSearch's SigV4 signing name (legacy Elasticsearch)
appconfigdata: appconfig # data-plane facet, at appconfig.md#data-plane
tagging: resource-groups-tagging # Resource Groups Tagging API's SigV4 signing name
elasticloadbalancing: elb # ELB v2's SigV4 signing name
application-autoscaling: applicationautoscaling
elasticbeanstalk: elastic-beanstalk
ec2messages: ssm # SSM Messages facet, documented alongside ssm.md
iotdata: iot # IoT Data row shares iot.md with IoT Core
resource-explorer-2: resource-explorer # API version suffix; the page is resource-explorer.md
# A NEW switch/REST descriptor not listed here and not resolvable via an alias fails
# `--strict`. Every entry MUST carry a `by:` expiry date (ISO, YYYY-MM-DD): once that
# date passes, `--strict` fails for it exactly as if it were never listed, even though
# the entry is still physically present in this file. This is deliberate - an
# unbounded deferred list is a silent, permanent bypass of the whole check, which is
# how Bedrock AgentCore (#2316) shipped a working service that stayed off the matrix
# for five days with nothing red anywhere. An expiring entry forces a human to either
# add the row or come back and renew the date with a fresh justification; it can never
# just be forgotten. Remove an entry outright once the referenced PR merges and the
# row lands - don't wait for it to expire.
deferred:
- key: bedrock-agentcore
reason: "documented by floci-io/floci#2436 (open at time of writing)"
by: "2026-09-15"
- key: bedrock-agentcore-control
reason: "documented by floci-io/floci#2436 (open at time of writing)"
by: "2026-09-15"