Skip to content

Commit

Permalink
[chore] collector extension name contains arch (#608)
Browse files Browse the repository at this point in the history
As a result of building the collector extension for multiple architectures, the makefile now adds the arch in file name.

Signed-off-by: Alex Boten <[email protected]>
  • Loading branch information
Alex Boten authored Mar 31, 2023
1 parent f071fbb commit bf5cf4d
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions dotnet/integration-tests/aws-sdk/wrapper/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
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.zip"
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.zip")
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension-amd64.zip")
}

module "hello-lambda-function" {
Expand Down
4 changes: 2 additions & 2 deletions go/integration-tests/aws-sdk/wrapper/main.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
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.zip"
filename = "${path.module}/../../../../collector/build/collector-extension-amd64.zip"
compatible_runtimes = ["provided.al2"]
license_info = "Apache-2.0"
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension.zip")
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension-amd64.zip")
}

module "hello-lambda-function" {
Expand Down
4 changes: 2 additions & 2 deletions java/integration-tests/aws-sdk/agent/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ resource "aws_lambda_layer_version" "sdk_layer" {
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.zip"
filename = "${path.module}/../../../../collector/build/collector-extension-amd64.zip"
compatible_runtimes = ["nodejs14.x", "nodejs16.x", "nodejs18.x"]
license_info = "Apache-2.0"
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension.zip")
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension-amd64.zip")
}

module "hello-lambda-function" {
Expand Down
4 changes: 2 additions & 2 deletions java/integration-tests/aws-sdk/wrapper/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ resource "aws_lambda_layer_version" "sdk_layer" {
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.zip"
filename = "${path.module}/../../../../collector/build/collector-extension-amd64.zip"
compatible_runtimes = ["nodejs14.x", "nodejs16.x", "nodejs18.x"]
license_info = "Apache-2.0"
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension.zip")
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension-amd64.zip")
}

module "hello-lambda-function" {
Expand Down
4 changes: 2 additions & 2 deletions java/integration-tests/okhttp/wrapper/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ resource "aws_lambda_layer_version" "sdk_layer" {
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.zip"
filename = "${path.module}/../../../../collector/build/collector-extension-amd64.zip"
compatible_runtimes = ["nodejs14.x", "nodejs16.x", "nodejs18.x"]
license_info = "Apache-2.0"
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension.zip")
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension-amd64.zip")
}

module "hello-lambda-function" {
Expand Down
4 changes: 2 additions & 2 deletions nodejs/integration-tests/aws-sdk/wrapper/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ resource "aws_lambda_layer_version" "sdk_layer" {
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.zip"
filename = "${path.module}/../../../../collector/build/collector-extension-amd64.zip"
compatible_runtimes = ["nodejs14.x", "nodejs16.x", "nodejs18.x"]
license_info = "Apache-2.0"
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension.zip")
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension-amd64.zip")
}

module "hello-lambda-function" {
Expand Down
4 changes: 2 additions & 2 deletions python/integration-tests/aws-sdk/wrapper/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ resource "aws_lambda_layer_version" "sdk_layer" {
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.zip"
filename = "${path.module}/../../../../collector/build/collector-extension-amd64.zip"
compatible_runtimes = ["nodejs14.x", "nodejs16.x", "nodejs18.x"]
license_info = "Apache-2.0"
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension.zip")
source_code_hash = filebase64sha256("${path.module}/../../../../collector/build/collector-extension-amd64.zip")
}

module "hello-lambda-function" {
Expand Down

0 comments on commit bf5cf4d

Please sign in to comment.