Skip to content

Commit 80fdedb

Browse files
fix(xray): Removing IAM role permissions for xray and disabling tracing on function
1 parent 8ce4e9d commit 80fdedb

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ class ServerlessEsLogsPlugin {
172172
},
173173
runtime: 'nodejs8.10',
174174
timeout: 60,
175+
tracing: false,
175176
};
176177
}
177178

templates/elasticsearch/iam-lambda.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,6 @@
4040
}
4141
]
4242
}
43-
},
44-
{
45-
"PolicyName": "xray-policy",
46-
"PolicyDocument": {
47-
"Version": "2012-10-17",
48-
"Statement": [
49-
{
50-
"Effect": "Allow",
51-
"Action": [
52-
"xray:PutTraceSegments"
53-
],
54-
"Resource": "*"
55-
}
56-
]
57-
}
5843
}
5944
]
6045
}

0 commit comments

Comments
 (0)