How to make Serverless Components

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024

Комментарии • 3

  • @jonathanpiet
    @jonathanpiet 4 года назад +2

    You explained perfect and in depth, Awesome! Just subscribed ;)

  • @medikoo
    @medikoo 5 лет назад

    Great insight Gary, Thank you.
    One question: If I run `sls` second time (after successful create attempt), will it try to create again same dynamodb table?

    • @GaryJennings
      @GaryJennings  4 года назад

      It all depends on what you decide to do in that scenario. First you would have to find a way to keep track of the state of your deployed project, and then check on all deploys: Is this a new project, or am I updating? Thankfully, all the components serverless inc has been making themselves is open source, so you can checkout how they are accomplishing it. For example, in the aws-dynamodb component, they are doing a check here: github.com/serverless-components/aws-dynamodb/blob/master/serverless.js#L57