{"id":21258370,"url":"https://github.com/josgard94/cognitolab","last_synced_at":"2026-05-20T03:34:50.251Z","repository":{"id":65307097,"uuid":"544751807","full_name":"josgard94/cognitolab","owner":"josgard94","description":"This repository content a template for cloudForm, that allow build the following services: s3 bucket, api gateway and cognito user pool. In another hand, this template show a example  the how to use a authorization based an token genereted by cognito ","archived":false,"fork":false,"pushed_at":"2023-01-19T07:20:32.000Z","size":171,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T21:35:04.486Z","etag":null,"topics":["awe-cognito-service","aws","aws-apigateway","aws-cloudformation","aws-cloudformation-templates","aws-iam-roles","aws-lambda","aws-s3","aws-serverless","aws-services"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josgard94.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-03T06:51:22.000Z","updated_at":"2022-10-13T15:57:36.000Z","dependencies_parsed_at":"2023-02-10T21:00:28.668Z","dependency_job_id":null,"html_url":"https://github.com/josgard94/cognitolab","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/josgard94%2Fcognitolab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josgard94%2Fcognitolab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josgard94%2Fcognitolab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josgard94%2Fcognitolab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josgard94","download_url":"https://codeload.github.com/josgard94/cognitolab/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243692786,"owners_count":20332265,"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":["awe-cognito-service","aws","aws-apigateway","aws-cloudformation","aws-cloudformation-templates","aws-iam-roles","aws-lambda","aws-s3","aws-serverless","aws-services"],"created_at":"2024-11-21T04:08:34.642Z","updated_at":"2026-05-20T03:34:50.246Z","avatar_url":"https://github.com/josgard94.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cognitolab\n\nThis repository contains a CloudFormation template that allows you to deploy the following AWS services:\n\n- **Amazon S3 Bucket**\n- **Amazon API Gateway**\n- **Amazon Cognito User Pool**\n\nIt also includes an example demonstrating how to secure an API using token-based authorization powered by Amazon Cognito.\n\n## 🚀 Features\n\n- Automated infrastructure deployment with CloudFormation\n- Seamless integration between Cognito and API Gateway\n- Token-based authentication using JWTs\n- Serverless Framework configuration\n\n## 🧰 Technologies Used\n\n- AWS CloudFormation\n- AWS API Gateway\n- AWS Cognito\n- AWS Lambda\n- Serverless Framework\n- Node.js / Python\n\n## 📦 Project Structure\n\n```\n├── common/ # Shared resources (IAM roles, policies, etc.)\n├── resources/ # CloudFormation resource definitions\n├── scripts/ # Helper scripts\n├── services/ # Lambda function code\n├── serverless.yml # Serverless Framework configuration\n├── package.json # Project dependencies\n└── README.md # This file\n```\n\n## 🔧 Prerequisites\n\n- An AWS account with necessary permissions\n- Node.js \u003e= 14.x\n- [Serverless Framework](https://www.serverless.com/framework/docs/getting-started) installed globally\n\n```bash\nnpm install -g serverless\n```\n1. 🚀 Deployment\n   ```\n   Install dependencies:\n   ```\n2. Deploy the stack using Serverless:\n   ```\n   sls deploy\n   ```\n3. After deployment, you will receive the API Gateway endpoint URL protected by Cognito.\n\n## 🔐 Authentication\nThis project uses Amazon Cognito for authentication and API protection. To access protected endpoints:\n\n1. Register a new user in the Cognito User Pool.\n2. Authenticate the user and retrieve a JWT token.\n3. Use the token in the Authorization header when making requests to the API.\n\n## ⭐ Like this project?\nStar it if you found it useful ⭐ and feel free to contribute!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosgard94%2Fcognitolab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosgard94%2Fcognitolab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosgard94%2Fcognitolab/lists"}