Unverified Commit 729b2582 authored by Thomas Gelf's avatar Thomas Gelf Committed by GitHub
Browse files

Merge pull request #16 from M2Mobi/attributes

Fetch more attributes for EC2 instances.
parents 5d8830dc 0a4509a0
......@@ -100,9 +100,16 @@ class AwsClient
'public_dns' => 'PublicDnsName',
'private_ip' => 'PrivateIpAddress',
'private_dns' => 'PrivateDnsName',
'instance_type' => 'InstanceType',
));
$object->monitoring_state = $entry['Monitoring']['State'];
$object->security_groups = [];
foreach ($entry['SecurityGroups'] as $group)
{
$object->security_groups[] = $group['GroupName'];
}
$this->extractTags($entry, $object);
}
......
......@@ -80,12 +80,14 @@ class ImportSource extends ImportSourceHook
'root_device_type',
'root_device_name',
'hypervisor',
'instance_type',
'virt_type',
'public_ip',
'public_dns',
'private_ip',
'private_dns',
'monitoring_state',
'security_groups',
'tags',
'tags.Name',
'tags.aws:autoscaling:groupName',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment