{"id":19208617,"url":"https://github.com/heiwa4126/sam-lambda-urls1","last_synced_at":"2025-09-19T12:14:17.076Z","repository":{"id":39442414,"uuid":"479264365","full_name":"heiwa4126/sam-lambda-urls1","owner":"heiwa4126","description":"AWS Lambda Function URLsの最初のサンプル。とりあえず認証なし、CORSなしで。","archived":false,"fork":false,"pushed_at":"2022-06-24T08:57:50.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T07:16:32.592Z","etag":null,"topics":["aws-sam","example","lambda-function-urls"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heiwa4126.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-08T06:02:40.000Z","updated_at":"2022-04-08T06:04:05.000Z","dependencies_parsed_at":"2022-09-08T04:50:32.452Z","dependency_job_id":null,"html_url":"https://github.com/heiwa4126/sam-lambda-urls1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heiwa4126/sam-lambda-urls1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-lambda-urls1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-lambda-urls1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-lambda-urls1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-lambda-urls1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heiwa4126","download_url":"https://codeload.github.com/heiwa4126/sam-lambda-urls1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heiwa4126%2Fsam-lambda-urls1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275935038,"owners_count":25555525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-19T02:00:09.700Z","response_time":108,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-sam","example","lambda-function-urls"],"created_at":"2024-11-09T13:27:11.974Z","updated_at":"2025-09-19T12:14:17.026Z","avatar_url":"https://github.com/heiwa4126.png","language":"Python","readme":"# sam-lambda-urls1\n\n[AWS Lambda Function URLs](https://aws.amazon.com/jp/blogs/aws/announcing-aws-lambda-function-urls-built-in-https-endpoints-for-single-function-microservices/)\nの最初のサンプル。\n\nとりあえず認証なし、CORSなしで。Lambda本体はpython 3.8\n\n\n# デプロイ\n\n```sh\nsam build\nsam deploy --guided  # --guidedは最初の1回だけ\n```\n\n設定値はデフォルトでいいです。\n\n\n# テスト\n\nstackのoutputの `HelloWorldFunctionUrl` をcurlで呼んでください。\n\n実行例:\n```\n$ curl https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.lambda-url.ap-northeast-1.on.aws/\n{\"body\": \"hello world\\n\"}\n```\n\n\n# スタックの削除\n\n```sh\nsam delete --no-prompts\n```\nで消えます。\nいま認証なしなんで、動作確認したらさっさと消したほうがいいと思います。\n\n\n# メモ\n\nまだ AWS::Lambda::Url リソースのドキュメントがないけど、\nURLのアトリビュートは .FunctionUrl でした。\n\n## 追記(2022-04-11)\n\nドキュメント出た。\n[AWS::Lambda::Url - AWS CloudFormation](https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-url.html)\n\nAuthTypeについては\n[Security and auth model for Lambda function URLs - AWS Lambda](https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/urls-auth.html)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Fsam-lambda-urls1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheiwa4126%2Fsam-lambda-urls1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheiwa4126%2Fsam-lambda-urls1/lists"}