okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
752 stars 94 forks source link

Identify the service by URL #201

Open jiw-mh opened 1 month ago

jiw-mh commented 1 month ago

Function URLs for lambdas look like: {function}.lambda-url.{region}.on.aws. To execute it the service needs to be lambda and the region needs to be set. Instead of using --region {region} --service lambda ... it seems like awscurl could identify that the default service for a .on.aws url is lambda and take the {region} out of the url as well.

okigan commented 4 weeks ago

@jiw-mh it probably could work, I'd happy to have a look if you'd make a PR proposal.