Skip to content

"sam package" command does not honor Globals #653

@abhilash1in

Description

@abhilash1in

Description:
BinaryMediaTypes is removed from APIGW settings when SAM template is updated and re-deployed

Steps to reproduce the issue:

  1. Create a simple SAM application with Globals as follows:
Globals:
    Api:
        BinaryMediaTypes:
            - "*~1*"
  1. Package and deploy. Observe Settings section of the new APIGW API. Binary Media Types will have */*

  2. Make some changes to the SAM template. Re-package and re-deploy. Observe Settings section of the APIGW API. Binary Media Types config is empty/missing

Observed result:
Binary Media Types config is empty/missing after SAM template is updated and redeployed

Expected result:
Binary Media Types does not change after stack update.

Output of sam --version: SAM CLI, version 0.6.0

Optional Debug logs:

Add --debug flag to command you are running

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions