Skip to content

[3.x] Fix schema rejection of function-level vpc opt-out - #433

Merged
GrahamCampbell merged 2 commits into
3.xfrom
fix-function-vpc-opt-out-schema-3.x
Aug 4, 2026
Merged

[3.x] Fix schema rejection of function-level vpc opt-out#433
GrahamCampbell merged 2 commits into
3.xfrom
fix-function-vpc-opt-out-schema-3.x

Conversation

@GrahamCampbell

Copy link
Copy Markdown
Contributor

This applies the same fix as #432 to the 3.x branch, where the schema/compile mismatch is also present (refs #421). The compile step has deliberately supported opting a single function out of provider.vpc with vpc: false or vpc: null (documented as vpc: ~) since 2021, but the schema only accepts a VPC config object, so vpc: false produces a spurious validation warning under the default configValidationMode: warn and a hard failure for services that opt into error.

The function-level vpc schema now accepts false and null alongside the config object, both guides mention false alongside ~, and a regression test asserts a function with vpc: false is packaged without a VpcConfig under strict validation. Thanks to @bburgalat-bcg for the diagnosis and the original patch, credited as co-author.

Co-authored-by: BenjaminBurgalat <b.burgalat@betclicgroup.com>
@GrahamCampbell GrahamCampbell changed the title Fix schema rejection of function-level vpc opt-out (3.x) [3.x] Fix schema rejection of function-level vpc opt-out Aug 4, 2026
@GrahamCampbell
GrahamCampbell merged commit 4c0dc90 into 3.x Aug 4, 2026
8 checks passed
@GrahamCampbell
GrahamCampbell deleted the fix-function-vpc-opt-out-schema-3.x branch August 4, 2026 14:38
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