Skip to content

Commit f4f301e

Browse files
committed
Template and script for Lambda function execution role
1 parent 938459f commit f4f301e

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The role named "scorekeep-lambda" has the following policies:
3434
- Managed policy - AWSLambdaBasicExecutionRole
3535
- Managed policy - AmazonSNSFullAccess
3636
- Managed policy - AWSXrayWriteOnlyAccess (optional) for compatibility with the xray branch
37-
- Trust policy -
37+
- Trust policy -
3838

3939
{
4040
"Version": "2012-10-17",

_lambda/lambda-role.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
Resources:
2-
RandomNameRole:
3-
Type: "AWS::IAM::Role"
4-
Properties:
5-
AssumeRolePolicyDocument: {
6-
"Version": "2012-10-17",
7-
"Statement": [
8-
{
9-
"Effect": "Allow",
10-
"Principal": {
11-
"Service": "lambda.amazonaws.com"
12-
},
13-
"Action": "sts:AssumeRole"
14-
}
15-
]
16-
}
17-
ManagedPolicyArns:
18-
- arn:aws:iam::aws:policy/AWSXrayWriteOnlyAccess
19-
- arn:aws:iam::aws:policy/AmazonSNSFullAccess
20-
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
21-
Path: /service-role/
22-
RoleName: scorekeep-lambda
1+
Resources:
2+
RandomNameRole:
3+
Type: "AWS::IAM::Role"
4+
Properties:
5+
AssumeRolePolicyDocument: {
6+
"Version": "2012-10-17",
7+
"Statement": [
8+
{
9+
"Effect": "Allow",
10+
"Principal": {
11+
"Service": "lambda.amazonaws.com"
12+
},
13+
"Action": "sts:AssumeRole"
14+
}
15+
]
16+
}
17+
ManagedPolicyArns:
18+
- arn:aws:iam::aws:policy/AWSXrayWriteOnlyAccess
19+
- arn:aws:iam::aws:policy/AmazonSNSFullAccess
20+
- arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
21+
Path: /service-role/
22+
RoleName: scorekeep-lambda

0 commit comments

Comments
 (0)