Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/aws_integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:

- name: AWS Python integration tests
run: |
./aws/logs_monitoring/tools/integration_tests/integration_tests.sh --python-version=3.13
./aws/logs_monitoring/tools/integration_tests/integration_tests.sh --python-version=3.14
6 changes: 3 additions & 3 deletions .github/workflows/aws_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ jobs:
run: |
pip install cfn-lint==1.19.0
cfn-lint --version
cfn-lint -t aws/logs_monitoring/template.yaml
cfn-lint -t aws/rds_enhanced_monitoring/rds-enhanced-sam-template.yaml
cfn-lint -t aws/vpc_flow_log_monitoring/vpc-flow-log-sam-template.yaml
cfn-lint -i E3030 -t aws/logs_monitoring/template.yaml
cfn-lint -i E3030 -t aws/rds_enhanced_monitoring/rds-enhanced-sam-template.yaml
cfn-lint -i E3030 -t aws/vpc_flow_log_monitoring/vpc-flow-log-sam-template.yaml
4 changes: 2 additions & 2 deletions .github/workflows/aws_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Setup Python 3.13
- name: Setup Python 3.14
uses: actions/setup-python@v3
with:
python-version: 3.13
python-version: 3.14

- name: AWS Python unit tests
env:
Expand Down
4 changes: 4 additions & 0 deletions aws/logs_monitoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ The <a href="#cloudformation-parameters">environment variables provided on this

If you encounter issues upgrading to the latest version, check the Troubleshooting section.

### Upgrade to 5.2.0+

Starting version 5.2.0+ Lambda function has been updated to require **Python 3.14**. If upgrading an older forwarder installation to 5.2.0+, ensure AWS Lambda function is configured to use Python 3.14

### Upgrade to v5.0.0+

**Version 5.0.0 is a major release with breaking changes.** Before upgrading, review the [CHANGELOG.md][25] for detailed information about breaking changes and migration requirements.
Expand Down
4 changes: 2 additions & 2 deletions aws/logs_monitoring/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ bytecode
cattrs
certifi
charset-normalizer
datadog-lambda==8.120.0
datadog-lambda==8.121.0
datadog==0.52.0
ddsketch==3.0.1
ddtrace==3.16.2
ddtrace==3.19.5
deprecated
envier
exceptiongroup
Expand Down
2 changes: 1 addition & 1 deletion aws/logs_monitoring/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def get_enrich_cloudwatch_tags():
DD_CUSTOM_TAGS = "ddtags"
DD_SERVICE = "service"
DD_HOST = "host"
DD_FORWARDER_VERSION = "5.1.1"
DD_FORWARDER_VERSION = "5.2.0"

# CONST STRINGS
AWS_STRING = "aws"
Expand Down
4 changes: 2 additions & 2 deletions aws/logs_monitoring/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
author="Datadog, Inc.",
author_email="dev@datadoghq.com",
classifiers=[
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
],
keywords="datadog aws lambda layer",
python_requires=">=3.13, <3.14",
python_requires=">=3.14, <3.15",
extras_require={
"dev": ["nose2==0.9.1", "flake8==3.7.9", "requests==2.22.0", "boto3==1.10.33"]
},
Expand Down
8 changes: 4 additions & 4 deletions aws/logs_monitoring/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Description: Pushes logs, metrics and traces from AWS to Datadog.
Mappings:
Constants:
DdForwarder:
Version: 5.1.1
LayerVersion: "93"
Version: 5.2.0
LayerVersion: "94"
Parameters:
DdApiKey:
Type: String
Expand Down Expand Up @@ -457,7 +457,7 @@ Resources:
- {DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version]}
- ZipFile: " "
MemorySize: !Ref MemorySize
Runtime: python3.13
Runtime: python3.14
Architectures:
- arm64
Timeout: !Ref Timeout
Expand Down Expand Up @@ -869,7 +869,7 @@ Resources:
Properties:
Description: Copies Datadog Forwarder zip to the destination S3 bucket
Handler: index.handler
Runtime: python3.13
Runtime: python3.14
Timeout: 600
Code:
ZipFile: |
Expand Down
2 changes: 1 addition & 1 deletion aws/logs_monitoring/tools/build_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ else
VERSION=$1
fi

PYTHON_VERSION="${PYTHON_VERSION:-3.13}"
PYTHON_VERSION="${PYTHON_VERSION:-3.14}"
FORWARDER_PREFIX="aws-dd-forwarder"
FORWARDER_DIR="../.forwarder"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
service: integration-tests
provider:
name: aws
runtime: python3.13
runtime: python3.14

functions:
cache_test_lambda:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

set -e

