serverless-components / website

:zap: Instantly deploy static website on serverless infrastructure with zero configuration using Serverless Components.
https://serverless.com
Apache License 2.0
157 stars 49 forks source link

Does Not Support Options or Variables in YML #14

Open kling-appfire opened 5 years ago

kling-appfire commented 5 years ago

Please update to support CL options and ${property.variables}

eahefnawy commented 5 years ago

YAML references should work 🤔 ... have you tried that?

service: files

images:
  component: "@serverless/aws-s3"
  inputs:
    name: ${service}-images

Regarding CLI, we currently don't support it so that we don't tie the template to the CLI. Remember that unlike the framework, components could be used programmatically as well.

kling-appfire commented 5 years ago

huh. I def tried ${self.variable} and ${self:prop.variable}. Even ${self:variable}. I'll try it.

Not having command-line options w/default like Std Serverless is HUGE. Having to code py scripts to tokenize at moment. ${opt.variable, 'some default'}

edwandr commented 4 years ago

In the same topic, it seems that the ${file(...):property} notation is not working, i managed to use the ${env:ENV} notation though. Is it an expected behavior ?