Comments (2)
I have the same issue myself. I came here to suggest the same thing.
How I dealt with it was to use the aws_arn
data source
data "aws_arn" "alb_target_group" {
arn = module.alb.default_target_group_arn
}
module "alb_alarms" {
source = "cloudposse/alb-target-group-cloudwatch-sns-alarms/aws"
version = "0.15.0"
alb_arn_suffix = module.alb.alb_arn_suffix
target_group_arn_suffix = trimeprefix(data.aws_arn.alb_target_group.resource, "/targetgroup")
}
Regardless of the means, an output from the module would save us the need to have to use an extra data source when combining with alb-target-group-cloudwatch-sns-alarms
.
Part of the reason I love using the cloudposse
modules is the interoperability of their modules. Everything can be mixed-and-matched and will still work. I have wrapped multiple of cloudposse's modules to form modules myself bringing upto 3-4 levels of module nesting.
Let me see if I can put up a pull request for this soon.
from terraform-aws-alb.
@razorsedge @shinenelson thanks for the issue and apologies for the delay.
This has been added in the latest release.
Lines 36 to 39 in bce6ca2
from terraform-aws-alb.
Related Issues (20)
- Dependency Dashboard
- "Error: Invalid count argument" when enabled = false HOT 2
- Naming conflict when modifying target groups HOT 2
- "Error: Invalid count argument" when access_logs_s3_bucket_id is set HOT 1
- Tons of s3 "argument is deprecated" warnings HOT 1
- Tag listeners
- Add preserve_host_header argument to aws_lb HOT 1
- Error: Invalid count argument when using access_logs_s3_bucket_id = mybucket.id HOT 2
- A target group ARN must be specified when disabling the default target group HOT 2
- Feature Req: Support Redirect action HOT 1
- Feature Req - Stickness Enable/Disable Support HOT 1
- S3 log bucket lifecycle HOT 1
- WSS support HOT 1
- Please make is possible to not create this resource by setting a flag
- Dependabot can't parse your context.tf
- Use central logging bucket rather then create a new one.
- Limit hit when passing CloudFront CIDRs to ALB security group HOT 1
- Module can't be destroyed with enabled = false
- Orphaned Target Group "default" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-aws-alb.