Skip to content

Commit c06460a

Browse files
committed
Added pk and sk
1 parent 44113c9 commit c06460a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

serverless.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ provider:
66
region: us-west-2
77
deploymentBucket:
88
name: infra.opszero.com
9+
# environment:
10+
# DYNAMODB_TABLE_NAME: <service_name>-${sls:stage}
911
httpApi:
1012
cors: true
1113
# iamRoleStatements:
@@ -14,7 +16,7 @@ provider:
1416
# - dynamodb:*
1517
# Resource:
1618
# Fn::GetAtt:
17-
# - sourcing
19+
# - oneTable
1820
# - Arn
1921
# - Effect: "Allow"
2022
# Action:
@@ -66,16 +68,20 @@ package:
6668

6769
# resources:
6870
# Resources:
69-
# tableName:
71+
# oneTable:
7072
# Type: AWS::DynamoDB::Table
7173
# Properties:
72-
# TableName: name
74+
# TableName: <service_name>-${sls:stage}
7375
# AttributeDefinitions:
74-
# - AttributeName: link
76+
# - AttributeName: pk
77+
# AttributeType: S
78+
# - AttributeName: sk
7579
# AttributeType: S
7680
# KeySchema:
77-
# - AttributeName: link
81+
# - AttributeName: pk
7882
# KeyType: HASH
83+
# - AttributeName: sk
84+
# KeyType: RANGE
7985
# ProvisionedThroughput:
8086
# ReadCapacityUnits: 3
8187
# WriteCapacityUnits: 3

0 commit comments

Comments
 (0)