The aws_mwaa_environment resource has as one of its attributes a way to get the ARNs of the log groups it's outputting to. However, many other resources that work with CloudWatch (like aws_cloudwatch_log_subscription_filter) require that log group names be input to them. It's clunky and inelegant to have to make text manipulation functions like split just to "translate" ARNs to names to pass log groups from one resource to another.
It would be nice if aws_mwaa_environment resource had an extra parameter to output the log group names specifically, instead of the full ARN.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
The aws_mwaa_environment resource has as one of its attributes a way to get the ARNs of the log groups it's outputting to. However, many other resources that work with CloudWatch (like aws_cloudwatch_log_subscription_filter) require that log group names be input to them. It's clunky and inelegant to have to make text manipulation functions like split just to "translate" ARNs to names to pass log groups from one resource to another.
It would be nice if aws_mwaa_environment resource had an extra parameter to output the log group names specifically, instead of the full ARN.
Affected Resource(s) and/or Data Source(s)
aws_mwaa_environment
Potential Terraform Configuration
No response
References
No response
Would you like to implement a fix?
None