This post is inspired by the following one on stackoverflow: amazon web services - Use stage parameters to skip fields in Serverless Framework - Stack Overflow
In the code below, is there a particular 'default value'
that could be set as to skip the array value? I would like DevKey1
and DevKey2
for the dev
stage and only ProdKey1
for the v1
stage.
frameworkVersion: '3'
params:
dev:
name: 'dev'
keyName1: DevKey1
keyName2: DevKey2
v1:
name: 'v1'
keyName1: ProdKey1
provider:
name: aws
apiGateway:
apiKeys:
- ${param:keyName1}
- ${param:keyName2, 'defult value'}