File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -1117,6 +1117,33 @@ Resources:
1117
1117
ComparisonOperator: GreaterThanThreshold
1118
1118
TreatMissingData: notBreaching
1119
1119
1120
+ # Grant the Javabuilder Build And Run Lambda Role additional permissions,
1121
+ # migrate to the role definition in the iam stack for permanent configuration.
1122
+ JavabuilderRolePolicy:
1123
+ Type: 'AWS::IAM::Policy'
1124
+ Properties:
1125
+ PolicyName: !Sub "${AWS::StackName}-buildandrun-policy-addition"
1126
+ PolicyDocument:
1127
+ Statement:
1128
+ - Effect: Allow
1129
+ Action:
1130
+ - 'dynamodb:GetItem'
1131
+ - 'dynamodb:PutItem'
1132
+ - 'dynamodb:Query'
1133
+ - 'dynamodb:UpdateItem'
1134
+ Resource:
1135
+ - !Sub "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*_blocked_users"
1136
+ - !Sub "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*_teacher_associated_requests"
1137
+ - !Sub "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*_tokens"
1138
+ - !Sub "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*_user_requests"
1139
+ - Effect: Allow
1140
+ Action:
1141
+ - 'cloudwatch:PutMetricData'
1142
+ Resource:
1143
+ - '*'
1144
+ Roles:
1145
+ - Fn::ImportValue: JavabuilderBuildAndRunLambdaRole
1146
+
1120
1147
Outputs:
1121
1148
JavabuilderURL:
1122
1149
Value:
You can’t perform that action at this time.
0 commit comments