Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add arn_suffix output value for aws_alb_target_group #9773

Closed
Tomino2112 opened this issue Nov 1, 2016 · 4 comments
Closed

Add arn_suffix output value for aws_alb_target_group #9773

Tomino2112 opened this issue Nov 1, 2016 · 4 comments

Comments

@Tomino2112
Copy link

At the moment, only output values for aws_alb_target_group are id and arn

When setting cloudwatch alarms, dimensions should be referenced by the arn suffixes, as is correctly exported by aws_alb

@kwilczynski
Copy link
Contributor

@Tomino2112 hi there!

I am happy to report that this was recently done via #9734, therefore it is going to be included in an upcoming release (0.7.8).

@Tomino2112
Copy link
Author

@kwilczynski Awesome ! In the meantime though, is there something I can do? I am trying to use split fn but cannot really get my head around how to reference the last part?

I am trying:

split(":", aws_alb_target_group.api_rest.arn).last -> error
element(split(":", aws_alb_target_group.api_rest.arn), how_to_get_length_of_list)

@Tomino2112
Copy link
Author

Never mind, I have just done this:

${element(split(":", aws_alb_target_group.api_rest.arn), 5)}

5 is hardcoded, but will do until the new version is out

@ghost
Copy link

ghost commented Apr 20, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants