I was wondering about AWS Lambda Function URLs, i...
# typescript
b
I was wondering about AWS Lambda Function URLs, in this post https://www.pulumi.com/blog/lambda-urls-launch/ it says it’s that you need to use the function ID as part of the URL. What I’m looking to do is to have a Lambda w/Function URL and have some other service call it over HTTP and it will not know the function ID when starting. am I missing something here? if this was a public API, I’d use DNS for this… does this mean I have to use the SDK to invoke it or something like that?
b
Can you export the url as an output of the stack and access it that way?
It’s not the function ID it’s a “url id” https://docs.aws.amazon.com/lambda/latest/dg/urls-configuration.html
b
I can export it, but I would have to find a way to add this as config to this other service 🤔
b
Yes you would need to, but that would be the same if you needed to know a dns name. You’d either have to hard code it or add it to config somewhere. How are you deploying your other service?
b
they’re two different repos and running their own CI pipelines.
I guess it’s like you said, I’d just have to make sure the Lambda is deployed and then get the config from the export.