{"id":16089697,"url":"https://github.com/leonelgalan/cdk-unauthenticated-demo","last_synced_at":"2025-10-09T08:07:34.753Z","repository":{"id":145977142,"uuid":"450918820","full_name":"leonelgalan/cdk-unauthenticated-demo","owner":"leonelgalan","description":"A `LambdaRestApi` with unauthenticated access.","archived":false,"fork":false,"pushed_at":"2022-01-23T19:15:16.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-11T13:23:25.476Z","etag":null,"topics":["aws-apigateway","aws-identity-pool","aws-lambda","aws-sdk-js","aws-sdk-js-v3","cdk","cdk-examples"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/leonelgalan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-22T19:43:43.000Z","updated_at":"2022-01-22T19:46:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"e30768e1-30f0-4dd7-8420-92d90d88b2b4","html_url":"https://github.com/leonelgalan/cdk-unauthenticated-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelgalan%2Fcdk-unauthenticated-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelgalan%2Fcdk-unauthenticated-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelgalan%2Fcdk-unauthenticated-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonelgalan%2Fcdk-unauthenticated-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonelgalan","download_url":"https://codeload.github.com/leonelgalan/cdk-unauthenticated-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247363931,"owners_count":20927030,"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","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-apigateway","aws-identity-pool","aws-lambda","aws-sdk-js","aws-sdk-js-v3","cdk","cdk-examples"],"created_at":"2024-10-09T14:05:17.167Z","updated_at":"2025-10-09T08:07:29.735Z","avatar_url":"https://github.com/leonelgalan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Stack\n\n- An _Identity Pool_ with \"Allow unauthenticated identities\"\n- An _Unauthenticated_ role, to be assumed by unauthenticated identities.\n- A `LambdaRestAPI` with a single `ANY` method on root authorized by IAM.\n- A _Policy_ that allows _Unauthenticated_ to execute that single endpoint.\n\n## Tooling\n- CDK:\n  - [AWS CDK v2](https://docs.aws.amazon.com/cdk/v2/guide/home.html)\n- Client\n  - [AWS SDK for JavaScript v3](https://github.com/aws/aws-sdk-js-v3):\n    - `GetIdCommand`\n    - `GetCredentialsForIdentityCommand`\n  - [Axios](https://github.com/axios/axios) and [aws4](https://github.com/mhart/aws4)\n\n## Setup\n\n```sh\nnpm install\ncdk bootstrap\nnpm run deploy\nnpm run client\n```\n\n### Notes\n\n- `npm run deploy` instead of `cdk deploy` to run the `\"postdeploy\"` script. This will read the outputs and write them into the _.env_ file.\n- The **client** is a demo on how to retrieve the identity and credentials to call the API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonelgalan%2Fcdk-unauthenticated-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonelgalan%2Fcdk-unauthenticated-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonelgalan%2Fcdk-unauthenticated-demo/lists"}