Skip to content

Commit 9feaf7d

Browse files
authored
fix: restrict cfn-lint schema update to us-east-1 to avoid pickle error (#3901)
1 parent 2445bb1 commit 9feaf7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/run_cfn_lint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ fi
1111

1212
"${VENV}/bin/python" -m pip install cfn-lint --upgrade --quiet
1313
# update cfn schema with retry logic (can fail due to network issues)
14+
# --regions us-east-1 avoids a cfn-lint bug where updating all regions causes a
15+
# multiprocessing pickle error. See https://github.com/aws-cloudformation/cfn-lint/issues/4379
1416
MAX_RETRIES=3
1517
RETRY_COUNT=0
1618
while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
17-
if "${VENV}/bin/cfn-lint" -u; then
19+
if "${VENV}/bin/cfn-lint" -u --regions us-east-1; then
1820
echo "Successfully updated cfn-lint schema"
1921
break
2022
else

0 commit comments

Comments
 (0)