diff --git a/dotnet/integration-tests/aws-sdk/wrapper/main.tf b/dotnet/integration-tests/aws-sdk/wrapper/main.tf deleted file mode 100644 index 0d78760d83..0000000000 --- a/dotnet/integration-tests/aws-sdk/wrapper/main.tf +++ /dev/null @@ -1,21 +0,0 @@ -resource "aws_lambda_layer_version" "collector_layer" { - count = var.enable_collector_layer ? 1 : 0 - layer_name = var.collector_layer_name - filename = "${path.module}/../../../../collector/build/collector-extension-amd64.zip" - compatible_runtimes = ["dotnet6", "dotnetcore3.1"] - license_info = "Apache-2.0" - source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension-amd64.zip") -} - -module "hello-lambda-function" { - source = "../../../sample-apps/aws-sdk/deploy/wrapper" - name = var.function_name - architecture = var.architecture - collector_layer_arn = var.enable_collector_layer ? aws_lambda_layer_version.collector_layer[0].arn : null - 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" -} diff --git a/dotnet/integration-tests/aws-sdk/wrapper/outputs.tf b/dotnet/integration-tests/aws-sdk/wrapper/outputs.tf deleted file mode 100644 index 9ce1dce537..0000000000 --- a/dotnet/integration-tests/aws-sdk/wrapper/outputs.tf +++ /dev/null @@ -1,11 +0,0 @@ -output "api-gateway-url" { - value = module.hello-lambda-function.api-gateway-url -} - -output "function_role_name" { - value = module.hello-lambda-function.function_role_name -} - -output "collector_layer_arn" { - value = var.enable_collector_layer ? aws_lambda_layer_version.collector_layer[0].arn : "" -} diff --git a/dotnet/integration-tests/aws-sdk/wrapper/variables.tf b/dotnet/integration-tests/aws-sdk/wrapper/variables.tf deleted file mode 100644 index 8f43704583..0000000000 --- a/dotnet/integration-tests/aws-sdk/wrapper/variables.tf +++ /dev/null @@ -1,29 +0,0 @@ -variable "collector_layer_name" { - type = string - description = "Name of published collector layer" - default = "opentelemetry-collector" -} - -variable "function_name" { - type = string - description = "Name of sample app function / API gateway" - default = "hello-dotnet-awssdk-wrapper" -} - -variable "tracing_mode" { - type = string - description = "Lambda function tracing mode" - default = "PassThrough" -} - -variable "enable_collector_layer" { - type = bool - description = "Enables building and usage of a layer for the collector. If false, it means either the SDK layer includes the collector or it is not used." - default = true -} - -variable "architecture" { - type = string - description = "Lambda function architecture, valid values are arm64 or x86_64" - default = "x86_64" -}