datadog logo
Datadog v4.14.0, Jan 27 23

datadog.aws.Integration

Provides a Datadog - Amazon Web Services integration resource. This can be used to create and manage Datadog - Amazon Web Services integration.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Datadog = Pulumi.Datadog;

return await Deployment.RunAsync(() => 
{
    // Create a new Datadog - Amazon Web Services integration
    var sandbox = new Datadog.Aws.Integration("sandbox", new()
    {
        AccountId = "1234567890",
        AccountSpecificNamespaceRules = 
        {
            { "auto_scaling", false },
            { "opsworks", false },
        },
        ExcludedRegions = new[]
        {
            "us-east-1",
            "us-west-2",
        },
        FilterTags = new[]
        {
            "key:value",
        },
        HostTags = new[]
        {
            "key:value",
            "key2:value2",
        },
        RoleName = "DatadogAWSIntegrationRole",
    });

});
package main

import (
	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog/aws"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aws.NewIntegration(ctx, "sandbox", &aws.IntegrationArgs{
			AccountId: pulumi.String("1234567890"),
			AccountSpecificNamespaceRules: pulumi.AnyMap{
				"auto_scaling": pulumi.Any(false),
				"opsworks":     pulumi.Any(false),
			},
			ExcludedRegions: pulumi.StringArray{
				pulumi.String("us-east-1"),
				pulumi.String("us-west-2"),
			},
			FilterTags: pulumi.StringArray{
				pulumi.String("key:value"),
			},
			HostTags: pulumi.StringArray{
				pulumi.String("key:value"),
				pulumi.String("key2:value2"),
			},
			RoleName: pulumi.String("DatadogAWSIntegrationRole"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.aws.Integration;
import com.pulumi.datadog.aws.IntegrationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var sandbox = new Integration("sandbox", IntegrationArgs.builder()        
            .accountId("1234567890")
            .accountSpecificNamespaceRules(Map.ofEntries(
                Map.entry("auto_scaling", false),
                Map.entry("opsworks", false)
            ))
            .excludedRegions(            
                "us-east-1",
                "us-west-2")
            .filterTags("key:value")
            .hostTags(            
                "key:value",
                "key2:value2")
            .roleName("DatadogAWSIntegrationRole")
            .build());

    }
}
import pulumi
import pulumi_datadog as datadog

# Create a new Datadog - Amazon Web Services integration
sandbox = datadog.aws.Integration("sandbox",
    account_id="1234567890",
    account_specific_namespace_rules={
        "auto_scaling": False,
        "opsworks": False,
    },
    excluded_regions=[
        "us-east-1",
        "us-west-2",
    ],
    filter_tags=["key:value"],
    host_tags=[
        "key:value",
        "key2:value2",
    ],
    role_name="DatadogAWSIntegrationRole")
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

// Create a new Datadog - Amazon Web Services integration
const sandbox = new datadog.aws.Integration("sandbox", {
    accountId: "1234567890",
    accountSpecificNamespaceRules: {
        auto_scaling: false,
        opsworks: false,
    },
    excludedRegions: [
        "us-east-1",
        "us-west-2",
    ],
    filterTags: ["key:value"],
    hostTags: [
        "key:value",
        "key2:value2",
    ],
    roleName: "DatadogAWSIntegrationRole",
});
resources:
  # Create a new Datadog - Amazon Web Services integration
  sandbox:
    type: datadog:aws:Integration
    properties:
      accountId: '1234567890'
      accountSpecificNamespaceRules:
        auto_scaling: false
        opsworks: false
      excludedRegions:
        - us-east-1
        - us-west-2
      filterTags:
        - key:value
      hostTags:
        - key:value
        - key2:value2
      roleName: DatadogAWSIntegrationRole

Create Integration Resource

new Integration(name: string, args?: IntegrationArgs, opts?: CustomResourceOptions);
@overload
def Integration(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                access_key_id: Optional[str] = None,
                account_id: Optional[str] = None,
                account_specific_namespace_rules: Optional[Mapping[str, Any]] = None,
                cspm_resource_collection_enabled: Optional[str] = None,
                excluded_regions: Optional[Sequence[str]] = None,
                filter_tags: Optional[Sequence[str]] = None,
                host_tags: Optional[Sequence[str]] = None,
                metrics_collection_enabled: Optional[str] = None,
                resource_collection_enabled: Optional[str] = None,
                role_name: Optional[str] = None,
                secret_access_key: Optional[str] = None)
@overload
def Integration(resource_name: str,
                args: Optional[IntegrationArgs] = None,
                opts: Optional[ResourceOptions] = None)
