Coder Social home page Coder Social logo

Comments (7)

anuraaga avatar anuraaga commented on July 24, 2024 2

Thanks @twillzy for confirming. Looked into our code and found that there seems to be something wrong with the string in the docs (or more accurately our publishing which isn't matching our other language conventions)

https://github.com/aws-observability/aws-otel-lambda/blob/main/sample-apps/nodejs-aws-sdk-terraform/layer.tf#L3

The nodejs ones weren't published with the ver- string inside them. @NathanielRN @wangzlei

Can you copy from that file and try?

from aws-otel-lambda.

twillzy avatar twillzy commented on July 24, 2024 1

Thanks @anuraaga!!

This works:

aws lambda get-layer-version \
    --layer-name "arn:aws:lambda:ap-southeast-2:901920570463:layer:aws-otel-nodejs-0-23-0" \
    --version-number 1

from aws-otel-lambda.

anuraaga avatar anuraaga commented on July 24, 2024

Hi @twillzy - I wonder if you looked at the doc for the Java layer? The layer name for nodejs looks like arn:aws:lambda:\<region>:901920570463:layer:aws-otel-nodejs-ver-0-23-0:1 (ver-0-23-0, not ver-1-2-0). I couldn't find mention of ver-1-2-0 on the linked doc.

from aws-otel-lambda.

twillzy avatar twillzy commented on July 24, 2024

Screen Shot 2021-07-13 at 5 24 11 pm
Hi @anuraaga, I tried version 1-2-0 but it gives the same error.

aws lambda get-layer-version \
    --layer-name "arn:aws:lambda:ap-southeast-2:901920570463:layer:aws-otel-nodejs-ver-1-2-0" \
    --version-number 1

from aws-otel-lambda.

anuraaga avatar anuraaga commented on July 24, 2024

@twillzy Sorry I'm still not following - that screenshot shows aws-otel-nodejs-ver-0-23-0. Where are you getting the ver-1-2-0 string from?

from aws-otel-lambda.

twillzy avatar twillzy commented on July 24, 2024

@anuraaga sorry! I pasted the wrong command.

This is the one I ran.

aws lambda get-layer-version \
    --layer-name "arn:aws:lambda:ap-southeast-2:901920570463:layer:aws-otel-nodejs-ver-0-23-0" \
    --version-number 1

An error occurred (AccessDeniedException) when calling the GetLayerVersion operation: User:  is not authorized to perform: lambda:GetLayerVersion on resource: arn:aws:lambda:ap-southeast-2:901920570463:layer:aws-otel-nodejs-ver-0-23-0:1

from aws-otel-lambda.

NathanielRN avatar NathanielRN commented on July 24, 2024

@twillzy Sorry for the inconvenience and thank you for reporting this! You should be able to use the expected aws-otel-nodejs-ver-0-23-0 name now that we merged #121 🙂

from aws-otel-lambda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.