Skip to content

Commit

Permalink
Add permission to publish lambda insights stats for soak tests. (open…
Browse files Browse the repository at this point in the history
…-telemetry#83)

* Add permission to publish lambda insights stats for soak tests.

* format
  • Loading branch information
Anuraag Agrawal authored Apr 26, 2021
1 parent de4dc9f commit a421990
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions java/integration-tests/aws-sdk/agent/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ module "hello-lambda-function" {
sdk_layer_arn = aws_lambda_layer_version.sdk_layer.arn
tracing_mode = var.tracing_mode
}

resource "aws_iam_role_policy_attachment" "hello-lambda-cloudwatch-insights" {
role = module.hello-lambda-function.function_role_name
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
}
5 changes: 5 additions & 0 deletions java/integration-tests/aws-sdk/wrapper/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ module "hello-lambda-function" {
sdk_layer_arn = aws_lambda_layer_version.sdk_layer.arn
tracing_mode = var.tracing_mode
}

resource "aws_iam_role_policy_attachment" "hello-lambda-cloudwatch-insights" {
role = module.hello-lambda-function.function_role_name
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
}
5 changes: 5 additions & 0 deletions java/integration-tests/okhttp/wrapper/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ module "hello-lambda-function" {
sdk_layer_arn = aws_lambda_layer_version.sdk_layer.arn
tracing_mode = var.tracing_mode
}

resource "aws_iam_role_policy_attachment" "hello-lambda-cloudwatch-insights" {
role = module.hello-lambda-function.function_role_name
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
}
5 changes: 5 additions & 0 deletions nodejs/integration-tests/aws-sdk/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ module "hello-lambda-function" {
sdk_layer_arn = aws_lambda_layer_version.sdk_layer.arn
tracing_mode = var.tracing_mode
}

resource "aws_iam_role_policy_attachment" "hello-lambda-cloudwatch-insights" {
role = module.hello-lambda-function.function_role_name
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
}
5 changes: 5 additions & 0 deletions python/integration-tests/function/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ module "hello-lambda-function" {
sdk_layer_arn = aws_lambda_layer_version.sdk_layer.arn
tracing_mode = var.tracing_mode
}

resource "aws_iam_role_policy_attachment" "hello-lambda-cloudwatch-insights" {
role = module.hello-lambda-function.function_role_name
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole"
}

0 comments on commit a421990

Please sign in to comment.