Skip to content

Commit 1808597

Browse files
add managed policy
1 parent 3f214ff commit 1808597

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

cfn/ESDK-Python.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Parameters:
1818
Description: The number of builds you expect to run in a batch
1919

2020
Metadata:
21-
AWS::CloudFormation::Interface:
21+
AWS::CloudFormation::Interface:
2222
ParameterGroups:
2323
-
2424
Label:
@@ -339,3 +339,20 @@ Resources:
339339
}
340340
]
341341
}
342+
343+
CodeBuildCISTSAllow:
344+
Type: "AWS::IAM::ManagedPolicy"
345+
Properties:
346+
ManagedPolicyName: !Sub CodeBuildCISTSAllow-${ProjectName}
347+
Path: /service-role/
348+
PolicyDocument: |
349+
{
350+
"Version": "2012-10-17",
351+
"Statement": [
352+
{
353+
"Effect": "Allow",
354+
"Action": "sts:AssumeRole",
355+
"Resource": "arn:aws:iam::370957321024:role/GitHub-CI-Public-ESDK-Java-Role-us-west-2"
356+
}
357+
]
358+
}

0 commit comments

Comments
 (0)