Giter Club home page Giter Club logo

terraform-react-s3-cloudfront-pipeline's Introduction

tfsec

Terraform CRA AWS Infrastructure

CRA app deployment via Terraform AWS S3, CloudFront, CodePipeline, CodeBuild

Prerequisite

Terraform install for Apple Silicon

Reference

    1. Remove any existing Terraform binary (/usr/bin/terraform and/or /usr/local/bin/terraform)
    1. Install m1-terraform-provider-helper
    • 2.1. brew install kreuzwerker/taps/m1-terraform-provider-helper
    1. Install Terraform
    • 3.1. brew tap hashicorp/tap
    • 3.2. brew install hashicorp/tap/terraform
    1. Install the hashicorp/template version v2.2.0
    • 4.1. m1-terraform-provider-helper activate
    • 4.2. m1-terraform-provider-helper install hashicorp/template -v v2.2.0
➜  ~ terraform --version
Terraform v1.3.1
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.33.0
+ provider registry.terraform.io/hashicorp/random v3.4.3
+ provider registry.terraform.io/hashicorp/template v2.2.0

Project

  • Create React App
    • npx create-react-app terraform-react-s3-cloudfront-pipeline --template=typescript
  • Change your App name terraform/main.tf
    • application_name = "{your app name}"
    • environment = "{app environment name}"
  • Change your repository info terraform/main.tf
    • repository_name = "{your repository}"
    • branch_name = "{your deploy branch}"
  • Change your domain terraform/main.tf
    • certificate_domain_name = "{your ACM name}" should be us-east-1 region
    • cloudfront_domain_name = "{your Domain name}"

Usage

  • cd terraform

  • terraform init

  • terraform apply

  • Check outputs

CodeStar Connection

GitHub 리포 연결을 위해서는 콘솔에서 직접 연결해야 함. CodePipeline 에서 Setting

terraform apply 이후

CodePipeline > Settings > Connections

Status = Pending 인 커넥션 선택 후 Update pending connection 으로 Github 연결

terraform-react-s3-cloudfront-pipeline's People

Contributors

eunchurn avatar renovate[bot] avatar

Watchers

 avatar

Forkers

huyplb

terraform-react-s3-cloudfront-pipeline's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): update dependency web-vitals to v4
  • fix(deps): update testing-library monorepo (major) (@testing-library/jest-dom, @testing-library/react, @testing-library/user-event)
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/tfsec.yml
  • actions/checkout v3
  • aquasecurity/tfsec-sarif-action 5d34a982aa8927c5dd8566d25ef248d526aac1f4
  • github/codeql-action v2
npm
package.json
  • @testing-library/jest-dom 5.16.5
  • @testing-library/react 13.4.0
  • @testing-library/user-event 13.5.0
  • @types/jest 27.5.2
  • @types/node 16.11.68
  • @types/react 18.0.21
  • @types/react-dom 18.0.6
  • react 18.2.0
  • react-dom 18.2.0
  • react-scripts 5.0.1
  • typescript 4.8.4
  • web-vitals 2.1.4
terraform
terraform/main.tf
terraform/modules/front_pipeline/main.tf
terraform/modules/front_web_app/frontend/certificate.tf
terraform/modules/front_web_app/main.tf

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.