Skip to content

mateo-villa/datadog-terraform-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Scripts for Datadog Synthetic Tests

Setup

Rename the ./scripts/setup_env_vars.sh.example file to ./scripts/setup_env_vars.sh. In this file, input your Datadog API and Application keys:

export TF_VAR_datadog_api_key="<Your-API-Key>"
export TF_VAR_datadog_app_key="<Your-App-Key>"

If your org is in US1, you can delete the rest of the file. Otherwise, make sure your site is set to the correct region (e.g. US5):

export TF_VAR_datadog_site="us5.datadoghq.com"
export TF_VAR_datadog_api_url="https://api.us5.datadoghq.com"

Run the following command to export your Terraform environment variables:

source ./scripts/setup_env_vars.sh

Apply your Synthetic Test configuration

Run the following commands to initialize Terraform:

terraform init

Run the following commands to apply your configuration:

terraform apply

You should now see your tests show up in the Datadog UI!

Troubleshooting

Permission denied when running setup_env_vars.sh:

Run the following command to make this script executable:

chmod +x ./scripts/setup_env_vars.sh

References

Terraform resources

About

Terraform Scripts for Datadog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages