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-1.25.1 lib/awspec/stub/ebs.rb
awspec-1.25.0 lib/awspec/stub/ebs.rb
awspec-1.24.4 lib/awspec/stub/ebs.rb
awspec-1.24.3 lib/awspec/stub/ebs.rb
awspec-1.24.2 lib/awspec/stub/ebs.rb
awspec-1.24.1 lib/awspec/stub/ebs.rb
awspec-1.24.0 lib/awspec/stub/ebs.rb
awspec-1.23.0 lib/awspec/stub/ebs.rb
awspec-1.22.1 lib/awspec/stub/ebs.rb
awspec-1.22.0 lib/awspec/stub/ebs.rb
awspec-1.21.1 lib/awspec/stub/ebs.rb
awspec-1.21.0 lib/awspec/stub/ebs.rb
awspec-1.20.0 lib/awspec/stub/ebs.rb
awspec-1.19.2 lib/awspec/stub/ebs.rb
awspec-1.19.1 lib/awspec/stub/ebs.rb
awspec-1.19.0 lib/awspec/stub/ebs.rb
cthiesfork-awspec-1.2.4 lib/awspec/stub/ebs.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/stub/ebs.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/stub/ebs.rb
awspec-1.18.6 lib/awspec/stub/ebs.rb