# Lambda Function URL's

**URL:** <https://discuss.blues.com/t/lambda-function-urls/917>\
**Category:** Notehub.io\
**Created:** [July 30, 2022, 3:45pm UTC](https://discuss.blues.com/t/lambda-function-urls/917 "2022-07-30T15:45:33Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [July 30, 2022, 3:45pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/1 "2022-07-30T15:45:33Z")

</div>

When trying to connect to Lambda (Access Key) via AWS’s relatively new “Lambda function URLs”, I receive a 403 - Credentials should be scoped to correct service: ‘lambda’. What I can not tell because the notehub is forming the header, does it look something like the following (where the service is include, lambda in this case):

Credential=AKIAIOSFODNN7EXAMPLE/20120224/us-west-1/lambda/aws4\_request

---

<div class="post-metadata">

**Author:** ![bsatrom](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/bsatrom/32/3_2.png) [@bsatrom](https://discuss.blues.com/u/bsatrom)\
**Post date:** [July 30, 2022, 4:16pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/2 "2022-07-30T16:16:22Z")

</div>

Hey @JimC, you can try sending data from that route to [webhook.site](https://webhook.site) instead of AWS and you’ll be able to see the header that Notehub creates.

I hope that helps, and please let me know the result. If there’s something we need to adjust on the Notehub side, that would be good to know.

Brandon

---

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [July 30, 2022, 4:54pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/3 "2022-07-30T16:54:43Z")

</div>

Webhook is really slow, so hard for me to tell, but it seems like you are missing the service header in the request based on what I see in postman.

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [July 30, 2022, 5:34pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/4 "2022-07-30T17:34:18Z")

</div>

Usually webhook.site is really fast (meaning, as soon as an event appears in Notehub, it’s visible there only a second or two afterwards). POSTing data to webhook.site is nice because you can see the full context and headers to debug your routes:

 ![Screen Shot 2022-07-30 at 12.32.39 PM](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/1a1e1cb9b333db916ced4ac06f7c98453fa0c5af.jpeg)

---

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [August 1, 2022, 6:36pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/5 "2022-08-01T18:36:13Z")

</div>

webhook did not help much, can not see the auth header. Lambda should be part of the auth header like the following:  
Credential=Asdfsjkhjkshfjksdhfjdhf/20220801/us-east-2/lambda/aws4\_request

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [August 1, 2022, 6:56pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/6 "2022-08-01T18:56:26Z")

</div>

Hi @JimC,

Did you create the Notehub route as an “AWS” type or a “General HTTP/S Request/Response” type? I’m thinking since Lambda function URLs are dedicated HTTPS endpoints, you should try the latter. You can also specify the exact headers you need with that route type.

I am a bit ignorant of these function URLs though, so we may need to do some more research to properly support these under the “AWS” route type in Notehub.

Rob

---

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [August 7, 2022, 4:07pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/7 "2022-08-07T16:07:12Z")

</div>

The Service header needs to be set to lambda, if not, the only way to use this in an unsecured mode. Once the Service header is set, Credential (see above) will now contain the lambda service, thus avoiding the scoping error.

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [August 8, 2022, 2:35pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/8 "2022-08-08T14:35:08Z")

</div>

Got it. I’ve created an internal feature request for us to support Lambda function URLs as part of the AWS route type. Will post updates here as they come in!

Rob

---

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [August 8, 2022, 5:30pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/9 "2022-08-08T17:30:54Z")

</div>

Great

Really appreciate all the help

---

<div class="post-metadata">

**Author:** ![group1guy](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@group1guy](https://discuss.blues.com/u/group1guy)\
**Post date:** [October 24, 2022, 8:30am UTC](https://discuss.blues.com/t/lambda-function-urls/917/10 "2022-10-24T08:30:53Z")

</div>

Hi Rob, just curious about the status of this feature. I’m not sure how to manually specify the headers through the route. I tried a few things but it didn’t work.

Any tips on what to use for manually specified headers when using the Lambda function URL? Got it working without access key but obviously don’t want to use that method.

---

<div class="post-metadata">

**Author:** ![RobLauer](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/roblauer/32/1567_2.png) [@RobLauer](https://discuss.blues.com/u/RobLauer)\
**Post date:** [October 24, 2022, 8:56pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/11 "2022-10-24T20:56:19Z")

</div>

Hi @group1guy and welcome to the Blues Wireless community!

Unfortunately I don’t have an update on this feature for you just yet. We have seen this request come in multiple times though, so just know it’s on our radar for implementation.

Thanks,  
Rob

---

<div class="post-metadata">

**Author:** ![jtzemp](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jtzemp](https://discuss.blues.com/u/jtzemp)\
**Post date:** [November 29, 2022, 7:19pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/12 "2022-11-29T19:19:50Z")

</div>

Hey, @group1guy and @JimC.

We’re working on this and wanted to reach out and get your feedback on implementation before it’s solidified.

Would you be ok with the approach where we just handle the auth transparently in the backend and "Do the Right Thing"™ for you, or would you prefer to see a separate route type for AWS Lambda Function URL?

We’re just leaning towards handling it transparently, but would appreciate your feedback.

Thanks!

JT

---

<div class="post-metadata">

**Author:** ![JimC](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JimC](https://discuss.blues.com/u/JimC)\
**Post date:** [December 1, 2022, 1:44am UTC](https://discuss.blues.com/t/lambda-function-urls/917/13 "2022-12-01T01:44:23Z")

</div>

So the credentials will be stored in the hub and passed along with the correct service header?

---

<div class="post-metadata">

**Author:** ![jtzemp](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jtzemp](https://discuss.blues.com/u/jtzemp)\
**Post date:** [December 1, 2022, 5:27pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/14 "2022-12-01T17:27:14Z")

</div>

Exactly. You’ll use the same “Lambda (Access Key)” route type, add your URL, credentials and region just like normal.

Whether it’s using an AWS API gateway, or a Lambda Function URL, we send the correct header to Amazon.

 ![2022-12-01_10-23](https://us1.discourse-cdn.com/flex020/uploads/blues/original/1X/9d0a158bb6bcf3b61d671f3e1e8bcf87ad4a0f07.png)

---

<div class="post-metadata">

**Author:** ![jtzemp](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jtzemp](https://discuss.blues.com/u/jtzemp)\
**Post date:** [December 19, 2022, 6:48pm UTC](https://discuss.blues.com/t/lambda-function-urls/917/15 "2022-12-19T18:48:30Z")

</div>

Hey, JimC!

I wanted to follow up here. This feature got pushed to production a couple weeks ago. If you have a chance to check it out, I’d love to know if it works for you.

Thanks!

JT
