We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d6fbc9 commit 054f9d8Copy full SHA for 054f9d8
aws-node-rest-api-with-dynamodb/serverless.yml
@@ -16,13 +16,7 @@ provider:
16
- dynamodb:PutItem
17
- dynamodb:UpdateItem
18
- dynamodb:DeleteItem
19
- Resource:
20
- Fn::Join:
21
- - ""
22
- - - "arn:aws:dynamodb:"
23
- - ${self:provider.region}
24
- - ":*:table/"
25
- - ${self:service}-${opt:stage, self:provider.stage}
+ Resource: "arn:aws:dynamodb:${self:provider.region}:*:table/${env:DYNAMODB_TABLE}"
26
27
functions:
28
create:
@@ -82,4 +76,4 @@ resources:
82
76
ProvisionedThroughput:
83
77
ReadCapacityUnits: 1
84
78
WriteCapacityUnits: 1
85
- TableName: ${self:service}-${opt:stage, self:provider.stage}
79
+ TableName: ${env:DYNAMODB_TABLE}
0 commit comments