March 2019
Intermediate to advanced
168 pages
4h 33m
English
Create a policy to be able to write logs and push metrics to CloudWatch:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents",
"logs:DescribeLogStreams"
],
"Resource": [
"arn:aws:logs:*:*:*"
]
},
{
"Effect": "Allow",
"Action": [
"cloudwatch:PutMetricData"
],
"Resource": "*"
}
]
}
The main idea of this policy is to allow the Lambda function to create CloudWatch ...
Read now
Unlock full access