Skip to content

This will allow you to add, update, and remove Datadog users in a controlled way using Infrastructure as Code (IaC).

Notifications You must be signed in to change notification settings

NashTech-Labs/datadog_user_terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

GitLab + Datadog Users Hub

This template provisions and manages Datadog users using Terraform and a GitLab CI/CD pipeline.


πŸš€ Features

  • Add and manage Datadog users via Terraform
  • GitLab CI/CD pipeline with stages:
    • validate β†’ syntax and config checks
    • plan β†’ preview changes
    • apply β†’ manual approval for user changes
  • Role assignment support (ro, st, adm, etc.)
  • Outputs managed user emails

πŸ” Setup

  1. Generate Datadog API & Application keys:

    • Go to Integrations β†’ APIs in Datadog dashboard
    • Create an API key and an Application key
  2. Add them to GitLab CI/CD Variables:

    • TF_VAR_datadog_api_key β†’ API key
    • TF_VAR_datadog_app_key β†’ Application key

πŸ§ͺ Usage

Run pipeline

  • Push or merge β†’ GitLab CI/CD runs Terraform validation and plan
  • Manual apply stage β†’ applies user changes to Datadog

Run locally

cd terraform
terraform init
terraform plan
terraform apply

About

This will allow you to add, update, and remove Datadog users in a controlled way using Infrastructure as Code (IaC).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published