mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 23:59:27 -05:00
Move `memorydb` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so MemoryDB requests are checked on the
resources they name instead of `*`: a cluster, an ACL or a user by its name,
as <type>/<name>, the ARN MemoryDB mints, and a tag call on its ResourceArn.
A cluster and a multi-Region cluster both call their format's variable
${ClusterName}, so the generator could not tell DeleteCluster's ClusterName
from its MultiRegionClusterName and read no cluster, and filled
CreateCluster's multi-Region cluster from the new cluster's ClusterName. One
generic reading fixes both: a type of one variable is read from the one
top-level member named after the type and ending in the variable's name,
where nothing reads it yet or instead of a member named after something
else, and only when no other type the action acts on could take that member
alone. Over the whole table it changes these two MemoryDB operations and no
other.
CreateCluster marked the multi-Region cluster it may join as what it makes,
so its tags were checked on that, or on its ACL when it names none, not on
the new cluster. Where the namespace has a type named as a create is, that
type, and one whose format's leading word is that name, is what it makes; a
type whose name merely ends in the same word is not, and a related type the
request names by a member of its own is one it joins, so the cluster it
makes is recorded for its tags. Over the whole table this also stops
ElastiCache's CreateReplicationGroup from marking the global replication
group it may join as made, and marks the global replication group
CreateGlobalReplicationGroup makes.