func NewIntegration(ctx *Context, name string, args *IntegrationArgs, opts ...ResourceOption) (*Integration, error)
public Integration(string name, IntegrationArgs? args = null, CustomResourceOptions? opts = null)
public Integration(String name, IntegrationArgs args)
public Integration(String name, IntegrationArgs args, CustomResourceOptions options)
type: datadog:aws:Integration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args IntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args IntegrationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args IntegrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args IntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args IntegrationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Integration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Integration resource accepts the following input properties:

AccessKeyId string

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

AccountId string

Your AWS Account ID without dashes.

AccountSpecificNamespaceRules Dictionary<string, object>

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

CspmResourceCollectionEnabled string

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

ExcludedRegions List<string>

An array of AWS regions to exclude from metrics collection.

FilterTags List<string>

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

HostTags List<string>

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

MetricsCollectionEnabled string

Whether Datadog collects metrics for this AWS account.

ResourceCollectionEnabled string

Whether Datadog collects a standard set of resources from your AWS account.

RoleName string

Your Datadog role delegation name.

SecretAccessKey string

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

AccessKeyId string

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

AccountId string

Your AWS Account ID without dashes.

AccountSpecificNamespaceRules map[string]interface{}

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

CspmResourceCollectionEnabled string

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

ExcludedRegions []string

An array of AWS regions to exclude from metrics collection.

FilterTags []string

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

HostTags []string

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

MetricsCollectionEnabled string

Whether Datadog collects metrics for this AWS account.

ResourceCollectionEnabled string

Whether Datadog collects a standard set of resources from your AWS account.

RoleName string

Your Datadog role delegation name.

SecretAccessKey string

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

accessKeyId String

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

accountId String

Your AWS Account ID without dashes.

accountSpecificNamespaceRules Map<String,Object>

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

cspmResourceCollectionEnabled String

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

excludedRegions List<String>

An array of AWS regions to exclude from metrics collection.

filterTags List<String>

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

hostTags List<String>

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

metricsCollectionEnabled String

Whether Datadog collects metrics for this AWS account.

resourceCollectionEnabled String

Whether Datadog collects a standard set of resources from your AWS account.

roleName String

Your Datadog role delegation name.

secretAccessKey String

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

accessKeyId string

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

accountId string

Your AWS Account ID without dashes.

accountSpecificNamespaceRules {[key: string]: any}

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

cspmResourceCollectionEnabled string

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

excludedRegions string[]

An array of AWS regions to exclude from metrics collection.

filterTags string[]

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

hostTags string[]

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

metricsCollectionEnabled string

Whether Datadog collects metrics for this AWS account.

resourceCollectionEnabled string

Whether Datadog collects a standard set of resources from your AWS account.

roleName string

Your Datadog role delegation name.

secretAccessKey string

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

access_key_id str

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

account_id str

Your AWS Account ID without dashes.

account_specific_namespace_rules Mapping[str, Any]

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

cspm_resource_collection_enabled str

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

excluded_regions Sequence[str]

An array of AWS regions to exclude from metrics collection.

filter_tags Sequence[str]

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

host_tags Sequence[str]

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

metrics_collection_enabled str

Whether Datadog collects metrics for this AWS account.

resource_collection_enabled str

Whether Datadog collects a standard set of resources from your AWS account.

role_name str

Your Datadog role delegation name.

secret_access_key str

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

accessKeyId String

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

accountId String

Your AWS Account ID without dashes.

accountSpecificNamespaceRules Map<Any>

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

cspmResourceCollectionEnabled String

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

excludedRegions List<String>

An array of AWS regions to exclude from metrics collection.

filterTags List<String>

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

hostTags List<String>

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

metricsCollectionEnabled String

Whether Datadog collects metrics for this AWS account.

resourceCollectionEnabled String

Whether Datadog collects a standard set of resources from your AWS account.

roleName String

Your Datadog role delegation name.

secretAccessKey String

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

Outputs

All input properties are implicitly available as output properties. Additionally, the Integration resource produces the following output properties:

ExternalId string

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

Id string

The provider-assigned unique ID for this managed resource.

ExternalId string

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

Id string

The provider-assigned unique ID for this managed resource.

externalId String

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

id String

The provider-assigned unique ID for this managed resource.

externalId string

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

id string

The provider-assigned unique ID for this managed resource.

external_id str

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

id str

The provider-assigned unique ID for this managed resource.

externalId String

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing Integration Resource

Get an existing Integration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IntegrationState, opts?: CustomResourceOptions): Integration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_key_id: Optional[str] = None,
        account_id: Optional[str] = None,
        account_specific_namespace_rules: Optional[Mapping[str, Any]] = None,
        cspm_resource_collection_enabled: Optional[str] = None,
        excluded_regions: Optional[Sequence[str]] = None,
        external_id: Optional[str] = None,
        filter_tags: Optional[Sequence[str]] = None,
        host_tags: Optional[Sequence[str]] = None,
        metrics_collection_enabled: Optional[str] = None,
        resource_collection_enabled: Optional[str] = None,
        role_name: Optional[str] = None,
        secret_access_key: Optional[str] = None) -> Integration
