function-urls

command
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 3 Imported by: 0

README

Lambda Function URLs example of ridgenative

It is a saying hello example on Lambda Function URLs.

$ curl -F name=shogo https://xxxxxxx.lambda-url.ap-northeast-1.on.aws/hello

RUN LOCALLY

$ go run main.go
$ curl -F name=shogo http://localhost:8080/hello
Hello shogo

Run on AWS Lambda

template.yaml is AWS Serverless Application Model template file. You can run this sample on AWS with Lambda Function URLs.

$ ./deploy.sh $YOUR_S3_BUCKET_NAME $YOUR_STACK_NAME
$ curl -F name=shogo https://$API_ID.lambda-url.$REGION.on.aws/hello
Hello shogo

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL