Skip to content

Commit

Permalink
fix sample app tf files and arns
Browse files Browse the repository at this point in the history
  • Loading branch information
vasireddy99 committed Jan 6, 2025
1 parent 532d74c commit a0e3816
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/sample-apps/aws-sdk/deploy/agent/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ receivers:
http:
exporters:
logging:
debug:
awsxray:
prometheusremotewrite:
endpoint: "${aws_prometheus_workspace.test_amp_workspace[0].prometheus_endpoint}api/v1/remote_write"
Expand All @@ -68,7 +68,7 @@ service:
exporters: [awsxray]
metrics:
receivers: [otlp]
exporters: [logging, prometheusremotewrite]
exporters: [debug, prometheusremotewrite]
EOT
filename = "config.yaml"
}
Expand Down
1 change: 1 addition & 0 deletions nodejs/sample-apps/aws-sdk/deploy/wrapper/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module "app" {
collector_layer_arn = null
sdk_layer_arn = local.architecture_to_arns_mapping[var.architecture][data.aws_region.current.name]
tracing_mode = "Active"
runtime = var.runtime
architecture = var.architecture
}

Expand Down
6 changes: 6 additions & 0 deletions nodejs/sample-apps/aws-sdk/deploy/wrapper/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ variable "architecture" {
description = "Lambda function architecture, either arm64 or x86_64"
default = "x86_64"
}

variable "runtime" {
type = string
description = "NodeJS runtime version used for sample Lambda Function"
default = "nodejs18.x"
}

0 comments on commit a0e3816

Please sign in to comment.