Skip to content

Commit

Permalink
Merge pull request #6933 from kolanos/fix-layer-arns
Browse files Browse the repository at this point in the history
fix(Serverless): Fix AMD64 Layer ARNs
  • Loading branch information
rhetoric101 committed Apr 5, 2022
2 parents eb1933d + 7478d97 commit cb82029
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ To install it:
3. Under **Specify an ARN**, paste one of the layer ARNs for your function's architecture form the list below. Replace `{region}`with your AWS region, such as `us-east-1`.
4. Choose **Add**.

* AMD64 / X86_64: `arn:aws:lambda:{region}:901920570463:layer:aws-otel-java-agent-arm64-ver-1-11-1:1`
* AMD64 / X86_64: `arn:aws:lambda:{region}:901920570463:layer:aws-otel-java-agent-amd64-ver-1-11-1:1`
* ARM64: `arn:aws:lambda:{region}:901920570463:layer:aws-otel-java-agent-arm64-ver-1-11-1:1`

For SAM or CloudFormation templates, add this to your function's properties:
Expand All @@ -72,7 +72,7 @@ For SAM or CloudFormation templates, add this to your function's properties:
...
Layers:
# Use this if using x86_64 architecture
- !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:901920570463:layer:aws-otel-java-agent-arm64-ver-1-11-1:1
- !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:901920570463:layer:aws-otel-java-agent-amd64-ver-1-11-1:1
# Use this if using arm64 architecture
- !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:901920570463:layer:aws-otel-java-agent-arm64-ver-1-11-1:1
```
Expand Down

0 comments on commit cb82029

Please sign in to comment.