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:
- Access
Key stringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- Account
Id string Your AWS Account ID without dashes.
- Account
Specific Dictionary<string, object>Namespace Rules 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 stringCollection Enabled 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 List<string> An array of AWS regions to exclude from metrics collection.
- 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
.- List<string>
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- Metrics
Collection stringEnabled Whether Datadog collects metrics for this AWS account.
- Resource
Collection stringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- Role
Name string Your Datadog role delegation name.
- Secret
Access stringKey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- Access
Key stringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- Account
Id string Your AWS Account ID without dashes.
- Account
Specific map[string]interface{}Namespace Rules 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 stringCollection Enabled 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 []string An array of AWS regions to exclude from metrics collection.
- []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
.- []string
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- Metrics
Collection stringEnabled Whether Datadog collects metrics for this AWS account.
- Resource
Collection stringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- Role
Name string Your Datadog role delegation name.
- Secret
Access stringKey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- access
Key StringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- account
Id String Your AWS Account ID without dashes.
- account
Specific Map<String,Object>Namespace Rules 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 StringCollection Enabled 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 List<String> An array of AWS regions to exclude from metrics collection.
- 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
.- List<String>
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- metrics
Collection StringEnabled Whether Datadog collects metrics for this AWS account.
- resource
Collection StringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- role
Name String Your Datadog role delegation name.
- secret
Access StringKey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- access
Key stringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- account
Id string Your AWS Account ID without dashes.
- account
Specific {[key: string]: any}Namespace Rules 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 stringCollection Enabled 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 string[] An array of AWS regions to exclude from metrics collection.
- 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
.- string[]
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- metrics
Collection stringEnabled Whether Datadog collects metrics for this AWS account.
- resource
Collection stringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- role
Name string Your Datadog role delegation name.
- secret
Access stringKey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- access_
key_ strid 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_ Mapping[str, Any]namespace_ rules 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_ strcollection_ enabled 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.
- 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
.- Sequence[str]
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- metrics_
collection_ strenabled Whether Datadog collects metrics for this AWS account.
- resource_
collection_ strenabled Whether Datadog collects a standard set of resources from your AWS account.
- role_
name str Your Datadog role delegation name.
- secret_
access_ strkey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- access
Key StringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- account
Id String Your AWS Account ID without dashes.
- account
Specific Map<Any>Namespace Rules 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 StringCollection Enabled 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 List<String> An array of AWS regions to exclude from metrics collection.
- 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
.- List<String>
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- metrics
Collection StringEnabled Whether Datadog collects metrics for this AWS account.
- resource
Collection StringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- role
Name String Your Datadog role delegation name.
- secret
Access StringKey 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:
- External
Id 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 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 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 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.
- external
Id 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.
- Access
Key stringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- Account
Id string Your AWS Account ID without dashes.
- Account
Specific Dictionary<string, object>Namespace Rules 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 stringCollection Enabled 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 List<string> An array of AWS regions to exclude from metrics collection.
- External
Id string AWS External ID. NOTE This provider will not be able to detect changes made to the
external_id
field from outside Terraform.- 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
.- List<string>
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- Metrics
Collection stringEnabled Whether Datadog collects metrics for this AWS account.
- Resource
Collection stringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- Role
Name string Your Datadog role delegation name.
- Secret
Access stringKey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- Access
Key stringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- Account
Id string Your AWS Account ID without dashes.
- Account
Specific map[string]interface{}Namespace Rules 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 stringCollection Enabled 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 []string An array of AWS regions to exclude from metrics collection.
- External
Id string AWS External ID. NOTE This provider will not be able to detect changes made to the
external_id
field from outside Terraform.- []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
.- []string
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- Metrics
Collection stringEnabled Whether Datadog collects metrics for this AWS account.
- Resource
Collection stringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- Role
Name string Your Datadog role delegation name.
- Secret
Access stringKey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- access
Key StringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- account
Id String Your AWS Account ID without dashes.
- account
Specific Map<String,Object>Namespace Rules 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 StringCollection Enabled 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 List<String> An array of AWS regions to exclude from metrics collection.
- external
Id String AWS External ID. NOTE This provider will not be able to detect changes made to the
external_id
field from outside Terraform.- 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
.- List<String>
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- metrics
Collection StringEnabled Whether Datadog collects metrics for this AWS account.
- resource
Collection StringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- role
Name String Your Datadog role delegation name.
- secret
Access StringKey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- access
Key stringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- account
Id string Your AWS Account ID without dashes.
- account
Specific {[key: string]: any}Namespace Rules 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 stringCollection Enabled 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 string[] An array of AWS regions to exclude from metrics collection.
- external
Id string AWS External ID. NOTE This provider will not be able to detect changes made to the
external_id
field from outside Terraform.- 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
.- string[]
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- metrics
Collection stringEnabled Whether Datadog collects metrics for this AWS account.
- resource
Collection stringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- role
Name string Your Datadog role delegation name.
- secret
Access stringKey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- access_
key_ strid 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_ Mapping[str, Any]namespace_ rules 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_ strcollection_ enabled 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.- 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
.- Sequence[str]
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- metrics_
collection_ strenabled Whether Datadog collects metrics for this AWS account.
- resource_
collection_ strenabled Whether Datadog collects a standard set of resources from your AWS account.
- role_
name str Your Datadog role delegation name.
- secret_
access_ strkey Your AWS secret access key. Only required if your AWS account is a GovCloud or China account.
- access
Key StringId Your AWS access key ID. Only required if your AWS account is a GovCloud or China account.
- account
Id String Your AWS Account ID without dashes.
- account
Specific Map<Any>Namespace Rules 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 StringCollection Enabled 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 List<String> An array of AWS regions to exclude from metrics collection.
- external
Id String AWS External ID. NOTE This provider will not be able to detect changes made to the
external_id
field from outside Terraform.- 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
.- List<String>
Array of tags (in the form
key:value
) to add to all hosts and metrics reporting through this integration.- metrics
Collection StringEnabled Whether Datadog collects metrics for this AWS account.
- resource
Collection StringEnabled Whether Datadog collects a standard set of resources from your AWS account.
- role
Name String Your Datadog role delegation name.
- secret
Access StringKey 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.