Skip to content

Instantly share code, notes, and snippets.

@gnzandrs
Created April 1, 2019 02:46
Show Gist options
  • Save gnzandrs/fca554bcf66e256144e2947967663675 to your computer and use it in GitHub Desktop.
Save gnzandrs/fca554bcf66e256144e2947967663675 to your computer and use it in GitHub Desktop.

Revisions

  1. gnzandrs created this gist Apr 1, 2019.
    32 changes: 32 additions & 0 deletions medium-serverless-basic-config.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    service: hola-mundo

    plugins:
    - serverless-offline

    provider:
    name: aws
    runtime: nodejs6.10
    stage: dev
    region: us-west-2

    stackTags:
    Responsable: "@gnzandrs"
    Version: "Alpha"
    Criticidad: "Baja"

    iamRoleStatements:
    - Effect: Allow
    Action:
    - dynamodb:Query
    - dynamodb:Scan
    - dynamodb:GetItem

    Resource: "arn:aws:dynamodb:${self:provider.region}:*:*"

    environment:
    region: ${self:provider.region}

    functions:
    app:
    handler: handler.run
    description: imprime un texto