Skip to content

feat: support AWS::Serverless::WebFunction in Globals - #4019

Merged
seshubaws merged 3 commits into
aws:developfrom
seshubaws:seshub/webfunction-globals
Oct 19, 2026
Merged

seshubaws merged 3 commits into
aws:developfrom
seshubaws:seshub/webfunction-globals

Conversation

@seshubaws

@seshubaws seshubaws commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Issue #, if available

Description of changes

Adds AWS::Serverless::WebFunction to the Globals section.

  • Supported properties: Runtime, Timeout, EnvironmentVariables, ExecutionRoleArn, AuthType, KmsKeyArn, LoggingConfig, ScalingConfig, ThrottleConfig, MaxConcurrencyPerEnvironment, EgressNetworkConnectorArn, EndpointType, AutoDeploymentMode, ReplicaRegions, Tags.
  • ReplicaRegions follows the default list behavior: a resource's Regions are appended to the global ones (duplicates are removed).
  • Runtime and AuthType are now optional in the resource schema because they can come from Globals. The transform still raises 'Runtime' is required or 'AuthType' is required when neither the resource nor Globals sets them.
  • Per-resource properties (FunctionName, CodeUri, InlineCode, EntryPoint, EndpointName, EndpointDescription, RevisionDescription, RevisionWeights) aren't supported in Globals.
  • Updated docs/globals.rst and regenerated the schemas.

Description of how you validated changes

  • New transform test webfunction_globals. One function inherits every global. The other overrides AuthType and Timeout, merges EnvironmentVariables and Tags with the globals, and its ReplicaRegions is appended to the global list.
  • New error test for a per-resource property (EntryPoint) in Globals. Updated the two existing error tests that list the supported Globals types.
  • make format-check, make lint (ruff, mypy, cfn-lint) and make test pass. The new output is added to the existing .cfnlintrc.yaml W3005 exclusions for WebFunction outputs.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@seshubaws
seshubaws requested a review from a team as a code owner October 19, 2026 21:28
Comment thread docs/globals.rst
@seshubaws
seshubaws added this pull request to the merge queue Oct 19, 2026
Merged via the queue into aws:develop with commit 51b2e60 Oct 19, 2026
9 checks passed
@seshubaws
seshubaws deleted the seshub/webfunction-globals branch October 19, 2026 22:52
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.

4 participants