/xray-constructor-issue-289

Demo repo for https://github.com/aws/aws-xray-sdk-dotnet/issues/289

Primary LanguageC#

Demo Repository for XRay .NET SDK Constructor Issue #289

aws/aws-xray-sdk-dotnet#289

Make sure to have these permissions in Lambda execution role

This is from AWSLambdaBasicExecutionRole

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "logs:CreateLogGroup",
                "logs:CreateLogStream",
                "logs:PutLogEvents"
            ],
            "Resource": "*"
        }
    ]
}

This is from AWSXrayWriteOnlyAccess

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "xray:PutTraceSegments",
                "xray:PutTelemetryRecords",
                "xray:GetSamplingRules",
                "xray:GetSamplingTargets",
                "xray:GetSamplingStatisticSummaries"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}