{"id":15715255,"url":"https://github.com/crazyoptimist/terraform-s3-backend-module","last_synced_at":"2026-01-08T15:13:09.852Z","repository":{"id":118360932,"uuid":"442369670","full_name":"crazyoptimist/terraform-s3-backend-module","owner":"crazyoptimist","description":"Terraform Flat Module Implementation with AWS S3 Backend Implementation","archived":false,"fork":false,"pushed_at":"2022-01-04T17:30:54.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T22:59:02.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","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/crazyoptimist.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":"2021-12-28T06:21:47.000Z","updated_at":"2022-01-04T17:32:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"5e7aee96-e9d5-4fcd-9117-7d0e6eeb84b8","html_url":"https://github.com/crazyoptimist/terraform-s3-backend-module","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/crazyoptimist%2Fterraform-s3-backend-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fterraform-s3-backend-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fterraform-s3-backend-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyoptimist%2Fterraform-s3-backend-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyoptimist","download_url":"https://codeload.github.com/crazyoptimist/terraform-s3-backend-module/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246372741,"owners_count":20766635,"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":[],"created_at":"2024-10-03T21:40:46.511Z","updated_at":"2026-01-08T15:13:09.810Z","avatar_url":"https://github.com/crazyoptimist.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS S3 Backend Module\n\nFlat module implementation for s3 backend\n\n![image](https://user-images.githubusercontent.com/55074937/147535173-76bebe21-696e-4f4a-927c-0ff0c68d6bd6.png)\n\u003cp align=\"center\"\u003e\u003cb\u003eDetailed architecture diagram showing the four distinct components that make up this module\u003c/b\u003e\u003c/p\u003e\n\n## Usage\nDeploy your terraform backend infra securely to AWS S3 bucket\n\n```terraform\nprovider \"aws\" {\n  region = \"us-west-2\"\n}\n\nmodule \"s3backend\" {\n  source = \"git::github.com/crazyoptimist/terraform-s3-backend-module\"\n  namespace = \"crazy-team\"\n}\n\noutput \"s3backend_cofig\" {\n  value = {\n    bucket = module.s3backend.config.bucket\n    region = module.s3backend.config.region\n    role_arn = module.s3backend.config.role_arn\n    dynamodb_table = module.s3backend.config.dynamodb_table\n  }\n}\n```\n\nAfter that, use the result infra as your terraform backend like so:\n\n```terraform\nterraform {\n  backend \"s3\" {\n    bucket = BUCKET_NAME\n    key = SUB_FOLDER_NAME_YOU_LIKE\n    region = BUCKET_REGION\n    encrypt = true\n    role_arn = ROLE_ARN\n    dynamodb_table = TABLE_NAME\n  }\n  \n  required_version = \"\u003e= 1.1.2\"\n  required_providers {\n    aws = {\n      source  = \"hashicorp/aws\"\n      version = \"~\u003e 3.70\"\n    }\n  }\n}\n```\n\n## Credits\nAll the contents used in the repo are from \"Terraform in Action\" by Winkler S.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Fterraform-s3-backend-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyoptimist%2Fterraform-s3-backend-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyoptimist%2Fterraform-s3-backend-module/lists"}