Files
floci/.github/workflows/docs-actions.yml
T
Hector Ventura b76eadc98e docs(cloudformation): generate the supported resource-type table (#2739)
The "Supported Resource Types" table was hand-maintained, and had drifted:
ten provisioned types were undocumented, including the whole CloudFront
row, Lambda's Permission/MicrovmImage/NetworkConnector, RDS DBProxy and
DBProxyTargetGroup, ECS capacity providers, EC2 VPCEndpoint and
ApiGatewayV2 Authorizer.

Generate it from the provisioner inventory TSV that CfnResourceInventoryTest
already pins to the CDI-resolved registry, so the table cannot drift from
what Floci actually provisions. Wired into docs-sync and docs-check, with
the inventory path added to the workflow filters: it lives under
src/test/resources, which src/main/** did not cover, so a slice that moved
a type between owners would have skipped the gate.

The table is prose as much as data, so presentation stays configurable in
cfn_resource_types.yaml: service labels, curated type order (types not
listed there are appended alphabetically, so a new type still appears),
per-type notes, and extra_types for capabilities that are real but are not
provisioner types, each needing a stated reason. Nested Stack and the
Custom::* wildcard are the two such entries; the wildcard cannot be an
inventory type because the registry is keyed by exact type.

The generator reads the TSV rather than the Java because several
provisioners return Set.of(CONSTANT, CONSTANT) from resourceTypes(), which
a source regex only partly sees.

Also flags two things cheaply, before anyone waits on a Quarkus boot: a
provisioner missing @ApplicationScoped, and a type claimed by both the
legacy switch and a provisioner.
2026-08-30 13:04:29 -05:00

57 lines
1.5 KiB
YAML

name: Docs Action Tables
# Keeps the generated tables in docs/services/*.md in sync with their sources: the
# "Supported Actions" tables with handler source, and the CloudFormation "Supported Resource
# Types" table with the provisioner inventory TSV. Runs on handler changes (which can add or
# remove actions), inventory changes (which add or move resource types), and on doc or tooling
# changes. Python-only, so it is fast and independent of the Java build job.
on:
pull_request:
paths:
- 'src/main/**'
- 'src/test/resources/cloudformation/**'
- 'docs/services/**'
- 'tools/docs/**'
- 'Makefile'
- '.github/workflows/docs-actions.yml'
push:
branches:
- main
paths:
- 'src/main/**'
- 'src/test/resources/cloudformation/**'
- 'docs/services/**'
- 'tools/docs/**'
- 'Makefile'
- '.github/workflows/docs-actions.yml'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
action-tables:
name: Action tables in sync
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7.0.1
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: "3.x"
- name: Install tooling deps
run: pip install -r tools/docs/requirements.txt
- name: Run action-table tests
run: make docs-test
- name: Check action tables are in sync
run: make docs-check