published on Wednesday, Nov 11, 2026 by Pulumi
Datadog Provider
published on Wednesday, Nov 11, 2026 by Pulumi
Installation
The Datadog provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/datadog - Python:
pulumi-datadog - Go:
github.com/pulumi/pulumi-datadog/sdk/v5/go/datadog - .NET:
Pulumi.Datadog - Java:
com.pulumi/datadog
Overview
The Datadog provider is used to interact with the resources supported by Datadog. The provider needs to be configured with the proper credentials before it can be used.
Use the navigation to the left to read about the available resources.
AWS Workload Identity Federation
Organizations configured for AWS Workload Identity Federation can authenticate without Datadog API or application keys and without passing AWS credentials to Pulumi:
The provider uses the AWS SDK default credential chain. This includes standard
sources such as environment credentials, shared configuration and credential
files, IAM Identity Center (SSO), web identity, ECS task roles, EC2 instance
roles, and assume-role profiles. For example, after logging in locally with
aws sso login --profile sandbox, run Pulumi with AWS_PROFILE=sandbox.
Explicit awsAccessKeyId, awsSecretAccessKey, and awsSessionToken
values remain supported but are not required. Workload Identity Federation must
be enabled for the Datadog organization, and its identity or intake mapping must
match the AWS identity resolved by the credential chain.
Pulumi Dynamic Provider Credentials
For HCP Pulumi, the provider discovers Pulumi-issued workload identity tokens and exchanges them through Datadog Workload Identity Federation when authentication is not explicitly configured in the provider configuration. Use workloadIdentityTokenTag to select a distinct token for each provider configuration. Configure the WIF persona mapping and workspace audience as described in the Dynamic Provider Credentials guide.
Configuration Reference
apiKey(String, Sensitive) Datadog API key. Required whenvalidateis true unless authentication uses AWS WIF, a bearer token, or Pulumi Dynamic Provider Credentials. This can also be set via theDD_API_KEYenvironment variable.apiUrl(String) The API URL. This can also be set via the DD_HOST environment variable, and defaults tohttps://api.datadoghq.com. Note that this URL must not end with the/api/path. For example,https://api.datadoghq.com/is a correct value, whilehttps://api.datadoghq.com/api/is not. And if you’re working with “EU” version of Datadog, usehttps://api.datadoghq.eu/. Other Datadog region examples:https://api.us5.datadoghq.com/,https://api.us3.datadoghq.com/andhttps://api.ddog-gov.com/. See https://docs.datadoghq.com/getting_started/site/ for all available regions.appKey(String, Sensitive) Datadog application key. Required whenvalidateis true unless authentication uses AWS WIF, a bearer token, or Pulumi Dynamic Provider Credentials. This can also be set via theDD_APP_KEYenvironment variable.awsAccessKeyId(String, Sensitive) An optional explicit AWS access key ID used for cloud-provider-based authentication. This can also be set using theAWS_ACCESS_KEY_IDenvironment variable. When explicit credentials are omitted, the AWS SDK default credential chain is used.awsSecretAccessKey(String, Sensitive) An optional explicit AWS secret access key used for cloud-provider-based authentication. This can also be set using theAWS_SECRET_ACCESS_KEYenvironment variable. It must be provided together withawsAccessKeyId. Omit both fields to use the AWS SDK default credential chain.awsSessionToken(String, Sensitive) An optional AWS session token used with explicit temporary credentials for cloud-provider-based authentication. This can also be set using theAWS_SESSION_TOKENenvironment variable.bearerToken(String, Sensitive) Datadog credential sent in theAuthorization: Bearer <token>header. Accepts personal access tokens (ddpat_*) and service-account access tokens (ddsat_*). When set, the provider authenticates withAuthorization: Bearer <token>instead of theDD-API-KEY/DD-APPLICATION-KEYheaders. This can also be set via theDD_BEARER_TOKENorDATADOG_BEARER_TOKENenvironment variable.cloudProviderRegion(String) The cloud provider region specifier; used for cloud-provider-based authentication. For example,us-east-1for AWS. When omitted for AWS, the region is loaded from the AWS SDK default configuration chain.cloudProviderType(String) Specifies the cloud provider used for cloud-provider-based authentication, enabling keyless access without API or app keys. Only [aws] is supported. This can also be set using theDD_CLOUD_PROVIDER_TYPEenvironment variable. This feature is in Preview. If you’d like to enable it for your organization, contact support.defaultTags(Block List, Max: 1) [Experimental - Action Connections, Logs Indexes, Logs Pipelines, Monitors, Security Monitoring Rules, and Service Level Objectives only] Configuration block containing settings to apply default resource tags across all resources. (see below for nested schema)httpClientRetryBackoffBase(Number) The HTTP request retry back off base. Defaults to 2.httpClientRetryBackoffMultiplier(Number) The HTTP request retry back off multiplier. Defaults to 2.httpClientRetryEnabled(String) Enables request retries on HTTP status codes 429 and 5xx. Valid values are [true,false]. Defaults totrue.httpClientRetryJitter(Number) The maximum random delay added to each HTTP request retry. Defaults to 0 seconds.httpClientRetryMaxRetries(Number) The HTTP request maximum retry number. Defaults to 3.httpClientRetryTimeout(Number) The HTTP request retry timeout period. Defaults to 60 seconds.ignoreTagKeys(Set of String) [Experimental - Monitors and Service Level Objectives only] Tag keys whose drift Pulumi should ignore across all resources that supportignoreTagKeys. A resource’s ownignoreTagKeysis merged with this list for that resource. Any:valuesuffix is ignored.orgUuid(String) The organization UUID; required for AWS WIF. Optional for Pulumi Dynamic Provider Credentials, but when configured it must match the organization UUID in the token audience. This can also be set using theDD_ORG_UUIDenvironment variable. See the Datadog API documentation for more information.validate(String) Enables credential validation during provider initialization. Valid values are [true,false]. Default is true. When false, initial credential validation is skipped.workloadIdentityTokenTag(String) Selects the HCP Pulumi workload identity token tag for this provider configuration, for example DATADOG_ORG_A selects TFC_WORKLOAD_IDENTITY_TOKEN_DATADOG_ORG_A. When set, that token must be present and have a valid Datadog audience; no other token or environment authentication is used as fallback. Explicit API/application keys, bearer_token, or cloudProviderType take precedence. When unset or empty, automatically tries the DATADOG tag and then the untagged token. Tags may contain only letters, numbers, and underscores; TYPE is reserved.
Nested Schema for defaultTags
Optional:
tags(Map of String) [Experimental - Action Connections, Logs Indexes, Logs Pipelines, Monitors, Security Monitoring Rules, and Service Level Objectives only] Resource tags to be applied by default across all resources.
published on Wednesday, Nov 11, 2026 by Pulumi