{"id":18368847,"url":"https://github.com/rpstreef/tf-cognito","last_synced_at":"2026-04-30T15:31:11.576Z","repository":{"id":44098013,"uuid":"241031475","full_name":"rpstreef/tf-cognito","owner":"rpstreef","description":"Terraform AWS Cognito module with support for Identity Federation via Google or Facebook, and Lambda triggers.","archived":false,"fork":false,"pushed_at":"2021-06-04T07:27:27.000Z","size":87,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T21:16:32.092Z","etag":null,"topics":["aws","cognito","cognito-identity-pool","cognito-user-pool","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rpstreef.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":"2020-02-17T06:01:33.000Z","updated_at":"2022-07-08T14:27:08.000Z","dependencies_parsed_at":"2022-09-01T13:42:29.977Z","dependency_job_id":null,"html_url":"https://github.com/rpstreef/tf-cognito","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/rpstreef/tf-cognito","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpstreef%2Ftf-cognito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpstreef%2Ftf-cognito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpstreef%2Ftf-cognito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpstreef%2Ftf-cognito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rpstreef","download_url":"https://codeload.github.com/rpstreef/tf-cognito/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpstreef%2Ftf-cognito/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32469344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","cognito","cognito-identity-pool","cognito-user-pool","terraform","terraform-module"],"created_at":"2024-11-05T23:27:39.647Z","updated_at":"2026-04-30T15:31:11.561Z","avatar_url":"https://github.com/rpstreef.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS Cognito module\n\n## About:\n\nCreates a basic AWS Cognito setup with a mandatory 8 character long password policy and dynamic schema support.\n\nPlease note the variable ```ignore_changes``` in the ```./main.tf``` file is used to prevent re-deployments from occurring. \n\nThere's no built in support yet for;\n\n- SNS Email sending and template, instead it uses the built in email support with sending limitations.\n- SMS sending\n\n## How to use:\n\nTo add a Federation, provide the ``identity_provider_map`` with the appropriate configuration for the supported Fedartion, in this case, Google.\n\nTo then enable that login provider for your Cognito identity pool, add ``supported_login_providers`` configuration.\n\n```terraform\nmodule \"cognito\" {\n  source = \"../../modules/cognito\"\n\n  namespace         = var.namespace\n  resource_tag_name = var.resource_tag_name\n  region            = var.region\n\n  cognito_identity_pool_name     = var.cognito_identity_pool_name\n  cognito_identity_pool_provider = var.cognito_identity_pool_provider\n\n  # User Pool Client Configuration\n  allowed_oauth_flows          = [ \"implicit\" ]\n  allowed_oauth_scopes         = [ \"aws.cognito.signin.user.admin\" ]\n  callback_urls                = [ \"https://google.com\" ]\n  supported_identity_providers = [ \"Google\" ]\n\n  supported_login_providers = {\n    \"accounts.google.com\" = \"dfsfsf.apps.googleusercontent.com\"\n  }\n\n  identity_provider_map = {\n    google = {\n      provider_name    = \"Google\"\n      provider_type    = \"Google\"\n      authorize_scopes = \"email\"\n      client_id        = \"dfsfsf.apps.googleusercontent.com\"\n      client_secret    = \"sdfsfasdfafsafsafsfsdf\"\n\n      attribute_mapping = {\n        email    = \"email\"\n        username = \"sub\"\n      }\n    }\n\n  schema_map = [\n    {\n      name                = \"email\"\n      attribute_data_type = \"String\"\n      mutable             = false\n      required            = true\n    },\n    {\n      name                = \"phone_number\"\n      attribute_data_type = \"String\"\n      mutable             = false\n      required            = true\n    }\n  ]\n}\n```\n\n## Changelog\n\n### v1.6\n - Added \"cognito_module_enabled\", default set to true.\n - Changed output to display whole resource objects created\n\n### v1.5\n - Added custom Domain support for hosted domains.\n\n### v1.4\n  - Added email configuration options with default or SES\n  - Added user pool client variables to support identity federation configuration.\n    - Note that ``explicit_auth_flows`` with prefix 'ALLOW' cannot be used with ``LEGACY`` ``prevent_user_existence_errors`` configuration.\n\n### v1.3\n  - updated new to Terraform standards\n  - added Federated login support with an example; Google.\n  - added all Lambda triggers, provide the appropriate Lambda ARN to enable.\n  - Added lifecycle ignores to prevent continuous changes on resources; \n    - ``provider_details`` for resource; ``aws_cognito_identity_provider``\n    - ``lambda_config`` for resource; ``aws_cognito_user_pool``\n\n### v1.2\n - Added mail template variables (cognito based emails)\n - Verify by Link or code variable\n\n### v1.1\n - Added ignore on ``password_policy[0].temporary_password_validity_days``\n \n### v1.0\n - Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpstreef%2Ftf-cognito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frpstreef%2Ftf-cognito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpstreef%2Ftf-cognito/lists"}