Skip to content

feat(cloudwatch): accept log group ARN via logGroupIdentifier#1172

Open
guilhermejsonar wants to merge 1 commit into
floci-io:mainfrom
guilhermejsonar:feat/cloudwatch-logs-arn-support
Open

feat(cloudwatch): accept log group ARN via logGroupIdentifier#1172
guilhermejsonar wants to merge 1 commit into
floci-io:mainfrom
guilhermejsonar:feat/cloudwatch-logs-arn-support

Conversation

@guilhermejsonar
Copy link
Copy Markdown

@guilhermejsonar guilhermejsonar commented Jun 4, 2026

Summary

CloudWatch Logs APIs that take a log group reference now accept either
logGroupName or logGroupIdentifier. When an ARN is provided, the
log-group name is extracted from the :log-group: segment (trailing
:* tolerated). Log-stream identifiers passed as ARNs have their
:log-stream: prefix stripped, so SDK responses round-trip cleanly.

DescribeLogStreams responses now also include a per-stream arn field,
matching real CloudWatch.

Closes #1164

Affected actions: DescribeLogStreams, PutLogEvents, GetLogEvents, FilterLogEvents.

Type of change

  • New feature (feat:)

AWS Compatibility

Verified against AWS CLI aws-cli/2.34.58 Python/3.14.5 Darwin/24.6.0 source/arm64 reproducing the failure
described in #1164:

  • ❌ before: aws logs describe-log-streams --log-group-identifier "arn:aws:logs:us-east-1:000000000000:log-group:/aws/rds/instance/mypostgres-dsf/postgresql" returned ResourceNotFoundException
  • ✅ after: same command returns the expected log stream list

Checklist

  • ./mvnw test passes locally
  • New or updated integration test added (CloudWatchLogsHandlerTest, 11 tests covering ARN, ARN+wildcard, plain name, mixed identifier/name precedence, and per-stream ARN response field)
  • Commit messages follow Conventional Commits

DescribeLogStreams, PutLogEvents, GetLogEvents, and FilterLogEvents now
accept either logGroupName or logGroupIdentifier. When an ARN is provided,
the log-group name is extracted from the :log-group: segment (with
trailing :* tolerated). Log-stream identifiers are similarly stripped of
the :log-stream: prefix so SDK responses can round-trip cleanly.
DescribeLogStreams responses also include a per-stream arn field.

Closes floci-io#1164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Add support to ARN log-group query

1 participant