Giter VIP home page Giter VIP logo

isucon-aws-terraform's Introduction

isucon-aws-terraform

これはなに?

ISUCON環境をAWS EC2へ構築するためのTerraformモジュール郡です。

詳細と利用方法を記載した記事ページ

https://qiita.com/momotaro98/items/24cec11fc050c014057f

設定する必要がある項目

EC2へのSSH用Key生成とPublic Keyの設定

専用鍵がなければ以下のようにして鍵を生成する。

ssh-keygen -t rsa -b 4096 -C "isucon key" -f isucon_id_rsa

公開鍵をisucon_id_rsa.pubの名前で以下の場所に置く。

modules/credential/isucon_id_rsa.pub

terraformで構築後、以下のような設定でEC2へSSHできる。

~/.ssh/config

Host isucon-practice-ec2
  HostName your_EC2_public_name
  Port 22
  User ubuntu
  IdentityFile ~/.ssh/isucon_id_rsa
  IdentitiesOnly yes
  RequestTTY yes
  RemoteCommand sudo su - isucon

login

ssh isucon-practice-ec2
isucon@ip-10-2-0-25:~$ ls
bench  env.sh  go  local  webapp

パラメータ設定

ファイルの優先順位

  1. terraform.tfvars.json => .gitignoreしていますので、利用者がファイルをローカル上で作成する必要があります。
  2. variables.tf => デフォルト値を指定しています。

パラメータ設定マニュアル

こちらを参照してください。

Run terraform

初回

terraform init

初回以降

terraform plan
terraform apply
terraform destroy

ファイルフォーマット、バリデーション

terraform fmt -recursive
terraform validate

isucon-aws-terraform's People

Contributors

momotaro98 avatar nogut0123 avatar tyabu12 avatar

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.