You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
AWSのリソース構成をServerspecのようにテストできる "awspec" をつくりました。 github.com 例えばEC2インスタンスであれば、以下のように書けます。 describe ec2('my-ec2') do it { should exist } it { should be_running } it { should_not be_stopped } its(:instance_id) { should eq 'i-ec12345a' } its(:private_ip_address) { should eq '10.0.1.1' } it { should have_security_group('my-security-group-name') } it { should belong_to_vpc('my-vpc') } it { should belon
やってること ec2のipを動的に取得 取得したipに対し、Serverspecを実行するtaskを動的に定義 上記のtaskを全て実行するtaskを定義 awsのaccess key情報が環境変数で指定されてない場合、ec2の情報を取得しない 前提及び筆者の環境 aws-sdkはv1を使用 vagrantというホストに対して実行するspecが予め存在している $ ls -la spec -rw-r--r-- 1 nekogeruge staff 640 2 16 14:34 spec_helper.rb drwxr-xr-x 4 nekogeruge staff 136 1 13 17:42 vagrant ec2に実行するspecはvagrantと同じものを使用する Serverspecを実行したいインスタンスには、踏み台サーバを介した多段sshを使用して接続しており、下記のような.s
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く