Skip to content

Commit a0e3816

Browse files
committed
fix sample app tf files and arns
1 parent 532d74c commit a0e3816

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

java/sample-apps/aws-sdk/deploy/agent/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ receivers:
5252
http:
5353
5454
exporters:
55-
logging:
55+
debug:
5656
awsxray:
5757
prometheusremotewrite:
5858
endpoint: "${aws_prometheus_workspace.test_amp_workspace[0].prometheus_endpoint}api/v1/remote_write"
@@ -68,7 +68,7 @@ service:
6868
exporters: [awsxray]
6969
metrics:
7070
receivers: [otlp]
71-
exporters: [logging, prometheusremotewrite]
71+
exporters: [debug, prometheusremotewrite]
7272
EOT
7373
filename = "config.yaml"
7474
}

nodejs/sample-apps/aws-sdk/deploy/wrapper/main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module "app" {
1414
collector_layer_arn = null
1515
sdk_layer_arn = local.architecture_to_arns_mapping[var.architecture][data.aws_region.current.name]
1616
tracing_mode = "Active"
17+
runtime = var.runtime
1718
architecture = var.architecture
1819
}
1920

nodejs/sample-apps/aws-sdk/deploy/wrapper/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ variable "architecture" {
99
description = "Lambda function architecture, either arm64 or x86_64"
1010
default = "x86_64"
1111
}
12+
13+
variable "runtime" {
14+
type = string
15+
description = "NodeJS runtime version used for sample Lambda Function"
16+
default = "nodejs18.x"
17+
}

0 commit comments

Comments
 (0)