-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
32 lines (30 loc) · 917 Bytes
/
template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
AWSTemplateFormatVersion: 2010-09-09
Resources:
dynamoDBTable:
Type: AWS::DynamoDB::Table
Properties:
AttributeDefinitions:
- AttributeName: ID
AttributeType: "S"
- AttributeName: part
AttributeType: "S"
BillingMode: PAY_PER_REQUEST
KeySchema:
- AttributeName: ID
KeyType: HASH
- AttributeName: part
KeyType: RANGE
TableName: Part
MyAppExecutionRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Principal:
Service: lambda.amazonaws.com
Action: sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AmazonDynamoDBFullAccess
RoleName: jake-pipe-dynamo-app