Skip to content

Commit 42eaa28

Browse files
committed
feat(aws)!: Remove deprecated PrivateLink env variable (#1002)
Signed-off-by: Vincent Boutour <[email protected]>
1 parent 339c73d commit 42eaa28

File tree

3 files changed

+12
-60
lines changed

3 files changed

+12
-60
lines changed

aws/logs_monitoring/README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -310,18 +310,6 @@ You can run the Forwarder in a VPC private subnet and send data to Datadog over
310310
2. Set `VPCSecurityGroupIds` and `VPCSubnetIds` based on your VPC settings.
311311
3. Set `DdFetchLambdaTags`, `DdFetchStepFunctionsTags` and `DdFetchS3Tags` to `false`, because AWS Resource Groups Tagging API doesn't support PrivateLink.
312312
313-
#### DdUsePrivateLink is deprecated
314-
315-
The `DdUsePrivateLink` option has been deprecated since [v3.41.0][16]. This option was previously used to instruct the Forwarder to use a special set of PrivateLink endpoints for data intake: `pvtlink.api.{{< region-param key="dd_site" code="true" >}}`, `api-pvtlink.logs.{{< region-param key="dd_site" code="true" >}}`, and `trace-pvtlink.agent.{{< region-param key="dd_site" code="true" >}}`. Since v3.41.0, the Forwarder can send data over PrivateLink to Datadog using the regular DNS names of intake endpoints: `api.{{< region-param key="dd_site" code="true" >}}`, `http-intake.logs.{{< region-param key="dd_site" code="true" >}}`, and `trace.agent.{{< region-param key="dd_site" code="true" >}}`. Therefore, the `DdUsePrivateLink` option is no longer needed.
316-
317-
If you have an older deployment of the Forwarder with `DdUsePrivateLink` set to `true`, then you may find mismatches between your configured PrivateLink endpoints and the [ones documented in Datadog][14], which is expected. Although the older PrivateLink endpoints were removed from that doc, they remain to function. When upgrading the Forwarder, there is no change required, that is, you can keep `DdUsePrivateLink` enabled and continue to use the older endpoints.
318-
319-
However, if you are interested in switching to the new endpoints, you need to follow the updated instructions above to:
320-
321-
1. Set up the new endpoints to `api.{{< region-param key="dd_site" code="true" >}}`, `http-intake.logs.{{< region-param key="dd_site" code="true" >}}`, and `trace.agent.{{< region-param key="dd_site" code="true" >}}`.
322-
2. Set `DdUseVPC` to `true`.
323-
3. Set `DdUsePrivateLink` to `false`.
324-
325313
### AWS VPC and proxy support
326314
327315
If you must deploy the Forwarder to a VPC without direct public internet access, and you cannot use AWS PrivateLink to connect to Datadog (for example, if your organization is hosted on the Datadog EU site: `datadoghq.eu`), then you can send data through a proxy.
@@ -467,9 +455,6 @@ To test different patterns against your logs, turn on [debug logs](#troubleshoot
467455
`PermissionsBoundaryArn`
468456
: ARN for the Permissions Boundary Policy.
469457
470-
`DdUsePrivateLink` (DEPRECATED)
471-
: Set to true to enable sending logs and metrics through AWS PrivateLink. See [Connect to Datadog over AWS PrivateLink][2].
472-
473458
`DdHttpProxyURL`
474459
: Sets the standard web proxy environment variables HTTP_PROXY and HTTPS_PROXY. These are the URL endpoints your proxy server exposes. Do not use this in combination with AWS Private Link. Make sure to also set `DdSkipSslValidation` to true.
475460
@@ -613,9 +598,6 @@ To test different patterns against your logs, turn on [debug logs](#troubleshoot
613598
`PERMISSIONS_BOUNDARY_ARN`
614599
: ARN for the Permissions Boundary Policy.
615600
616-
`DD_USE_PRIVATE_LINK` (DEPRECATED)
617-
: Set to true to enable sending logs and metrics through AWS PrivateLink. See [Connect to Datadog over AWS PrivateLink][2].
618-
619601
`DD_HTTP_PROXY_URL`
620602
: Sets the standard web proxy environment variables HTTP_PROXY and HTTPS_PROXY. These are the URL endpoints your proxy server exposes. Do not use this in combination with AWS Private Link. Make sure to also set `DD_SKIP_SSL_VALIDATION` to true.
621603

aws/logs_monitoring/settings.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -121,24 +121,6 @@ def get_env_var(envvar, default, boolean=False):
121121
## @param DD_CUSTOM_SOURCE
122122
DD_CUSTOM_SOURCE = get_env_var("DD_SOURCE", "")
123123

124-
# DEPRECATED. No longer need to use special endpoints, as you can now expose
125-
# regular Datadog API endpoints `api`, `http-intake.logs` and `trace.agent`
126-
# via PrivateLink. See https://docs.datadoghq.com/agent/guide/private-link/.
127-
# @param DD_USE_PRIVATE_LINK - whether to forward logs via PrivateLink
128-
# Overrides incompatible settings
129-
#
130-
DD_USE_PRIVATE_LINK = get_env_var("DD_USE_PRIVATE_LINK", "false", boolean=True)
131-
if DD_USE_PRIVATE_LINK:
132-
logger.debug("Private link enabled, overriding configuration settings")
133-
# Only the US Datadog site is supported when PrivateLink is enabled
134-
DD_SITE = "datadoghq.com"
135-
DD_NO_SSL = False
136-
DD_PORT = 443
137-
# Override URLs
138-
DD_URL = "api-pvtlink.logs.datadoghq.com"
139-
DD_API_URL = "https://pvtlink.api.datadoghq.com"
140-
DD_TRACE_INTAKE_URL = "https://trace-pvtlink.agent.datadoghq.com"
141-
142124

143125
class ScrubbingRuleConfig(object):
144126
def __init__(self, name, pattern, placeholder, enabled=True):

aws/logs_monitoring/template.yaml

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,6 @@ Parameters:
180180
- true
181181
- false
182182
Description: Set to false to disable log compression. Only valid when sending logs over HTTP.
183-
DdUsePrivateLink:
184-
Type: String
185-
Default: false
186-
AllowedValues:
187-
- true
188-
- false
189-
Description: DEPRECATED, DO NOT CHANGE. See README.md for details. Set to true to deploy the Forwarder to a VPC and send logs, metrics, and traces via AWS PrivateLink. When set to true, must also set VPCSecurityGroupIds and VPCSubnetIds.
190183
DdUseVPC:
191184
Type: String
192185
Default: false
@@ -205,11 +198,11 @@ Parameters:
205198
VPCSecurityGroupIds:
206199
Type: CommaDelimitedList
207200
Default: ""
208-
Description: Comma separated list of VPC Security Group Ids. Used when DdUsePrivateLink or DdUseVPC is enabled.
201+
Description: Comma separated list of VPC Security Group Ids. Used when DdUseVPC is enabled.
209202
VPCSubnetIds:
210203
Type: CommaDelimitedList
211204
Default: ""
212-
Description: Comma separated list of VPC Subnet Ids. Used when DdUsePrivateLink or DdUseVPC is enabled.
205+
Description: Comma separated list of VPC Subnet Ids. Used when DdUseVPC is enabled.
213206
DdCompressionLevel:
214207
Type: Number
215208
Default: 6
@@ -329,19 +322,16 @@ Conditions:
329322
- !Equals [!Ref DdFetchLogGroupTags, true]
330323
- !Equals [!Ref DdFetchLambdaTags, true]
331324
- !Equals [!Ref DdForwarderExistingBucketName, ""]
332-
SetDdUsePrivateLink: !Equals [!Ref DdUsePrivateLink, true]
333325
SetDdUseVPC: !Equals [!Ref DdUseVPC, true]
334326
SetDdHttpProxyURL: !Not
335327
- !Equals [!Ref DdHttpProxyURL, ""]
336328
SetDdNoProxy: !Not
337329
- !Equals [!Ref DdNoProxy, ""]
338330
SetLayerARN: !Not
339331
- !Equals [!Ref LayerARN, ""]
340-
UseVPC: !Or
341-
- !Condition SetDdUsePrivateLink
342-
- !Condition SetDdUseVPC
343332
SetDdForwardLog: !Equals [!Ref DdForwardLog, false]
344-
SetDdStepFunctionsTraceEnabled: !Equals [!Ref DdStepFunctionsTraceEnabled, true]
333+
SetDdStepFunctionsTraceEnabled:
334+
!Equals [!Ref DdStepFunctionsTraceEnabled, true]
345335
SetDdUseCompression: !Equals [!Ref DdUseCompression, false]
346336
SetDdCompressionLevel: !Not
347337
- !Equals [!Ref DdCompressionLevel, 6]
@@ -422,7 +412,10 @@ Resources:
422412
- !Ref DdForwarderExistingBucketName
423413
S3Key: !Sub
424414
- "aws-dd-forwarder-${DdForwarderVersion}.zip"
425-
- {DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version]}
415+
- {
416+
DdForwarderVersion:
417+
!FindInMap [Constants, DdForwarder, Version],
418+
}
426419
- ZipFile: " "
427420
MemorySize: !Ref MemorySize
428421
Runtime: python3.13
@@ -536,12 +529,8 @@ Resources:
536529
- SetDdMaxWorkers
537530
- !Ref DdMaxWorkers
538531
- !Ref AWS::NoValue
539-
DD_USE_PRIVATE_LINK: !If
540-
- SetDdUsePrivateLink
541-
- true
542-
- false
543532
DD_USE_VPC: !If
544-
- UseVPC
533+
- SetDdUseVPC
545534
- true
546535
- false
547536
HTTP_PROXY: !If
@@ -581,7 +570,7 @@ Resources:
581570
- !Ref ReservedConcurrency
582571
- !Ref AWS::NoValue
583572
VpcConfig: !If
584-
- UseVPC
573+
- SetDdUseVPC
585574
- SecurityGroupIds: !If
586575
- SetVpcSecurityGroupIds
587576
- !Ref VPCSecurityGroupIds
@@ -684,7 +673,7 @@ Resources:
684673
Effect: Allow
685674
- !Ref AWS::NoValue
686675
- !If
687-
- UseVPC # Required for Lambda deployed in VPC
676+
- SetDdUseVPC # Required for Lambda deployed in VPC
688677
- Action:
689678
- ec2:CreateNetworkInterface
690679
- ec2:DescribeNetworkInterfaces
@@ -821,7 +810,7 @@ Resources:
821810
- !Ref SourceZipUrl
822811
- !Sub
823812
- "https://github.com/DataDog/datadog-serverless-functions/releases/download/aws-dd-forwarder-${DdForwarderVersion}/aws-dd-forwarder-${DdForwarderVersion}.zip"
824-
- {DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version]}
813+
- { DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version] }
825814
# The Forwarder's source code is too big to fit the inline code size limit for CloudFormation. In most of AWS
826815
# partitions and regions, the Forwarder is able to load its source code from a Lambda layer attached to it.
827816
# In places where Datadog can't/doesn't yet publish Lambda layers, use another Lambda to copy the source code
@@ -1040,7 +1029,6 @@ Metadata:
10401029
- InstallAsLayer
10411030
- LayerARN
10421031
- PermissionsBoundaryArn
1043-
- DdUsePrivateLink
10441032
- DdUseVPC
10451033
- DdHttpProxyURL
10461034
- DdNoProxy

0 commit comments

Comments
 (0)