Skip to content

Commit

Permalink
Enable metrics collection for develop v2
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavPshenichnikov committed Apr 15, 2024
1 parent fdf47ee commit af9b1ed
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions develop-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,25 @@ Resources:
- logs:CreateLogStream
- logs:PutLogEvents
Resource: "*"

PutMetricsPolicy:
Type: AWS::IAM::ManagedPolicy
Properties:
Description: Allows functions to put metrics
Roles:
- !Ref DocspaceReverseProxyRole
PolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Action:
- cloudwatch:PutMetricData
Resource: "*"

DyanmoDBFullAccessPolicy:
Type: AWS::IAM::ManagedPolicy
Properties:
Description: Allows functions to interact with aws
Description: Set dynamodb permissions
Roles:
- !Ref DocspaceReverseProxyRole
PolicyDocument:
Expand All @@ -159,7 +173,6 @@ Resources:
- cloudwatch:GetMetricStatistics
- cloudwatch:ListMetrics
- cloudwatch:PutMetricAlarm
- cloudwatch:PutMetricData
- cloudwatch:GetMetricData
- datapipeline:ActivatePipeline
- datapipeline:CreatePipeline
Expand Down

0 comments on commit af9b1ed

Please sign in to comment.