Passing in an array of values into serverless CLI for list properties

Hi there,

I’m trying to pass in an array of subnetids as a CLI argument as I don’t want to have those values checked into source control. Like:

serverless deploy --subnetIds 'subnet-xxxx,subnet-yyyy'

How can I make that work in serverless.yml?

Cheers,

Never mind :slight_smile:

vpc:
  subnetIds:
    "Fn::Split":
      - ","
      - ${opt:subnetIds}
3 Likes

Passing array in yml is sucks. Does serverless has some plan to fix this? @system

@ztmdsbt This is probably better discussed over at Github.