Slide 29
Slide 29 text
Rspec sample
Rspec ͷ before ۟Ͱ moto-server ΛݺͿ͜ͱͩͬͯग़དྷ·͢.
describe 'MyEc2' do
before(:all) do
@output, @input = PTY.spawn("moto_server ec2")
client = Aws::EC2::Client.new(region: 'us-west-2',
endpoint: 'http://127.0.0.1:5000',
profile: 'mock_profile')
res = client.run_instances({ image_id: 'ami-20d1c544', min_count: 3, max_count: 3 })
@instance_ids = res.instances.map { |instance| instance.instance_id }
...
29 JAWS-UGԬɿRebootˌ4ɺߥ͞ΜͱAWSͷΛͯ͠ΈͨΓ JAWS DAYS ࢀՃऀ͔ΒΛ͖͍ͯΈͨΓ͠Α͏