Comments (4)
@nyanshak i updated the docs https://github.com/terraform-providers/terraform-provider-datadog/pull/24 😄
from terraform-provider-datadog.
The plugin already supports it (I was testing this recently as well):
resource "datadog_monitor" "monitor1" {
... cut (any valid monitor definition) ...
}
resource "datadog_monitor" "monitor2" {
... cut (any valid monitor definition) ...
}
resource "datadog_monitor" "test_composite" {
name = "test_composite"
type = "composite"
message = "test composite"
query = "${datadog_monitor.monitor1.id} || ${datadog_monitor.monitor2.id}"
}
Is that what you mean?
from terraform-provider-datadog.
Yes, thank you.
Maybe we should update the docs
from terraform-provider-datadog.
How can one reach the id in case the monitor has been defined in a module?
module "monitor_simple_sample" {
source = "./monitor"
...
}
module "monitor_complex_sample" {
source = "./monitor"
...
}
module "monitor_composite_sample" {
source = "./monitor"
type = "composite"
query = "${module.monitor_simple_sample.id} && ${module.monitor_complex_sample.id}"
}
In case of something like this I will get a:
Error: Reference to undeclared output value
on ../datadog/main.tf line 35, in module "monitor_composite_sample":
35: query = "${module.monitor_simple_sample.id} && ${module.monitor_complex_sample.id}"
An output value with the name "id" has not been declared in
module.datadog.module.monitor_complex_sample.
from terraform-provider-datadog.
Related Issues (20)
- resource_datadog_monitor - Null attributes not being skiped even when no needed - variables.0.event_query.0.search.0.query" is required, but no │ definition was found. HOT 4
- Synthetic test fails with INVALID_CHAR_IN_HEADER if entry in request_headers comes from data.local_file HOT 2
- support for datadog_integration_confluent_account data resource
- Synthetics Test Multi-steps client certificate config broken when applied second time
- datadog_logs_index - allow changing Flex log settings
- Support querying incident analytics for dashboard widget overlays
- Add datadog_integration_snowflake resource
- Synthetic Test In-Place Update Removes config_variable valuable even when `example` value set
- Automatically handle built-in pipelines in datadog_logs_pipeline_order
- Error creating `datadog_integration_aws_log_collection` fixed on rerun HOT 2
- Add new downtime resource HOT 2
- Document `assert_page_lacks` API
- heredocs don't work in datadog_monitor querries
- No argument named "value" is in datadog_synthetics_test -> api_step, should be there according to doc
- `delegate_account_email` does not get set on `datadog_integration_gcp_sts` during import
- Submit signing key to OpenTofu registry
- Dashboard: add `slo_summary` widget type support
- Erroneous update-in-place on datadog_monitor_json with restriction policy
- "object contains unparsed element" Error when using datadog_security_monitoring_default_rule HOT 1
- Support for monitors in resource datadog_restriction_policy
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-provider-datadog.