PYTHON_VERSION="python3.13"
PYTHON_VERSION_TAG="3.13"
PYTHON_IMAGE="python:3.13"
PYTHON_VERSION="python3.14"
PYTHON_VERSION_TAG="3.14"
PYTHON_IMAGE="python:3.14"
SKIP_FORWARDER_BUILD=false
UPDATE_SNAPSHOTS=false
LOG_LEVEL=info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
],
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Length": "<redacted from snapshot>",
"Content-type": "application/json",
Expand Down Expand Up @@ -140,7 +140,7 @@
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Encoding": "deflate",
"Content-Length": "<redacted from snapshot>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
],
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Length": "<redacted from snapshot>",
"Content-type": "application/json",
Expand Down Expand Up @@ -113,7 +113,7 @@
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Encoding": "deflate",
"Content-Length": "<redacted from snapshot>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
],
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Length": "<redacted from snapshot>",
"Content-type": "application/json",
Expand Down Expand Up @@ -149,7 +149,7 @@
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Encoding": "deflate",
"Content-Length": "<redacted from snapshot>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
],
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Length": "<redacted from snapshot>",
"Content-type": "application/json",
Expand Down Expand Up @@ -140,7 +140,7 @@
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Encoding": "deflate",
"Content-Length": "<redacted from snapshot>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Length": "<redacted from snapshot>",
"Content-type": "application/json",
Expand Down Expand Up @@ -95,7 +95,7 @@
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Encoding": "deflate",
"Content-Length": "<redacted from snapshot>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
],
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Length": "<redacted from snapshot>",
"Content-type": "application/json",
Expand Down Expand Up @@ -891,7 +891,7 @@
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Encoding": "deflate",
"Content-Length": "<redacted from snapshot>",
Expand All @@ -910,4 +910,4 @@
"verb": "POST"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Length": "<redacted from snapshot>",
"Content-type": "application/json",
Expand Down Expand Up @@ -95,7 +95,7 @@
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Encoding": "deflate",
"Content-Length": "<redacted from snapshot>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
],
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Length": "<redacted from snapshot>",
"Content-type": "application/json",
Expand Down Expand Up @@ -175,7 +175,7 @@
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Encoding": "deflate",
"Content-Length": "<redacted from snapshot>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Length": "<redacted from snapshot>",
"Content-type": "application/json",
Expand Down Expand Up @@ -95,7 +95,7 @@
},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Encoding": "gzip, deflate, zstd",
"Connection": "keep-alive",
"Content-Encoding": "deflate",
"Content-Length": "<redacted from snapshot>",
Expand Down
2 changes: 1 addition & 1 deletion aws/logs_monitoring/tools/publish_layers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ user_confirm() {
# Makes sure any subprocesses will be terminated with this process
trap "pkill -P $$; exit 1;" INT

PYTHON_VERSIONS_FOR_AWS_CLI=("python3.13")
PYTHON_VERSIONS_FOR_AWS_CLI=("python3.14")
LAYER_PATHS=(".forwarder/aws-dd-forwarder-${FORWARDER_VERSION}-layer.zip")
AVAILABLE_LAYERS=("Datadog-Forwarder")
AVAILABLE_REGIONS=$(aws ec2 describe-regions | jq -r '.[] | .[] | .RegionName')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fi
# between different python runtimes.

if [[ $(docker image ls | grep -c golang) -lt 1 ]]; then
docker_build --platform linux/arm64 -t golang . --no-cache --build-arg "runtime=python:3.13"
docker_build --platform linux/arm64 -t golang . --no-cache --build-arg "runtime=python:3.14"
fi

docker run --rm --platform linux/arm64 --volume "$(pwd):/root/bin" golang cp -r /go/src/github.com/DataDog/datadog-serverless-functions/aws/logs_monitoring/trace_forwarder/bin /root/bin
Expand Down
2 changes: 1 addition & 1 deletion aws/logs_monitoring/trace_forwarder/scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ set -e
# Change to the parent of the directory this script is in
cd $(dirname "$0")/..

docker buildx build --platform linux/arm64 -t datadog-go-layer . --build-arg runtime=python:3.13
docker buildx build --platform linux/arm64 -t datadog-go-layer . --build-arg runtime=python:3.14
docker run --rm datadog-go-layer go test -v ./...
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Resources:
KeyId: !Ref KMSKeyId
Architectures:
- arm64
Runtime: python3.13
Runtime: python3.14
Timeout: 10
KmsKeyArn:
!Sub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Resources:
Policies:
KMSDecryptPolicy:
KeyId: !Ref KMSKeyId
Runtime: python3.13
Runtime: python3.14
Architectures:
- arm64
Timeout: 10
Expand Down
Loading