Skip to content

Commit 0d2a78b

Browse files
authored
fix master build (#837)
* fix docker compose in integration tests * fix cfn-lint after the update to 2.4.3 this release added the W1030 check which breaks the build on master
1 parent 817ce8d commit 0d2a78b

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Setup Python
1212
uses: actions/setup-python@v3
1313
with:
14-
python-version: '3.11'
14+
python-version: "3.11"
1515

1616
- name: Install pip
1717
run: |
@@ -35,5 +35,8 @@ jobs:
3535
- name: Print the CloudFormation Linter Version & run Linter
3636
run: |
3737
cfn-lint --version
38-
cfn-lint -t aws/logs_monitoring/template.yaml
38+
# cfn-lint was updated in July 2024 to add this check which fails on the template.
39+
# TODO: We might be able to update the template to fix this error; it seems likely that
40+
# SecurityGroupIds in VpcConfig are not generated properly
41+
cfn-lint -t aws/logs_monitoring/template.yaml -i W1030
3942
cfn-lint -t aws/rds_enhanced_monitoring/rds-enhanced-sam-template.yaml

aws/logs_monitoring/template.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ Conditions:
446446
- Fn::Equals:
447447
- Ref: ReservedConcurrency
448448
- ""
449-
ShouldUseAccessLogBucket: !Not [!Equals [!Ref DdForwarderBucketsAccessLogsTarget, ""]]
449+
ShouldUseAccessLogBucket:
450+
!Not [!Equals [!Ref DdForwarderBucketsAccessLogsTarget, ""]]
450451
SetForwarderBucket:
451452
Fn::Or:
452453
- Condition: CreateS3Bucket
@@ -509,7 +510,10 @@ Resources:
509510
S3Key:
510511
Fn::Sub:
511512
- "aws-dd-forwarder-${DdForwarderVersion}.zip"
512-
- {DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version]}
513+
- {
514+
DdForwarderVersion:
515+
!FindInMap [Constants, DdForwarder, Version],
516+
}
513517
- ZipFile: " "
514518
MemorySize:
515519
Ref: MemorySize
@@ -944,7 +948,10 @@ Resources:
944948
- !Ref SourceZipUrl
945949
- Fn::Sub:
946950
- "https://github.com/DataDog/datadog-serverless-functions/releases/download/aws-dd-forwarder-${DdForwarderVersion}/aws-dd-forwarder-${DdForwarderVersion}.zip"
947-
- {DdForwarderVersion: !FindInMap [Constants, DdForwarder, Version]}
951+
- {
952+
DdForwarderVersion:
953+
!FindInMap [Constants, DdForwarder, Version],
954+
}
948955
# The Forwarder's source code is too big to fit the inline code size limit for CloudFormation. In most of AWS
949956
# partitions and regions, the Forwarder is able to load its source code from a Lambda layer attached to it.
950957
# In places where Datadog can't/doesn't yet publish Lambda layers, use another Lambda to copy the source code

aws/logs_monitoring/tools/integration_tests/integration_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ LOG_LEVEL=${LOG_LEVEL} \
165165
SNAPSHOTS_DIR_NAME="./${SNAPSHOTS_DIR_NAME}" \
166166
DD_FETCH_LAMBDA_TAGS=${DD_FETCH_LAMBDA_TAGS} \
167167
DD_FETCH_STEP_FUNCTIONS_TAGS=${DD_FETCH_STEP_FUNCTIONS_TAGS} \
168-
docker-compose up --build --abort-on-container-exit
168+
docker compose up --build --abort-on-container-exit
169169

170170
if [ $ADDITIONAL_LAMBDA == true ]; then
171171
echo "Waiting for external lambda logs..."

0 commit comments

Comments
 (0)