fix(iam): read a DMS resource's tags under the key its type names (#10255)

The Service Reference lists a tag key named after each DMS resource
type, dms:rep-tag/${TagKey} on a replication instance and
dms:endpoint-tag/${TagKey} on an endpoint, which Floci never filled, so
a condition on one never matched. The DMS User Guide says "The tag keys
are prefixed with "dms", the resource type, and the "tag" prefix", in
the format dms:{resource type}-tag/{tag key}, and that such a key
"matches a resource with the given tag".

A fetcher vendors that section of the guide. The request-resources
generator reads a key of the format the reference lists on a type as
that type's stored-tag prefix, leaving out dms:req-tag/, the request's
tags, and refusing a key listed on two types. It writes the format as
tagKeyFormats, which the reader checks those keys against.

The request-resources check now also runs when one of the vendored
sources its generator reads changes, several of which were missing from
the Makefile's paths and the drift workflow's triggers.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-12-05 15:44:49 -04:00
1 parent 8dd82add36
commit 335b66dd27
14 files changed
+628 -15

No files matched your search

+36
View File
@@ -101,6 +101,42 @@ on:
- 'tools/aws/fetch_sqs_redrive_permissions.py'
- 'tools/aws/sources/sqs-redrive-permissions.json'
- 'tools/aws/test_fetch_sqs_redrive_permissions.py'
- 'tools/aws/sources/apigateway-arn-formats.json'
- 'tools/aws/fetch_apigateway_arn_formats.py'
- 'tools/aws/test_fetch_apigateway_arn_formats.py'
- 'tools/aws/sources/apigateway-tag-inheritance.json'
- 'tools/aws/fetch_apigateway_tag_inheritance.py'
- 'tools/aws/test_fetch_apigateway_tag_inheritance.py'
- 'tools/aws/sources/athena-glue-ddl-permissions.json'
- 'tools/aws/fetch_athena_glue_ddl_permissions.py'
- 'tools/aws/test_fetch_athena_glue_ddl_permissions.py'
- 'tools/aws/sources/backup-arn-formats.json'
- 'tools/aws/fetch_backup_arn_formats.py'
- 'tools/aws/test_fetch_backup_arn_formats.py'
- 'tools/aws/sources/codeartifact-permissions.json'
- 'tools/aws/fetch_codeartifact_permissions.py'
- 'tools/aws/test_fetch_codeartifact_permissions.py'
- 'tools/aws/sources/dms-arn-formats.json'
- 'tools/aws/fetch_dms_arn_formats.py'
- 'tools/aws/test_fetch_dms_arn_formats.py'
- 'tools/aws/sources/dms-tag-keys.json'
- 'tools/aws/fetch_dms_tag_keys.py'
- 'tools/aws/test_fetch_dms_tag_keys.py'
- 'tools/aws/sources/dynamodb-permissions.json'
- 'tools/aws/fetch_dynamodb_permissions.py'
- 'tools/aws/test_fetch_dynamodb_permissions.py'
- 'tools/aws/sources/iam-identifiers.json'
- 'tools/aws/fetch_iam_identifiers.py'
- 'tools/aws/test_fetch_iam_identifiers.py'
- 'tools/aws/sources/kms-api-permissions.json'
- 'tools/aws/fetch_kms_api_permissions.py'
- 'tools/aws/test_fetch_kms_api_permissions.py'
- 'tools/aws/sources/required-resource-types.json'
- 'tools/aws/fetch_required_resource_types.py'
- 'tools/aws/test_fetch_required_resource_types.py'
- 'tools/aws/sources/s3-tag-inheritance.json'
- 'tools/aws/fetch_s3_tag_inheritance.py'
- 'tools/aws/test_fetch_s3_tag_inheritance.py'
- 'src/main/resources/aws/dynamodb-condition-keys.json'
- 'tools/aws/regen_dynamodb_condition_keys.py'
- 'tools/aws/test_regen_dynamodb_condition_keys.py'