Skip to content

DefinitionUri doesnt support Intrinsic Functions #181

@shivaman

Description

@shivaman

I have an external Swagger file (not in S3), and trying to do something like

DefinitionUri: !Ref SwaggerFile
or !Join or !Sub results in

Transform AWS::Serverless-2016-10-31 failed with: Invalid Serverless Application Specification document. Number of errors found: 1. Resource with id [MyAPI] is invalid. 'DefinitionUri' requires Bucket and Key properties to be specified

Whereas DefinitionUri: swagger_development.yml works fine.

https://github.com/awslabs/serverless-application-model/blob/master/HOWTO.md#using-intrinsic-functions seems to claim this should work. This makes working with a SAM template with different configs for development and testing difficult.

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