{"id":21507494,"url":"https://github.com/yhs88a/aws-oidc","last_synced_at":"2025-03-17T14:43:25.126Z","repository":{"id":263187236,"uuid":"885706728","full_name":"yhs88a/aws-oidc","owner":"yhs88a","description":"AWS oidc identity providers.","archived":false,"fork":false,"pushed_at":"2024-11-16T19:42:00.000Z","size":36,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-16T20:26:09.920Z","etag":null,"topics":["oidc","terraform","terragrunt"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yhs88a.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-09T07:06:19.000Z","updated_at":"2024-11-16T04:09:02.000Z","dependencies_parsed_at":"2024-11-20T12:47:32.397Z","dependency_job_id":null,"html_url":"https://github.com/yhs88a/aws-oidc","commit_stats":null,"previous_names":["yhs88a/aws-oidc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhs88a%2Faws-oidc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhs88a%2Faws-oidc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhs88a%2Faws-oidc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yhs88a%2Faws-oidc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yhs88a","download_url":"https://codeload.github.com/yhs88a/aws-oidc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235370468,"owners_count":18979093,"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":["oidc","terraform","terragrunt"],"created_at":"2024-11-23T20:16:13.521Z","updated_at":"2025-01-24T00:30:03.920Z","avatar_url":"https://github.com/yhs88a.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-oidc\n\n[![terragrunt action](https://github.com/yhs88a/aws-oidc/actions/workflows/terragrunt.yml/badge.svg)](https://github.com/yhs88a/aws-oidc/actions/workflows/terragrunt.yml)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)\n[![Licence: MIT](https://img.shields.io/github/license/yhs88a/aws-oidc)](https://github.com/yhs88a/aws-oidc/blob/main/LICENSE)\n\nThis repository provides a Terraform and Terragrunt setup for managing AWS infrastructure with OIDC authentication. It includes preconfigured modules and a Makefile with common commands for easy management.\n\n## Getting Started\n\nTo begin, clone the repository and review the Makefile targets for key commands.\n\n### Makefile Targets\n\nThese Makefile targets simplify Terraform and Terragrunt operations:\n\n```\ndocs      : Generate Terraform documentation\nfmt       : Format Terraform files\ninit      : Initialize Terraform\nrefresh   : Refresh Terraform state\nplan      : Plan Terraform changes\napply     : Apply Terraform changes\ndestroy   : Destroy Terraform-managed infrastructure\ntfclean   : Clean up Terraform and Terragrunt cache files\n```\n\n## Usage\n\n### Configuring S3 Backend\n\nSet up `terragrunt.hcl` for remote state storage in S3 and configure a DynamoDB table for state locking. This ensures state management is secure and avoids conflicts.\n\n#### Environment Variables\n\nThese variables control AWS credentials, endpoints, and Terraform configurations:\n\n- `AWS_DEFAULT_REGION`: AWS region to use.\n- `AWS_ACCESS_KEY_ID`: Your AWS access key for authentication.\n- `AWS_SECRET_ACCESS_KEY`: Your AWS secret key for authentication.\n- `TF_S3_ENDPOINT`: S3 endpoint for S3 backend.\n- `TF_DYNAMODB_ENDPOINT`: DynamoDB for S3 backend.\n- `TF_VAR_CI_ENVIRONMENT_NAME`: Specifies the environment (e.g., `dev`, `pre`, `prod`).\n\n#### Modules\n\nModules are located under `modules/`, e.g., the `vpc` module:\n\n- `_locals.tf`: Local values\n- `_main.tf`: Main configuration\n- `_output.tf`: Output values\n- `_variable.tf`: Variables\n- `data.tf`: Data sources\n- `default.tfvars`: Default variable values\n- `dev.tfvars`: Development environment values\n- `pre.tfvars`: Pre-production environment values\n- `prod.tfvars`: Production environment values\n- `terragrunt.hcl`: Terragrunt configuration\n\n#### Terragrunt\n\nSpecify the appropriate `tfvars` file for your environment.\n\n# License\n\nThis project is licensed under the [MIT License](/LICENSE). See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhs88a%2Faws-oidc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyhs88a%2Faws-oidc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyhs88a%2Faws-oidc/lists"}