mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
tagResource, untagResource, and listTagsForResource detected the resource
type with resourceArn.contains("event-bus/"). A rule ARN on a custom bus —
rule/my-event-bus/test-rule — also contains "event-bus/", so it matched the
bus branch instead of the rule branch and failed with ResourceNotFoundException.
Parse the ARN with AwsArnUtils.parse(arn).resource() and dispatch on
resource.startsWith(...) against the resource segment only, so a bus name
substring can no longer trigger a false branch match. The duplicated
rule-name/bus-name split logic is extracted into a parseRuleResource helper
returning a RuleRef record.
Closes #963