Datadog Forwarders
Terraform module to create resources on AWS to forward logs/metrics to Datadog
Inputs
40 / 146
kms_aliasrequiredstringAlias of KMS key used to encrypt the Datadog API keys - must start with `alias/`
agent_vpce_policyoptionalanyPolicy to attach to the agent endpoint that controls access to the service. Defaults to full access
nullagent_vpce_security_group_idsoptionallist(string)IDs of security groups to attach to agent endpoint
[]agent_vpce_subnet_idsoptionallist(string)IDs of subnets to associate with agent endpoint
[]agent_vpce_tagsoptionalmap(string)A map of tags to apply to the Datadog agent endpoint
{}api_vpce_policyoptionalanyPolicy to attach to the API endpoint that controls access to the service. Defaults to full access
nullapi_vpce_security_group_idsoptionallist(string)IDs of security groups to attach to API endpoint
[]api_vpce_subnet_idsoptionallist(string)IDs of subnets to associate with API endpoint
[]api_vpce_tagsoptionalmap(string)A map of tags to apply to the API endpoint
{}bucket_attach_deny_insecure_transport_policyoptionalboolControls if S3 bucket should have deny non-SSL transport policy attacheds
truebucket_blocked_encryption_typesoptionallist(string)List of encryption types to block on the bucket (e.g. `["SSE-C"]`). Set to `[]` to block none. Defaults to blocking SSE-C, matching AWS's own default enforcement direction for new buckets, so the attribute doesn't drift against the provider's returned state on every plan
[…]bucket_encryption_settingsoptionalmap(string)S3 bucket server side encryption settings
{…}bucket_nameoptionalstringLambda artifact S3 bucket name
""create_agent_vpceoptionalboolControls whether an agent endpoint should be created
falsecreate_api_vpceoptionalboolControls whether a API endpoint should be created
falsecreate_bucketoptionalboolControls whether an S3 artifact bucket should be created. this is used for the zip archive as well as caching tags
truecreate_log_forwarderoptionalboolControls whether log forwarder resources should be created
truecreate_log_forwarder_roleoptionalboolControls whether an IAM role is created for the log forwarder
truecreate_log_forwarder_role_policyoptionalboolControls whether an IAM role policy is created for the log forwarder
truecreate_log_forwarder_vpceoptionalboolControls whether a log forwarder endpoint should be created
falsecreate_metrics_vpceoptionalboolControls whether a metrics VPC endpoint should be created
falsecreate_processes_vpceoptionalboolControls whether a processes endpoint should be created
falsecreate_rds_em_forwarderoptionalboolControls whether RDS enhanced monitoring forwarder resources should be created
truecreate_rds_em_forwarder_roleoptionalboolControls whether an IAM role is created for the RDS enhanced monitoring forwarder
truecreate_rds_em_forwarder_role_policyoptionalboolControls whether an IAM role policy is created for the RDS enhanced monitoring forwarder
truecreate_traces_vpceoptionalboolControls whether a traces endpoint should be created
falsecreate_vpc_fl_forwarderoptionalboolControls whether VPC flow log forwarder resources should be created
truecreate_vpc_fl_forwarder_roleoptionalboolControls whether an IAM role is created for the VPC flow log forwarder
truecreate_vpc_fl_forwarder_role_policyoptionalboolControls whether an IAM role policy is created for the VPC flow log forwarder
truedd_api_keyoptionalstringThe Datadog API key, which can be found from the APIs page (/account/settings#api). It will be stored in AWS Secrets Manager securely. If DdApiKeySecretArn is also set, this value will not be used. This value must still be set, however
""dd_api_key_secret_arnoptionalstringThe ARN of the Secrets Manager secret storing the Datadog API key, if you already have it stored in Secrets Manager. You still need to set a dummy value for `dd_api_key` to satisfy the requirement, though that value won't be used
""dd_app_keyoptionalstringThe Datadog application key associated with the user account that created it, which can be found from the APIs page
""dd_siteoptionalstringDefine your Datadog Site to send data to. For the Datadog EU site, set to datadoghq.eu
datadoghq.comlog_forwarder_architecturesoptionallist(string)Instruction set architecture for your Lambda function. Valid values are `["x86_64"]` and `["arm64"]`. Default is `["arm64"]`
[…]log_forwarder_bucket_prefixoptionalstringS3 object key prefix to prepend to zip archive name
""log_forwarder_bucket_tagsoptionalmap(any)A map of tags to apply to the log forwarder bucket
{}log_forwarder_environment_variablesoptionalmap(string)A map of environment variables for the log forwarder lambda function
{}log_forwarder_kms_key_arnoptionalstringKMS key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key
nulllog_forwarder_lambda_tagsoptionalmap(string)A map of tags to apply to the log forwarder lambda function
{}log_forwarder_layersoptionallist(string)List of Lambda Layer Version ARNs (maximum of 5) to attach to the log forwarder lambda
[]1 of 146 must be supplied; the rest have defaults. Showing 40, so the site stays a static download — the remaining 106 are in the source.
Outputs
40 / 82
agent_endpoint_arnARN of the agent VPC endpoint
agent_endpoint_dns_entryDNS entries of the agent VPC endpoint
agent_endpoint_idID of the agent VPC endpoint
agent_endpoint_network_interface_idsOne or more network interfaces for the agent VPC endpoint
agent_endpoint_owner_idThe ID of the AWS account that owns the agent VPC endpoint
agent_endpoint_stateThe state of the agent VPC endpoint
api_endpoint_arnARN of the API VPC endpoint
api_endpoint_dns_entryDNS entries of the API VPC endpoint
api_endpoint_idID of the API VPC endpoint
api_endpoint_network_interface_idsOne or more network interfaces for API api VPC endpoint
api_endpoint_owner_idThe ID of the AWS account that owns the API VPC endpoint
api_endpoint_stateThe state of the API VPC endpoint
log_forwarder_cloudwatch_log_group_arnThe ARN of the log forwarder lambda function CloudWatch log group
log_forwarder_endpoint_arnARN of the log forwarder VPC endpoint
log_forwarder_endpoint_dns_entryDNS entries of the log forwarder VPC endpoint
log_forwarder_endpoint_idID of the log forwarder VPC endpoint
log_forwarder_endpoint_network_interface_idsOne or more network interfaces for the log forwarder VPC endpoint
log_forwarder_endpoint_owner_idThe ID of the AWS account that owns the log forwarder VPC endpoint
log_forwarder_endpoint_stateThe state of the log forwarder VPC endpoint
log_forwarder_lambda_arnThe ARN of the log forwarder lambda function
log_forwarder_lambda_kms_key_arn(Optional) The ARN for the KMS encryption key for the log forwarder lambda function
log_forwarder_lambda_qualified_arnThe ARN of the log forwarder lambda function (if versioning is enabled via publish = true)
log_forwarder_lambda_source_code_hashBase64-encoded representation of raw SHA-256 sum of the log forwarder zip file, provided either via filename or s3_* parameters
log_forwarder_lambda_versionLatest published version of the log forwarder lambda function
log_forwarder_role_arnThe log forwarder lambda role arn
log_forwarder_role_idThe log forwarder lambda role id
log_forwarder_role_nameThe log forwarder lambda role name
log_forwarder_role_policy_arnThe ARN of the log forwarder lambda role policy
log_forwarder_role_policy_idThe ID of the log forwarder lambda role policy
log_forwarder_role_policy_nameThe name of the log forwarder lambda role policy
log_forwarder_role_unique_idThe stable and unique string identifying the log forwarder lambda role
log_forwarder_s3_bucket_arnThe ARN of the log forwarder bucket. Will be of format arn:aws:s3:::bucketname
log_forwarder_s3_bucket_domain_nameThe log forwarder bucket domain name. Will be of format bucketname.s3.amazonaws.com
log_forwarder_s3_bucket_idThe name of the log forwarder bucket
log_forwarder_s3_bucket_regional_domain_nameThe log forwarder bucket region-specific domain name. The bucket domain name including the region name
log_forwarder_s3_object_etagThe ETag generated for the log forwarder lambda zip object (an MD5 sum of the object content)
log_forwarder_s3_object_idThe `key` of the log forwarder lambda zip archive
log_forwarder_s3_object_versionA unique version ID value for the log forwarder lambda zip object, if bucket versioning is enabled
metrics_endpoint_arnARN of the metrics VPC endpoint
metrics_endpoint_dns_entryDNS entries of the metrics VPC endpoint
What the agent wires into the next module. An edge on the architecture diagram is one of these consumed by something else. Showing 40 of 82 — the rest are in the source.