-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapplication.yaml
38 lines (38 loc) · 962 Bytes
/
application.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
33
34
35
36
37
38
Resources:
ApplicationAsADynamoTable:
Type: AWS::DynamoDB::Table
Properties:
KeySchema:
- AttributeName: ID
KeyType: HASH
AttributeDefinitions:
- AttributeName: ID
AttributeType: S
BillingMode: PAY_PER_REQUEST
AppRole:
Type: AWS::IAM::Role
Properties:
RoleName: lab-12-jdix-role
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: "Allow"
Principal:
Service:
- "ec2.amazonaws.com"
Action:
- "sts:AssumeRole"
Policies:
- PolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Action: 'dynamodb:*'
Resource: '*'
PolicyName: lab-12-jdix-policy
AppProfile:
Type: AWS::IAM::InstanceProfile
Properties:
Path: "/"
Roles:
- !Ref AppRole