Commit 5be68b2
committed
feat(aws): add the ISO partitions to the AWS service region matrix
The region matrix only carried aws, aws-cn, aws-eusc and aws-us-gov, so
asking for the regions of a service in an ISO partition had no data to
answer with. That is the reason GovCloud works and the ISO partitions do
not: the code paths are the same, only the data is missing.
The generator now fills aws-iso, aws-iso-b, aws-iso-e and aws-iso-f from
the endpoints data bundled with botocore, which needs no credentials and
no network, so it also works for partitions the bot can never reach. The
SSM pass is left untouched: it remains the only source with data for the
existing partitions, and regenerating them yields no change at all.
Services are keyed by endpoint prefix in the botocore data and by service
name in the matrix, so the mapping is derived from the service models
themselves instead of being written by hand. Cost Explorer is renamed
explicitly, and the streaming endpoint of Transcribe is ignored because
the service is already resolved through its own prefix. An endpoint
prefix that resolves to neither aborts the run, so a service newly
available in a partition is noticed instead of silently dropped.
Every service keeps carrying every partition, empty where the service is
not available, as it already did for the existing partitions.
The bot install is pinned to the version in pyproject.toml, since the
bundled endpoints data is now itself a source and has to be deterministic.1 parent 1edcf6e commit 5be68b2
6 files changed
Lines changed: 2943 additions & 89 deletions
File tree
- .github/workflows
- prowler
- changelog.d
- providers/aws
- tests/providers/aws
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments