Skip to content

fix: restrict cfn-lint schema update to us-east-1 to avoid pickle error#3901

Merged
licjun merged 1 commit intodevelopfrom
fix/cfn-lint-update-regions
Apr 2, 2026
Merged

fix: restrict cfn-lint schema update to us-east-1 to avoid pickle error#3901
licjun merged 1 commit intodevelopfrom
fix/cfn-lint-update-regions

Conversation

@licjun
Copy link
Copy Markdown
Contributor

@licjun licjun commented Apr 2, 2026

Problem

cfn-lint -u fails intermittently with a multiprocessing pickle error when updating schemas for all regions:

multiprocessing.pool.MaybeEncodingError: Error sending result: ...
Reason: 'TypeError("cannot pickle '_io.BufferedReader' object")'

This is a known cfn-lint bug: aws-cloudformation/cfn-lint#4379

Fix

Pass --regions us-east-1 to restrict schema updates to a single region. This avoids the multiprocessing issue since cfn-lint is used here for CloudFormation template structure validation, which doesn't require region-specific schemas.

cfn-lint -u fails with a multiprocessing pickle error when updating
schemas for all regions. Restricting to us-east-1 avoids the issue
since schema structure validation doesn't require region-specific schemas.

See aws-cloudformation/cfn-lint#4379
@licjun licjun requested a review from a team as a code owner April 2, 2026 20:00
@licjun licjun merged commit 9feaf7d into develop Apr 2, 2026
7 checks passed
@licjun licjun deleted the fix/cfn-lint-update-regions branch April 2, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants