hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.83k stars 9.18k forks source link

[Enhancement]: have airflow_mwaa_environment output names of log groups instead of just arms #38619

Open OmpahDev opened 3 months ago

OmpahDev commented 3 months ago

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

github-actions[bot] commented 3 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

aristosvo commented 3 months ago

Hi @OmpahDev 👋!

I know it is not the direct solution, but have you tried arn_parse already? It might make this a bit easier and accessible.