Skip to content

YAML short forms for Fn::Transform and Fn::GetStackOutput are rejected #450

Description

@GrahamCampbell

The shared CloudFormation schema in lib/utils/serverless-utils/cloudformation-schema.js registers seventeen short-form tags, matching upstream. AWS documents two more: !Transform and the newer !GetStackOutput. Both currently fail YAML parsing with an unknown tag error, whether they appear in a resources block of serverless.yml, in a file loaded through the file variable source, or in an existing stack's original template on the deployment bucket repair path reported in #443. Fn::Length, Fn::ToJsonString, Fn::ForEach and the Rules functions have no documented short forms, so only these two are missing. Adding them to the function list is enough, since the existing type factory maps a name to its Fn:: key, and the utils README divergence note should record the addition so it survives a re-sync. Applies to 3.x and 4.x.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions