Skip to content

Require VpcConfig when FileSystemConfigs is specified on Lambda Function#4408

Merged
kddejong merged 1 commit into
aws-cloudformation:mainfrom
kddejong:fix/issue/4369
Mar 24, 2026
Merged

Require VpcConfig when FileSystemConfigs is specified on Lambda Function#4408
kddejong merged 1 commit into
aws-cloudformation:mainfrom
kddejong:fix/issue/4369

Conversation

@kddejong
Copy link
Copy Markdown
Contributor

Adds dependentRequired to the Lambda Function schema so that VpcConfig is required when FileSystemConfigs is specified.

Without VpcConfig, CloudFormation fails at deploy time with:

Function must be configured to execute in a VPC to reference access point arn:aws:elasticfilesystem:...

Fixes #4369

Adds dependentRequired to enforce that VpcConfig must be present when
FileSystemConfigs is used, matching CloudFormation's runtime behavior.

Fixes aws-cloudformation#4369
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.45%. Comparing base (0bbabc9) to head (c6cc19e).
⚠️ Report is 34 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4408      +/-   ##
==========================================
- Coverage   93.54%   93.45%   -0.10%     
==========================================
  Files         418      422       +4     
  Lines       14145    14325     +180     
  Branches     2817     2860      +43     
==========================================
+ Hits        13232    13387     +155     
- Misses        567      581      +14     
- Partials      346      357      +11     
Flag Coverage Δ
unittests 93.45% <ø> (-0.08%) ⬇️

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 18a2bfa into aws-cloudformation:main Mar 24, 2026
19 checks passed
@kddejong kddejong deleted the fix/issue/4369 branch March 24, 2026 19: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.

AWS::Lambda::Function - New capability - FileSystemConfigs needs VpcConfig

1 participant