Skip to content

Commit

Permalink
Adding stripe environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed May 6, 2018
1 parent 00a3396 commit 9d3493c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
12 changes: 0 additions & 12 deletions env.example

This file was deleted.

4 changes: 4 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
# Load our secret environment variables based on the current stage.
# Fallback to default if it is not in prod.
environment: ${file(env.yml):${self:custom.stage}, file(env.yml):default}

provider:
name: aws
Expand All @@ -30,6 +33,7 @@ provider:
environment:
tableName:
Ref: NotesTable
stripeSecretKey: ${self:custom.environment.stripeSecretKey}

iamRoleStatements:
- Effect: Allow
Expand Down

0 comments on commit 9d3493c

Please sign in to comment.