Skip to content

Commit f256645

Browse files
committed
adding policy for xray to echo.
1 parent 96a871a commit f256645

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

template.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,18 @@ Resources:
118118
Alarms:
119119
- !Ref AliasErrorMetricGreaterThanZeroAlarm
120120
- !Ref LatestVersionErrorMetricGreaterThanZeroAlarm
121+
Policies:
122+
- Version: "2012-10-17"
123+
Statement:
124+
- Effect: "Allow"
125+
Action:
126+
- "logs:CreateLogGroup"
127+
- "logs:CreateLogStream"
128+
- "logs:PutLogEvents"
129+
- "xray:PutTraceSegments"
130+
- "xray:PutTelemetryRecords"
131+
Resource:
132+
- "*"
121133

122134
GetItem:
123135
Type: AWS::Serverless::Function

0 commit comments

Comments
 (0)