aws-otel-lambda icon indicating copy to clipboard operation
aws-otel-lambda copied to clipboard

Publish layer to more regions

Open DewaldDeJager opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. I can't use the official layer in my Lambda functions because it is not published in the af-south-1 region. The problem is even worse for the ARM64 layer as it is published to fewer regions

Describe the solution you'd like

  1. Publish the official AMD64 layer to these regions:
  • af-south-1
  • eu-south-1
  1. Publish the official ARM64 layer to these regions:
  • us-west-1
  • eu-west-3
  • eu-north-1
  • eu-south-1
  • ca-central-1
  • af-south-1
  • sa-east-1

Describe alternatives you've considered

  1. Build from source and publish as a custom layer
  2. Publish a copy of an official layer in another region as a custom layer in the desired region

To publish a copy of the official layer as a custom layer:

  1. Get the S3 URL for the custom layer
  2. Get the ARN for the custom layer in a supported region - AMD64: arn:aws:lambda:us-east-1:901920570463:layer:aws-otel-nodejs-amd64-ver-1-6-0:1 - ARM64: arn:aws:lambda:us-east-1:901920570463:layer:aws-otel-nodejs-arm64-ver-1-6-0:1
  3. Get the S3 URL for the layer: aws --region us-east-1 lambda get-layer-version-by-arn --arn <arn> --query Content.Location --output text
  4. Download the layer: curl -o layer.zip <url>
  5. Publish the layer in your own account in the desired region: aws --region <desired-region> lambda publish-layer-version --layer-name "aws-otel-nodejs-<arch>" --compatible-runtimes nodejs12.x nodejs14.x nodejs16.x --compatible-architectures <arch> --zip-file fileb://layer.zip

DewaldDeJager avatar Sep 22 '22 07:09 DewaldDeJager

Is it possible to publish layer to cn-north-1 region also?

garyzhuosim avatar Oct 11 '22 02:10 garyzhuosim

Thank you for creating this issue, we are currently working on to support more regions and shall update the correspondence here with any developments.

vasireddy99 avatar Oct 24 '22 17:10 vasireddy99

Please find the supported regions for ADOT Lambda Layers for amd64 and arm64

vasireddy99 avatar Jan 18 '23 18:01 vasireddy99

This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled

github-actions[bot] avatar Apr 23 '23 20:04 github-actions[bot]

This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled

This issue is still relevant. Thanks!

DewaldDeJager avatar Apr 24 '23 06:04 DewaldDeJager

This issue is stale because it has been open 90 days with no activity. If you want to keep this issue open, please just leave a comment below and auto-close will be canceled

github-actions[bot] avatar Jul 23 '23 20:07 github-actions[bot]

This issue was closed because it has been marked as stale for 30 days with no activity.

github-actions[bot] avatar Aug 27 '23 20:08 github-actions[bot]