Skip to content

feat: add region filtering to --update-specs#4382

Merged
kddejong merged 1 commit intoaws-cloudformation:mainfrom
kddejong:feature/update-specs-regions
Mar 4, 2026
Merged

feat: add region filtering to --update-specs#4382
kddejong merged 1 commit intoaws-cloudformation:mainfrom
kddejong:feature/update-specs-regions

Conversation

@kddejong
Copy link
Copy Markdown
Contributor

@kddejong kddejong commented Mar 3, 2026

Allow users to specify which regions to update when running --update-specs by using the --regions flag. This reduces download time and bandwidth usage when only specific regions are needed.

Usage:

  • cfn-lint --update-specs (updates all regions, default behavior)
  • cfn-lint --update-specs --regions us-east-1 us-west-2 (updates only specified regions)
  • cfn-lint --update-specs --regions ALL_REGIONS (explicit all regions)

Changes:

  • Add regions parameter to update_resource_specs() and ProviderSchemaManager.update()
  • Pass regions from CLI config to update functions when explicitly specified
  • Add test coverage for region-specific updates

Issue #, if available:
#4379
Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Allow users to specify which regions to update when running --update-specs
by using the --regions flag. This reduces download time and bandwidth usage
when only specific regions are needed.

Usage:
- cfn-lint --update-specs (updates all regions, default behavior)
- cfn-lint --update-specs --regions us-east-1 us-west-2 (updates only specified regions)
- cfn-lint --update-specs --regions ALL_REGIONS (explicit all regions)

Changes:
- Add regions parameter to update_resource_specs() and ProviderSchemaManager.update()
- Pass regions from CLI config to update functions when explicitly specified
- Add test coverage for region-specific updates
@kddejong kddejong force-pushed the feature/update-specs-regions branch from 81fff59 to 1a78990 Compare March 3, 2026 20:08
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 3, 2026

Codecov Report

❌ Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.55%. Comparing base (0bbabc9) to head (1a78990).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
src/cfnlint/maintenance.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4382   +/-   ##
=======================================
  Coverage   93.54%   93.55%           
=======================================
  Files         418      422    +4     
  Lines       14145    14223   +78     
  Branches     2817     2825    +8     
=======================================
+ Hits        13232    13306   +74     
  Misses        567      567           
- Partials      346      350    +4     
Flag Coverage Δ
unittests 93.55% <90.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kddejong kddejong merged commit 6e5bf6a into aws-cloudformation:main Mar 4, 2026
17 of 18 checks passed
@kddejong kddejong deleted the feature/update-specs-regions branch March 4, 2026 17:29
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.

1 participant