func GetIntegration(ctx *Context, name string, id IDInput, state *IntegrationState, opts ...ResourceOption) (*Integration, error)
public static Integration Get(string name, Input<string> id, IntegrationState? state, CustomResourceOptions? opts = null)
public static Integration get(String name, Output<String> id, IntegrationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccessKeyId string

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

AccountId string

Your AWS Account ID without dashes.

AccountSpecificNamespaceRules Dictionary<string, object>

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

CspmResourceCollectionEnabled string

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

ExcludedRegions List<string>

An array of AWS regions to exclude from metrics collection.

ExternalId string

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

FilterTags List<string>

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

HostTags List<string>

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

MetricsCollectionEnabled string

Whether Datadog collects metrics for this AWS account.

ResourceCollectionEnabled string

Whether Datadog collects a standard set of resources from your AWS account.

RoleName string

Your Datadog role delegation name.

SecretAccessKey string

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

AccessKeyId string

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

AccountId string

Your AWS Account ID without dashes.

AccountSpecificNamespaceRules map[string]interface{}

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

CspmResourceCollectionEnabled string

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

ExcludedRegions []string

An array of AWS regions to exclude from metrics collection.

ExternalId string

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

FilterTags []string

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

HostTags []string

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

MetricsCollectionEnabled string

Whether Datadog collects metrics for this AWS account.

ResourceCollectionEnabled string

Whether Datadog collects a standard set of resources from your AWS account.

RoleName string

Your Datadog role delegation name.

SecretAccessKey string

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

accessKeyId String

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

accountId String

Your AWS Account ID without dashes.

accountSpecificNamespaceRules Map<String,Object>

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

cspmResourceCollectionEnabled String

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

excludedRegions List<String>

An array of AWS regions to exclude from metrics collection.

externalId String

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

filterTags List<String>

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

hostTags List<String>

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

metricsCollectionEnabled String

Whether Datadog collects metrics for this AWS account.

resourceCollectionEnabled String

Whether Datadog collects a standard set of resources from your AWS account.

roleName String

Your Datadog role delegation name.

secretAccessKey String

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

accessKeyId string

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

accountId string

Your AWS Account ID without dashes.

accountSpecificNamespaceRules {[key: string]: any}

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

cspmResourceCollectionEnabled string

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

excludedRegions string[]

An array of AWS regions to exclude from metrics collection.

externalId string

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

filterTags string[]

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

hostTags string[]

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

metricsCollectionEnabled string

Whether Datadog collects metrics for this AWS account.

resourceCollectionEnabled string

Whether Datadog collects a standard set of resources from your AWS account.

roleName string

Your Datadog role delegation name.

secretAccessKey string

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

access_key_id str

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

account_id str

Your AWS Account ID without dashes.

account_specific_namespace_rules Mapping[str, Any]

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

cspm_resource_collection_enabled str

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

excluded_regions Sequence[str]

An array of AWS regions to exclude from metrics collection.

external_id str

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

filter_tags Sequence[str]

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

host_tags Sequence[str]

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

metrics_collection_enabled str

Whether Datadog collects metrics for this AWS account.

resource_collection_enabled str

Whether Datadog collects a standard set of resources from your AWS account.

role_name str

Your Datadog role delegation name.

secret_access_key str

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

accessKeyId String

Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.

accountId String

Your AWS Account ID without dashes.

accountSpecificNamespaceRules Map<Any>

Enables or disables metric collection for specific AWS namespaces for this AWS account only. A list of namespaces can be found at the available namespace rules API endpoint.

cspmResourceCollectionEnabled String

Whether Datadog collects cloud security posture management resources from your AWS account. This includes additional resources not covered under the general resource_collection.

excludedRegions List<String>

An array of AWS regions to exclude from metrics collection.

externalId String

AWS External ID. NOTE This provider will not be able to detect changes made to the external_id field from outside Terraform.

filterTags List<String>

Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. The rest will be ignored. Host matching a given tag can also be excluded by adding ! before the tag. e.x. env:production,instance-type:c1.*,!region:us-east-1.

hostTags List<String>

Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration.

metricsCollectionEnabled String

Whether Datadog collects metrics for this AWS account.

resourceCollectionEnabled String

Whether Datadog collects a standard set of resources from your AWS account.

roleName String

Your Datadog role delegation name.

secretAccessKey String

Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.

Import

Amazon Web Services integrations can be imported using their account ID and role name separated with a colon (:), while the external_id should be passed by setting an environment variable called EXTERNAL_ID

 $ pulumi import datadog:aws/integration:Integration EXTERNAL_ID=${external_id} datadog_integration_aws.test ${account_id}:${role_name}

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes

This Pulumi package is based on the datadog Terraform Provider.