service: YOUR_SERVICE_NAME

frameworkVersion: ">=1.4.0 <2.0.0"

package:
  exclude:
    #- speechAssets/**
    #- events/**
    #- deploy-s3/images/**
    - npm-scripts/**
    - deploy-s3/**
    - s3-cors.json
    - config/dev.skill.config.json
    - config/prod.skill.config.json    
    # remove node modules only needed for npm scripts
    - node_modules/attrs.argv/**
    - node_modules/cp/**
    - node_modules/npm-run-script/**
    - node_modules/prompt/**

provider:
  name: aws
  runtime: nodejs4.3
  region: us-east-1
  stage: ${opt:stage, self:custom.defaultStage}
  profile: ${self:custom.profiles.${self:provider.stage}}

custom:
  defaultStage: dev
  profiles:
    dev: devProfile
    prod: prodProfile

functions:
  alexa-skill:
    handler: handler.skill
    events:
      - alexaSkill 

#resources:
#  Resources:
#    SkillBucket:
#      Type: AWS::S3::Bucket
#      Properties:
#        BucketName: alexa-starter-skill      
#        AccessControl: PublicRead
service: YOUR_SERVICE_NAME

frameworkVersion: ">=1.4.0 <2.0.0"

package:
  exclude:
    #- speechAssets/**
    #- events/**
    #- deploy-s3/images/**
    - npm-scripts/**
    - deploy-s3/**
    - s3-cors.json
    - config/dev.skill.config.json
    - config/prod.skill.config.json    
    # remove node modules only needed for npm scripts
    - node_modules/attrs.argv/**
    - node_modules/cp/**
    - node_modules/npm-run-script/**
    - node_modules/prompt/**

provider:
  name: aws
  runtime: nodejs4.3
  region: us-east-1
  stage: ${opt:stage, self:custom.defaultStage}
  profile: ${self:custom.profiles.${self:provider.stage}}
  memorySize: 512
  
custom:
  defaultStage: dev
  profiles:
    dev: devProfile
    prod: prodProfile

functions:
  alexa-skill:
    handler: handler.skill
    events:
      - alexaSkill 

#resources:
#  Resources:
#    SkillBucket:
#      Type: AWS::S3::Bucket
#      Properties:
#        BucketName: alexa-starter-skill      
#        AccessControl: PublicRead
Set lambda memory size in yml file
Set lambda memory size in yml file

