Skip to content

AWS: ${ssm} should throw error when the referenced parameter is not found and no fallback #5757

Description

@exoego

This is a Bug Report

Description

  • What went wrong?

    • When ${ssm} specifiyes non-existant parameter, sls deploy or other command just output warning and continue, instead of throwing error.
  • What did you expect should have happened?

    • If parameter is not found and no fallback found, serverless should abort to prevent broken deployment.
    • Note: ${cf} and ${s3} can abort if not found.
  • What was the config you used?

service: aws-nodejs

provider:
  name: aws
  runtime: nodejs8.10

functions:
  hello:
    handler: handler.hello

custom:
  ssmVar: ${ssm:/path/to/service/myParam}
  • What stacktrace or error message from your provider did you see?
$ sls print
 
 Serverless Warning --------------------------------------
 
  A valid SSM parameter to satisfy the declaration 'ssm:/path/to/service/myParam' could not be found.
 
 
 Serverless Warning --------------------------------------
 
  A valid SSM parameter to satisfy the declaration 'ssm:/path/to/service/myParam' could not be found.
 
service: aws-nodejs
provider:
  name: aws
  runtime: nodejs8.10
functions:
  hello:
    handler: handler.hello
custom:
  envVar: fallback
  optVar: fallback
  selfVar: fallback
  fileVar: fallback

Similar or dependent issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions