Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

tmknom/deprecated-aws-infrastructure

Repository files navigation

aws-infrastructure

コマンドチートシート

SSHアクセス

ssh -l <user_name> -i <key_path> -p <port> <ip_address>

itamae

baseロール

itamae ssh configuration/roles/base.rb -u ec2-user -p 22 -i ~/.ssh/aws/initialize.pem -h <ip_address>

railsロール

itamae ssh configuration/roles/rails.rb -u ec2-user -p <port>> -i ~/.ssh/aws/initialize.pem -h <ip_address>

Serverspec

パスワード聞いてほしい場合

ASK_SUDO_PASSWORD=true \
PORT=<port> \
USER=<user_name> \
KEY_PATH=<key_path> \
ROLE=<role> \
HOST_IP=<ip_address> \
bundle exec rake spec

パスワードを直接渡す場合

SUDO_PASSWORD=xxxx \
PORT=<port> \
USER=<user_name> \
KEY_PATH=<key_path> \
ROLE=<role> \
HOST_IP=<ip_address> \
bundle exec rake spec

インストール

$ git cloen git@github.com:tmknom/aws-infrastructure.git
$ cd aws-infrastructure
$ make

Bundler管理ライブラリ

  • Itamae
  • Serverspec

pip管理ライブラリ

  • AWS CLI
  • Fabric

初期セットアップ

依存ツール

  • Ruby >= 2.3.0
  • Bundler >= 1.11.2
  • Python >= 2.7.11
  • pip >= 8.1.1
  • terraform >= 0.6.15

設計ドキュメント

About

AWSのインフラを自動構築するスクリプト群

Resources

Stars

Watchers

Forks

Packages

No packages published