machine:
  environment:
    LAMBDA_ARN: "arn:aws:lambda:us-east-1:320028119408:function:salvador-dev"
deployment:
  production:
    branch: master
    commands:
#    - lein deploy private
  staging:
    branch: lambda-deploy
    commands:
    - lein lambda update dev
#    - aws lambda add-permission --function-name excelsior-dev --statement-id lars-1 --action "lambda:*" --principal "apigateway.amazonaws.com"

machine:
  environment:
    LAMBDA_ARN: "arn:aws:lambda:us-east-1:320028119408:function:salvador-dev"
deployment:
  production:
    branch: master
    commands:
#    - lein deploy private
    - lein lambda update dev
  staging:
    branch: lambda-deploy
    commands:
    - lein lambda update dev
#    - aws lambda add-permission --function-name excelsior-dev --statement-id lars-1 --action "lambda:*" --principal "apigateway.amazonaws.com"

Update lambda with every build
Update lambda with every build
