Skip to content

chore(cdk): Update ADOT Lambda Layer ARNS - v0.117.0 #34630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

vasireddy99
Copy link
Contributor

@vasireddy99 vasireddy99 commented Jun 4, 2025

Reason for this change

Update the fact tables and tests for lambda layers v0.115.0

aws-observability/aws-otel-lambda#1111

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added valued-contributor [Pilot] contributed between 6-12 PRs to the CDK p2 labels Jun 4, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team June 4, 2025 20:29
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter fails with the following errors:

❌ The first word of the pull request title should not be capitalized. If the title starts with a CDK construct, it should be in backticks "``".

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

@vasireddy99 vasireddy99 changed the title chore(cdk) Update ADOT Lambda Layer ARNS - v0.117.0 chore(cdk): Update ADOT Lambda Layer ARNS - v0.117.0 Jun 4, 2025
@@ -1249,6 +1249,44 @@ export const PARAMS_AND_SECRETS_LAMBDA_LAYER_ARNS: { [version: string]: { [arch:
};

const ADOT_LAMBDA_LAYER_JAVA_SDK_ARNS: { [version: string]: { [arch: string]: { [region: string]: string } } } = {
'1.32.0-2': {
x86_64: {
'ap-northeast-1': 'arn:aws:lambda:ap-northeast-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-32-0:6',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of hardcoding each one, it would be better to write a function which prepares the ARN based on the region, platform, and version. This will significantly reduce the risk of typos/copy-paste errors and make that URL preparation function testable as well.

It is not necessary to change all the existing URLs to use the function, but for anything we add going forward, I would recommend this approach.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, we would need invest some time, but certainly will take this consideration for future.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great if the change can be made in the current PR. The function should be quite straightforward to write and test.

The current change leaves a lot of scope for errors, both from the contributor and the reviewer, since it is not feasible to verify that every single ARN is correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

'ap-south-1': 'arn:aws:lambda:ap-south-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-32-0:6',
'ap-southeast-1': 'arn:aws:lambda:ap-southeast-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-32-0:6',
'ap-southeast-2': 'arn:aws:lambda:ap-southeast-2:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-32-0:6',
'ca-central-1': 'arn:aws:lambda:ca-central-1:901920570463:layer:aws-otel-java-wrapper-amd64-ver-1-32-0:6',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is the :6 part of this ARN determined? I see the ARNs on aws-observability/aws-otel-lambda#1111, but it's not clear if there is a deterministic way to determine this part.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is because of the layer published with the same name aws-otel-java-wrapper-amd64-ver-1-32-0 for the past new releases but not necessarily a defined to determine, since we haven't bumped our sdk instrumentation version. we publish the layer arn's that are actively tested in our canaries.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we haven't bumped our sdk instrumentation version. we publish the layer arn's that are actively tested in our canaries.

Once the SDK instrumentation version is bumped, will the ARNs be updated? Just trying to understand if the current setup is temporary or long-term.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the sdk instrumentation version will be bumped along with the ARNs.

@vishaalmehrishi vishaalmehrishi self-assigned this Jun 10, 2025
@vasireddy99 vasireddy99 force-pushed the update115 branch 4 times, most recently from 739e5dc to d574e1d Compare June 11, 2025 02:57
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 86fccd5
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@aws-cdk-automation
Copy link
Collaborator

This PR has been in the CHANGES REQUESTED state for 3 weeks, and looks abandoned. Note that PRs with failing linting check or builds are not reviewed, please ensure your build is passing

To prevent automatic closure:

  • Resume work on the PR
  • OR request an exemption by adding a comment containing 'Exemption Request' with justification e.x "Exemption Request: "
  • OR request clarification by adding a comment containing 'Clarification Request' with a question e.x "Clarification Request: "

This PR will automatically close in 14 days if no action is taken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 valued-contributor [Pilot] contributed between 6-12 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants