{"id":21693170,"url":"https://github.com/eunchurn/terraform-react-s3-cloudfront-pipeline","last_synced_at":"2026-05-10T10:09:22.678Z","repository":{"id":61899087,"uuid":"556124485","full_name":"eunchurn/terraform-react-s3-cloudfront-pipeline","owner":"eunchurn","description":"CRA app deployment via Terraform AWS S3, CloudFront, CodePipeline, CodeBuild","archived":false,"fork":false,"pushed_at":"2024-10-29T18:34:10.000Z","size":1071,"stargazers_count":0,"open_issues_count":11,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T20:38:05.403Z","etag":null,"topics":["aws-acm-certificate","aws-cloudfront","aws-codebuild","aws-codepipeline","aws-route53","aws-s3","create-react-app-typescript","terraform"],"latest_commit_sha":null,"homepage":"https://eunchurn.github.io/terraform-react-s3-cloudfront-pipeline/","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/eunchurn.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-10-23T05:23:23.000Z","updated_at":"2022-12-14T00:43:17.000Z","dependencies_parsed_at":"2024-02-07T20:26:50.576Z","dependency_job_id":"7a5a651c-dba7-476b-a600-5ded3948e630","html_url":"https://github.com/eunchurn/terraform-react-s3-cloudfront-pipeline","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eunchurn%2Fterraform-react-s3-cloudfront-pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eunchurn%2Fterraform-react-s3-cloudfront-pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eunchurn%2Fterraform-react-s3-cloudfront-pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eunchurn%2Fterraform-react-s3-cloudfront-pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eunchurn","download_url":"https://codeload.github.com/eunchurn/terraform-react-s3-cloudfront-pipeline/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244623441,"owners_count":20483142,"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-acm-certificate","aws-cloudfront","aws-codebuild","aws-codepipeline","aws-route53","aws-s3","create-react-app-typescript","terraform"],"created_at":"2024-11-25T18:18:44.275Z","updated_at":"2026-05-10T10:09:22.609Z","avatar_url":"https://github.com/eunchurn.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![tfsec](https://github.com/eunchurn/terraform-react-s3-cloudfront-pipeline/actions/workflows/tfsec.yml/badge.svg)](https://github.com/eunchurn/terraform-react-s3-cloudfront-pipeline/actions/workflows/tfsec.yml)\n\n# Terraform CRA AWS Infrastructure\n\nCRA app deployment via Terraform AWS S3, CloudFront, CodePipeline, CodeBuild\n\n- [Show Infra Graph](https://eunchurn.github.io/terraform-react-s3-cloudfront-pipeline/)\n\n- [Blog post](https://www.eunchurn.com/blog/development/2022-10-23-tWIL)\n## Prerequisite\n\n- NodeJS 16\n- [Terraform](https://learn.hashicorp.com/tutorials/terraform/install-cli)\n\n### Terraform install for Apple Silicon\n\n[Reference](https://discuss.hashicorp.com/t/template-v2-2-0-does-not-have-a-package-available-mac-m1/35099/4)\n\n- 1. Remove any existing Terraform binary (/usr/bin/terraform and/or /usr/local/bin/terraform)\n- 2. Install [m1-terraform-provider-helper](https://github.com/kreuzwerker/m1-terraform-provider-helper)\n  - 2.1. `brew install kreuzwerker/taps/m1-terraform-provider-helper`\n- 3. Install Terraform\n  - 3.1. `brew tap hashicorp/tap`\n  - 3.2. `brew install hashicorp/tap/terraform`\n- 4. Install the hashicorp/template version v2.2.0\n  - 4.1. `m1-terraform-provider-helper activate`\n  - 4.2. `m1-terraform-provider-helper install hashicorp/template -v v2.2.0`\n\n```\n➜  ~ terraform --version\nTerraform v1.3.1\non darwin_arm64\n+ provider registry.terraform.io/hashicorp/aws v4.33.0\n+ provider registry.terraform.io/hashicorp/random v3.4.3\n+ provider registry.terraform.io/hashicorp/template v2.2.0\n```\n### Project\n\n- Create React App \n  - `npx create-react-app terraform-react-s3-cloudfront-pipeline --template=typescript`\n- Change your App name `terraform/main.tf`\n  - `application_name = \"{your app name}\"`\n  - `environment = \"{app environment name}\"`\n- Change your repository info `terraform/main.tf`\n  - `repository_name = \"{your repository}\"`\n  - `branch_name = \"{your deploy branch}\"`\n- Change your domain `terraform/main.tf`\n  - `certificate_domain_name = \"{your ACM name}\"` should be `us-east-1` region\n  - `cloudfront_domain_name = \"{your Domain name}\"`\n\n## Usage\n\n- `cd terraform`\n- `terraform init`\n- `terraform apply`\n\n- Check outputs\n\n## CodeStar Connection\n\nGitHub 리포 연결을 위해서는 콘솔에서 직접 연결해야 함. CodePipeline 에서 Setting\n\n`terraform apply` 이후\n\nCodePipeline \u003e Settings \u003e Connections\n\nStatus = Pending 인 커넥션 선택 후 `Update pending connection` 으로 Github 연결\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feunchurn%2Fterraform-react-s3-cloudfront-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feunchurn%2Fterraform-react-s3-cloudfront-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feunchurn%2Fterraform-react-s3-cloudfront-pipeline/lists"}