Example:
./terraformer import datadog --resources=monitor --api-key=YOUR_DATADOG_API_KEY // or DATADOG_API_KEY in env --app-key=YOUR_DATADOG_APP_KEY // or DATADOG_APP_KEY in env --api-url=DATADOG_API_URL // or DATADOG_HOST in env --validate=VALIDATE_BOOL // or DATADOG_VALIDATE in env
./terraformer import datadog --resources=monitor --filter=monitor=id1:id2:id4 --api-key=YOUR_DATADOG_API_KEY // or DATADOG_API_KEY in env --app-key=YOUR_DATADOG_APP_KEY // or DATADOG_APP_KEY in env --validate=VALIDATE_BOOL // or DATADOG_VALIDATE in env
List of supported Datadog services:
dashboarddatadog_dashboard
dashboard_jsondatadog_dashboard_json
dashboard_listdatadog_dashboard_list
downtimedatadog_downtime
logs_archivedatadog_logs_archive
logs_archive_orderdatadog_logs_archive_order
logs_custom_pipelinedatadog_logs_custom_pipeline
logs_integration_pipelinedatadog_logs_integration_pipeline
logs_pipeline_orderdatadog_logs_pipeline_order
logs_indexdatadog_logs_index
logs_index_orderdatadog_logs_index_order
integration_awsdatadog_integration_aws
integration_aws_lambda_arndatadog_integration_aws_lambda_arn
integration_aws_log_collectiondatadog_integration_aws_log_collection
integration_azuredatadog_integration_azure- NOTE: Sensitive field
client_secretis not generated and needs to be manually set
- NOTE: Sensitive field
integration_gcpdatadog_integration_gcp- NOTE: Sensitive fields
private_key, private_key_id, client_idis not generated and needs to be manually set
- NOTE: Sensitive fields
integration_pagerdutydatadog_integration_pagerduty
integration_pagerduty_service_objectdatadog_integration_pagerduty_service_object
integration_slack_channeldatadog_integration_slack_channel- NOTE: Importing resource requires resource ID or
account_nameto be passed via Filter option
- NOTE: Importing resource requires resource ID or
metric_metadatadatadog_metric_metadata- NOTE: Importing resource requires resource ID's to be passed via Filter option
monitordatadog_monitor
roledatadog_role
security_monitoring_default_ruledatadog_security_monitoring_default_rule
security_monitoring_ruledatadog_security_monitoring_rule
service_level_objectivedatadog_service_level_objective
synthetics_testdatadog_synthetics_test
synthetics_global_variabledatadog_synthetics_global_variable- NOTE: Importing resource requires resource ID's to be passed via Filter option
synthetics_private_locationdatadog_synthetics_private_location
userdatadog_user