Sha256: 4c50a786ed7b4717446d4f4a44ad3cb40b190e26adc70359dae524b8a0712d35

Contents?: true

Size: 1.56 KB

Versions: 198

Compression:

Stored size: 1.56 KB

Contents

Aws.config[:ec2] = {
  stub_responses: {
    describe_instances: {
      reservations: [
        {
          instances: [
            {
              instance_id: 'i-ec12345a',
              image_id: 'ami-abc12def',
              vpc_id: 'vpc-ab123cde',
              subnet_id: 'subnet-1234a567',
              public_ip_address: '123.0.456.789',
              private_ip_address: '10.0.1.1',
              instance_type: 't2.small',
              state: {
                name: 'running'
              },
              security_groups: [
                {
                  group_id: 'sg-1a2b3cd4',
                  group_name: 'my-security-group-name'
                }
              ],
              block_device_mappings: [
                {
                  device_name: '/dev/sda',
                  ebs: {
                    volume_id: 'vol-123a123b'
                  }
                }
              ],
              tags: [
                {
                  key: 'Name',
                  value: 'my-ec2'
                }
              ]
            }
          ]
        }
      ]
    },
    describe_volumes: {
      volumes: [
        {
          volume_id: 'vpc-ab123cde',
          state: 'in-use',
          size: 100,
          volume_type: 'gp2',
          attachments: [
            {
              instance_id: 'i-ec12345a',
              volume_id: 'vpc-ab123cde',
              state: 'attached'
            }
          ],
          tags: [
            {
              key: 'Name',
              value: 'my-volume'
            }
          ]
        }
      ]
    }
  }
}

Version data entries

198 entries across 198 versions & 4 rubygems

Version Path
awspec-0.87.0 lib/awspec/stub/ebs.rb
awspec-0.86.0 lib/awspec/stub/ebs.rb
cmonson_2ndwatch_awspec-0.85.4 lib/awspec/stub/ebs.rb
awspec-0.85.3 lib/awspec/stub/ebs.rb
cmonson_2ndwatch_awspec-0.85.3 lib/awspec/stub/ebs.rb
awspec-0.85.2 lib/awspec/stub/ebs.rb
awspec-0.85.1 lib/awspec/stub/ebs.rb
awspec-0.85.0 lib/awspec/stub/ebs.rb
awspec-0.84.1 lib/awspec/stub/ebs.rb
awspec-0.84.0 lib/awspec/stub/ebs.rb
awspec-0.83.0 lib/awspec/stub/ebs.rb
awspec-0.82.3 lib/awspec/stub/ebs.rb
awspec-0.82.2 lib/awspec/stub/ebs.rb
awspec-0.82.1 lib/awspec/stub/ebs.rb
awspec-0.82.0 lib/awspec/stub/ebs.rb
awspec-0.81.1 lib/awspec/stub/ebs.rb
awspec-0.81.0 lib/awspec/stub/ebs.rb
awspec-0.80.1 lib/awspec/stub/ebs.rb
awspec-0.80.0 lib/awspec/stub/ebs.rb
awspec-0.79.2 lib/awspec/stub/ebs.rb