New EC2 Instances
Triggers a workflow on every new EC2 instance.
info
Automations based on this trigger will search for new events every 5 minutes.
Parameters
Parameter | Description |
---|---|
Region | Region for the AWS command. |
Sample Event
{
"AmiLaunchIndex": 0,
"ImageId": "ami-0dee2d52ec79cc123",
"InstanceId": "i-00b24cc19fcb21123",
"InstanceType": "m5.large",
"LaunchTime": "2022-03-08T21:14:16+00:00",
"Monitoring": {
"State": "enabled"
},
"Placement": {
"AvailabilityZone": "eu-west-1c",
"GroupName": "",
"Tenancy": "def ault"
},
"PrivateDnsName": "ip-10-1-1-1.eu-west-1.compute.internal",
"PrivateIpAddress": "10.1.1.1",
"ProductCodes": [],
"PublicDnsName": "",
"State": {
"Code": 16,
"Name": "running"
},
"StateTransitionReason": "",
"SubnetId": "subnet-0ef71f9e1d90e5123",
"VpcId": "vpc-0bbceba4dceddd123",
"Architecture": "x86_64",
"BlockDeviceMappings": [
{
"DeviceName": "/dev/xvda",
"Ebs": {
"AttachTime": "2022-03-08T21:14:17+00:00",
"DeleteOnTermination": true,
"Status": "attached",
"VolumeId": "vol-0ffe4a9789b4fa123"
}
}
],
"ClientToken": "9635fdad-87c7-be1d-0899-9639200e2123",
"EbsOptimized": true,
"EnaSupport": true,
"Hypervisor": "xen",
"IamInstanceProfile": {
"Arn": "arn:aws:iam::425162498438:instance-profile/blinkdev20220222074915486800000123",
"Id": "AIPAWF7NI4GDCPFABF123"
},
"NetworkInterfaces": [
{
"Attachment": {
"AttachTime": "2022-03-08T21:14:16+00:00",
"AttachmentId": "eni-attach-038309c9e061c5123",
"DeleteOnTermination": true,
"DeviceIndex": 0,
"Status": "attached",
"NetworkCardIndex": 0
},
"Description": "",
"Groups": [
{
"GroupName": "my-group",
"GroupId": "sg-123456"
}
],
"Ipv6Addresses": [],
"MacAddress": "02:c5:ea:d5:fa:87",
"NetworkInterfaceId": "eni-05143932808f08123",
"OwnerId": "12345678910",
"PrivateDnsName": "ip-10-1-1-1.eu-west-1.compute.internal",
"PrivateIpAddress": "10.1.1.1",
"PrivateIpAddresses": [
{
"Primary": true,
"PrivateDnsName": "ip-10-1-1-1.eu-west-1.compute.internal",
"PrivateIpAddress": "10.1.1.1"
}
],
"SourceDestCheck": true,
"Status": "in-use",
"SubnetId": "subnet-0ef71f9e1d90e5f3a",
"VpcId": "vpc-0bbceba4dceddd690",
"InterfaceType": "interface"
}
],
"RootDeviceName": "/dev/xvda",
"RootDeviceType": "ebs",
"SecurityGroups": [
{
"GroupName": "my-group",
"GroupId": "sg-123456"
}
],
"SourceDestCheck": true,
"Tags": [
{
"Key": "Environment",
"Value": "dev"
}
],
"VirtualizationType": "hvm",
"CpuOptions": {
"CoreCount": 1,
"ThreadsPerCore": 2
},
"CapacityReservationSpecification": {
"CapacityReservationPreference": "open"
},
"HibernationOptions": {
"Configured": false
},
"MetadataOptions": {
"State": "applied",
"HttpTokens": "optional",
"HttpPutResponseHopLimit": 1,
"HttpEndpoint": "enabled",
"HttpProtocolIpv6": "disabled",
"InstanceMetadataTags": "disabled"
},
"EnclaveOptions": {
"Enabled": false
},
"PlatformDetails": "Linux/UNIX",
"UsageOperation": "RunInstances",
"UsageOperationUpdateTime": "2022-03-08T21:14:16+00:00",
"PrivateDnsNameOptions": {
"HostnameType": "ip-name",
"EnableResourceNameDnsARecord": false,
"EnableResourceNameDnsAAAARecord": false
}
}