serverless-plugins icon indicating copy to clipboard operation
serverless-plugins copied to clipboard

SSM Provider Example Config File

Open kevinswarner opened this issue 5 years ago • 2 comments
trafficstars

It is not clear what format the file/contents of the file for the SSM values needs to be. Can you provide an example?

kevinswarner avatar Dec 07 '19 20:12 kevinswarner

I figured it out be looking through source. It might be helpful to have an example on the docs page for this plugin though. Thanks! For anyone else looking, you simply include the keys and values as you would with a .env file. For example, if you have the following reference in the serverless.yml file...

${ssm:/foo/bar/baz}

You would put a line in the .ssm file like this...

/foo/bar/baz=myvaluehere

So, it is...

{SSM_PATH}={VALUE}

kevinswarner avatar Dec 07 '19 20:12 kevinswarner

Hello @kevinswarner, sorry for this far too late answer. :/

it's indeed a $path=$value pattern cf integration tests

/sqs/port=9324
/s3/port=9000
/dynamodb/port=8000
/kinesis/port=4567

AdrieanKhisbe avatar Sep 25 '20 15:09 AdrieanKhisbe