EC2 Instances¶
Provider: AWS
Service ID: ec2
Rendering: Standard table with expandable detail rows
Quick Example¶
<script>
var serviceDiscoveryRequests = serviceDiscoveryRequests || [];
serviceDiscoveryRequests.push({
service: 'ec2',
provider: 'aws',
region: 'eu-west-2',
source: 'live',
attributes: ['name', 'instance_id', 'instance_type', 'state', 'private_ip', 'public_ip']
});
</script>
<div data-sd-service="ec2" data-sd-source="live"></div>
Default Attributes¶
When no attributes array is specified, these columns are displayed:
attributes: ['name', 'instance_id', 'instance_type', 'state', 'private_ip', 'public_ip', 'subnet_id', 'vpc_id', 'key_name', 'launch_time']
All Attributes¶
| Attribute | Display Name | Format | Description |
|---|---|---|---|
name |
Name | text |
Resource display name (from tags or identifier) |
instance_id |
Instance ID | text |
From API field: InstanceId |
instance_type |
Instance Type | text |
From API field: InstanceType |
state |
State | status_badge |
From API field: State.Name |
private_ip |
Private IP | text |
From API field: PrivateIpAddress |
public_ip |
Public IP | text |
From API field: PublicIpAddress |
vpc_id |
VPC ID | text |
From API field: VpcId. Resolved to vpc name when available |
subnet_id |
Subnet ID | text |
From API field: SubnetId. Resolved to subnet name when available |
key_name |
Key Name | text |
From API field: KeyName |
launch_time |
Launch Time | datetime |
From API field: LaunchTime |
availability_zone |
Availability Zone | text |
From API field: Placement.AvailabilityZone |
platform |
Platform | text |
From API field: PlatformDetails. Default: Linux/UNIX |
architecture |
Architecture | text |
From API field: Architecture |
ami_id |
AMI ID | text |
From API field: ImageId |
iam_role |
IAM Role | arn_name |
From API field: IamInstanceProfile.Arn |
security_groups |
Security Groups | tag_list |
From API field: SecurityGroups[*].GroupName |
root_device_type |
Root Device | text |
From API field: RootDeviceType |
ebs_optimized |
EBS Optimized | boolean |
From API field: EbsOptimized |
monitoring |
Monitoring | text |
From API field: Monitoring.State |
tags |
Tags | tags_table |
All tags/labels as a key-value table |
= included in default view
Sort Order¶
Results are sorted by: name, instance_id