Skip to content

Sam deploy fails on missing /tmp folder files #9005

@SodaDev

Description

@SodaDev

Title

Bug: sam deploy fails on v1.160.0 with nested app template lookup in /tmp (Template file not found at /tmp/lambdaName/template.yaml)

Description

After upgrading AWS SAM CLI from 1.159.1 to 1.160.0, deployment started failing for a project using nested AWS::Serverless::Application templates with

Transform:

  • AWS::LanguageExtensions
  • AWS::Serverless-2016-10-31

The same pipeline and templates work on 1.159.1.

Failure message:
Error: Template file not found at /tmp/lambdaName/template.yaml

Steps to reproduce

  1. Use a parent template (e.g. deployments/template.yaml) with nested applications:
Resources:
  lambdaName:
    Type: AWS::Serverless::Application
    Properties:
      Location: lambdaName/template.yaml

I believe the issue is related to LanguageExtensions logic, but it breaks already existing artifacts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions