Webhooks

Sample Primary and Recovered Resource Mapping,

       [
          {"SUBNET": [{"subnet-fae68da6": {       //Primary resource ID
                "destination": {
                        "subnetId": "subnet-0bc9caf38e6ba9ed5",
                        "cloudResourceReferenceId": "subnet-0bc9caf38e6ba9ed5",
                        "subnetArn": "arn:aws:ec2:us-east-2:011xxxx152xx:subnet/subnet-0bc9caf38e6ba9ed5",
                        "cidrBlock": "172.31.32.0/20",
                        "vpcId": "vpc-1234c9c9749xxxxxx",
                        "name": "Primary-subnet-01",
                        "region": "us-east-2",
                        "availabilityZone": "us-east-2a"
                },
                "source": {
                        "subnetId": "subnet-fae68da6",
                        "cloudResourceReferenceId": "subnet-fae68da6",
                        "subnetArn": "arn:aws:ec2:us-east-1:011xxxx152xx:subnet/subnet-fae68da6",
                        "cidrBlock": "172.31.32.0/20",
                        "vpcId": "vpc-7fb70123",
                        "name": "Primary-subnet-01",
                        "region": "us-east-1",
                        "availabilityZone": "us-east-1a"
                }
                }},
                {"subnet-29f48107": {             //Primary resource ID
                "destination": {
                        "subnetId": "subnet-0011b50c0bcd94557",
                        "cloudResourceReferenceId": "subnet-0011b50c0bcd94557",
                        "subnetArn": "arn:aws:ec2:us-east-2:011xxxx152xx:subnet/subnet-0011b50c0bcd94557",
                        "cidrBlock": "172.31.80.0/20",
                        "vpcId": "vpc-1234c9c9749xxxxxx",
                        "name": "Primary-subnet-03",
                        "region": "us-east-2",
                        "availabilityZone": "us-east-2a"
                },
                "source": {
                        "subnetId": "subnet-29f48107",
                        "cloudResourceReferenceId": "subnet-29f48107",
                        "subnetArn": "arn:aws:ec2:us-east-1:011xxxx152xx:subnet/subnet-29f48107",
                        "cidrBlock": "172.31.80.0/20",
                        "vpcId": "vpc-7fb70123",
                        "name": "Primary-subnet-03",
                        "region": "us-east-1",
                        "availabilityZone": "us-east-1c"
                }
                }},
                {"subnet-92fd93f5": {            //Primary resource ID
                "destination": {
                        "subnetId": "subnet-048ad09c30c2cf652",
                        "cloudResourceReferenceId": "subnet-048ad09c30c2cf652",
                        "subnetArn": "arn:aws:ec2:us-east-2:011xxxx152xx:subnet/subnet-048ad09c30c2cf652",
                        "cidrBlock": "172.31.0.0/20",
                        "vpcId": "vpc-1234c9c9749xxxxxx",
                        "name": "Primary-subnet-02",
                        "region": "us-east-2",
                        "availabilityZone": "us-east-2b"
                },
                "source": {
                        "subnetId": "subnet-92fd93f5",
                        "cloudResourceReferenceId": "subnet-92fd93f5",
                        "subnetArn": "arn:aws:ec2:us-east-1:011xxxx152xx:subnet/subnet-92fd93f5",
                        "cidrBlock": "172.31.0.0/20",
                        "vpcId": "vpc-7fb70123",
                        "name": "Primary-subnet-02",
                        "region": "us-east-1",
                        "availabilityZone": "us-east-1b"
                }
                }},
                {"subnet-0cfb81642b9013ec6": {         //Primary resource ID
                "destination": {
                        "subnetId": "subnet-03d205a009dc5f1d1",
                        "cloudResourceReferenceId": "subnet-03d205a009dc5f1d1",
                        "subnetArn": "arn:aws:ec2:us-east-2:011xxxx152xx:subnet/subnet-03d205a009dc5f1d1",
                        "cidrBlock": "172.31.100.0/24",
                        "vpcId": "vpc-1234c9c9749xxxxxx",
                        "name": "subnet-test",
                        "region": "us-east-2",
                        "availabilityZone": "us-east-2a"
                },
                "source": {
                        "subnetId": "subnet-0cfb81642b9013ec6",
                        "cloudResourceReferenceId": "subnet-0cfb81642b9013ec6",
                        "subnetArn": "arn:aws:ec2:us-east-1:011xxxx152xx:subnet/subnet-0cfb81642b9013ec6",
                        "cidrBlock": "172.31.100.0/24",
                        "vpcId": "vpc-7fb70123",
                        "name": "subnet-test",
                        "region": "us-east-1",
                        "availabilityZone": "us-east-1a"
                }
             }}
          ]},
          {"COMPUTE": [{"i-09bfa40b518ba1234": {      //Primary resource ID
                "destination": {
                        "cloudResourceReferenceId": "i-06c93025522d8c264",
                        "networkInterfaces": [
                                "eni-02502a504d612bc84",
                                "eni-0c081753ba1fdcab6"
                        ],
                        "zone": "us-east-2a",
                        "vpcId": "vpc-1234c9c9749xxxxxx",
                        "name": "Wordpress",
                        "privateDnsName": "ip-172-31-36-23.us-east-2.compute.internal",
                        "region": "us-east-2",
                        "publicDnsName": "",
                        "privateIpAddress": "172.31.36.23",
                        "machineType": "t2.micro"
                },
                "source": {
                        "cloudResourceReferenceId": "i-09bfa40b518ba1234",
                        "networkInterfaces": [
                                "eni-0e0178f76359e4622",
                                "eni-0649f654187b5ee2e"
                        ],
                        "zone": "us-east-1a",
                        "vpcId": "vpc-7fb70123",
                        "name": "Wordpress",
                        "privateDnsName": "ip-172-31-36-23.ec2.internal",
                        "region": "us-east-1",
                        "publicDnsName": "",
                        "privateIpAddress": "172.31.36.23",
                        "machineType": "t2.micro"
                }
             }}
          ]},
          {"APPLICATION_LOAD_BALANCER": [{"arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:loadbalancer/app/application-lb-1/2db95d5a0781ece4": {    //Primary resource ID
                "destination": {
                        "cloudResourceReferenceId": "arn:aws:elasticloadbalancing:us-east-2:011xxxx152xx:loadbalancer/app/application-lb-1-20080243547152/81e858ed741c2877",
                        "loadBalancerType": "application",
                        "lbv2TargetGroups": [
                            {
                                    "targetType": "instance",
                                    "targetGroupPort": 80,
                                    "targetGroupProtocol": "HTTP",
                                    "targets": [{
                                            "port": 80,
                                            "id": "i-06c93025522d8c264"
                                    }],
                                    "targetGroupARN": "arn:aws:elasticloadbalancing:us-east-2:011xxxx152xx:targetgroup/alb-test-2008024359973063/b0e3ef2841121f6d"
                            }
                        ],
                        "loadBalancerScheme": "internet-facing",
                        "lbv2Listeners": [
                            {
                                    "protocol": "HTTP",
                                    "listenerARN": "arn:aws:elasticloadbalancing:us-east-2:011xxxx152xx:listener/app/application-lb-1-20080243547152/81e858ed741c2877/438e7b981ac24a57"
                             }],
                        "loadBalancerName": "application-lb-1-20080243547152",
                        "vpcId": "vpc-1234c9c9749xxxxxx",
                        "name": "application-lb-1-20080243547152",
                        "dnsName": "application-lb-1-20080243547152-446156084.us-east-2.elb.amazonaws.com",
                        "availabilityZones": [
                            {
                                    "subnetId": "subnet-0bc9caf38e6ba9ed5",
                                    "zoneName": "us-east-2a"
                            },
                            {
                                    "subnetId": "subnet-048ad09c30c2cf652",
                                    "zoneName": "us-east-2b"
                            }
                            ],
                        "region": "us-east-2"
                },
                "source": {
                    "cloudResourceReferenceId": "arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:loadbalancer/app/application-lb-1/2db95d5a0781ece4",
                    "loadBalancerType": "application",
                    "lbv2TargetGroups": [{
                            "targetType": "instance",
                            "targetGroupPort": 80,
                            "targetGroupProtocol": "HTTP",
                            "targets": [{
                                    "port": 80,
                                    "id": "i-09bfa40b518ba1234"
                            }],
                            "targetGroupARN": "arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:targetgroup/alb-test/52ef06bbe026732d"
                    }],
                    "loadBalancerScheme": "internet-facing",
                    "lbv2Listeners": [{
                            "protocol": "HTTP",
                            "listenerARN": "arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:listener/app/application-lb-1/2db95d5a0781ece4/7103fa941af60700"
                    }],
                    "loadBalancerName": "application-lb-1",
                    "vpcId": "vpc-7fb70123",
                    "name": "application-lb-1",
                    "dnsName": "application-lb-1-2013840755.us-east-1.elb.amazonaws.com",
                    "availabilityZones": [
                        {
                                "subnetId": "subnet-fae68da6",
                                "zoneName": "us-east-1a"
                        },
                        {
                                "subnetId": "subnet-92fd93f5",
                                "zoneName": "us-east-1b"
                        }
                    ],
                    "region": "us-east-1"
                    }
                }},
                {"arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:loadbalancer/app/application-lb-2/911c5749112a0c7b": {
                "destination": {
                    "cloudResourceReferenceId": "arn:aws:elasticloadbalancing:us-east-2:011xxxx152xx:loadbalancer/app/application-lb-2-20080243159415/cced946bf0baf346",
                    "loadBalancerType": "application",
                    "lbv2TargetGroups": [{
                            "targetType": "ip",
                            "targetGroupPort": 80,
                            "targetGroupProtocol": "HTTP",
                            "targets": [{
                                    "port": 80,
                                    "availabilityZone": "us-east-2a",
                                    "id": "172.31.36.23"
                            }],
                            "targetGroupARN": "arn:aws:elasticloadbalancing:us-east-2:011xxxx152xx:targetgroup/test-tg-2008024322842785/e7989794640a7fa5"
                    }],
                    "loadBalancerScheme": "internet-facing",
                    "lbv2Listeners": [{
                            "protocol": "HTTP",
                            "listenerARN": "arn:aws:elasticloadbalancing:us-east-2:011xxxx152xx:listener/app/application-lb-2-20080243159415/cced946bf0baf346/596345a5ee79117f"
                    }],
                    "loadBalancerName": "application-lb-2-20080243159415",
                    "vpcId": "vpc-1234c9c9749xxxxxx",
                    "name": "application-lb-2-20080243159415",
                    "dnsName": "application-lb-2-20080243159415-1819025845.us-east-2.elb.amazonaws.com",
                    "availabilityZones": [
                            {
                                "subnetId": "subnet-048ad09c30c2cf652",
                                "zoneName": "us-east-2b"
                            },
                            {
                                "subnetId": "subnet-0011b50c0bcd94557",
                                "zoneName": "us-east-2a"
                            }
                    ],
                    "region": "us-east-2"
                },
                "source": {
                    "cloudResourceReferenceId": "arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:loadbalancer/app/application-lb-2/911c5749112a0c7b",
                    "loadBalancerType": "application",
                    "lbv2TargetGroups": [{
                            "targetType": "ip",
                            "targetGroupPort": 80,
                            "targetGroupProtocol": "HTTP",
                            "targets": [{
                                    "port": 80,
                                    "availabilityZone": "us-east-1a",
                                    "id": "172.31.36.23"
                            }],
                            "targetGroupARN": "arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:targetgroup/test-tg/f83f2950cf14d6aa"
                    }],
                    "loadBalancerScheme": "internet-facing",
                    "lbv2Listeners": [{
                            "protocol": "HTTP",
                            "listenerARN": "arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:listener/app/application-lb-2/911c5749112a0c7b/5c64a20754df3bba"
                    }],
                    "loadBalancerName": "application-lb-2",
                    "vpcId": "vpc-7fb70123",
                    "name": "application-lb-2",
                    "dnsName": "application-lb-2-499620838.us-east-1.elb.amazonaws.com",
                    "availabilityZones": [
                            {
                                    "subnetId": "subnet-29f48107",
                                    "zoneName": "us-east-1c"
                            },
                            {
                                    "subnetId": "subnet-fae68da6",
                                    "zoneName": "us-east-1a"
                            },
                            {
                                    "subnetId": "subnet-92fd93f5",
                                    "zoneName": "us-east-1b"
                            }
                    ],
                    "region": "us-east-1"
                    }
               }}
          ]},
          {"NETWORK_LOAD_BALANCER": [{"arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:loadbalancer/net/network-lb/02c2f96c14cf285c": {     //Primary resource ID
                "destination": {
                    "cloudResourceReferenceId": "arn:aws:elasticloadbalancing:us-east-2:011xxxx152xx:loadbalancer/net/network-lb-2008024336897415/831e233d0596b962",
                    "loadBalancerType": "network",
                    "lbv2TargetGroups": [{
                            "targetType": "instance",
                            "targetGroupPort": 80,
                            "targetGroupProtocol": "TCP",
                            "targets": [{
                                    "port": 80,
                                    "id": "i-06c93025522d8c264"
                            }],
                            "targetGroupARN": "arn:aws:elasticloadbalancing:us-east-2:011xxxx152xx:targetgroup/nlb-test-2008024341690375/ccc90e324dac0803"
                    }],
                    "loadBalancerScheme": "internet-facing",
                    "lbv2Listeners": [{
                            "protocol": "TCP",
                            "listenerARN": "arn:aws:elasticloadbalancing:us-east-2:011xxxx152xx:listener/net/network-lb-2008024336897415/831e233d0596b962/6afb3d2313c4a2cb"
                    }],
                    "loadBalancerName": "network-lb-2008024336897415",
                    "vpcId": "vpc-1234c9c9749xxxxxx",
                    "name": "network-lb-2008024336897415",
                    "dnsName": "network-lb-2008024336897415-831e233d0596b962.elb.us-east-2.amazonaws.com",
                    "availabilityZones": [
                        {
                            "subnetId": "subnet-048ad09c30c2cf652",
                            "zoneName": "us-east-2b"
                        },
                        {
                            "subnetId": "subnet-0bc9caf38e6ba9ed5",
                            "zoneName": "us-east-2a"
                        }
                    ],
                    "region": "us-east-2"
                    },
                "source": {
                    "cloudResourceReferenceId": "arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:loadbalancer/net/network-lb/02c2f96c14cf285c",
                    "loadBalancerType": "network",
                    "lbv2TargetGroups": [{
                            "targetType": "instance",
                            "targetGroupPort": 80,
                            "targetGroupProtocol": "TCP",
                            "targets": [{
                                    "port": 80,
                                    "id": "i-09bfa40b518ba1234"
                            }],
                            "targetGroupARN": "arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:targetgroup/nlb-test/122286f9c9d82f2c"
                         }],
                    "loadBalancerScheme": "internet-facing",
                    "lbv2Listeners": [{
                            "protocol": "TCP",
                            "listenerARN": "arn:aws:elasticloadbalancing:us-east-1:011xxxx152xx:listener/net/network-lb/02c2f96c14cf285c/62519406a9ad50b3"
                        }],
                    "loadBalancerName": "network-lb",
                    "vpcId": "vpc-7fb70123",
                    "name": "network-lb",
                    "dnsName": "network-lb-02c2f96c14cf285c.elb.us-east-1.amazonaws.com",
                    "availabilityZones": [
                            {
                                "subnetId": "subnet-fae68da6",
                                "zoneName": "us-east-1a"
                            },
                            {
                                "subnetId": "subnet-92fd93f5",
                                "zoneName": "us-east-1b"
                            }
                    ],
                    "region": "us-east-1"
                    }
          }}]},
          {"CLASSIC_LOAD_BALANCER": [{"classic-lb": {         //Primary resource ID
                "destination": {
                    "cloudResourceReferenceId": "classic-lb-2008024386883699",
                    "listeners": [{
                            "instancePort": 80,
                            "instanceProtocol": "HTTP",
                            "protocol": "HTTP",
                            "loadBalancerPort": 80
                    }],
                    "scheme": "internet-facing",
                    "instances": [{"instanceId": "i-06c93025522d8c264"}],
                    "loadBalancerName": "classic-lb-2008024386883699",
                    "vpcId": "vpc-1234c9c9749xxxxxx",
                    "name": "classic-lb-2008024386883699",
                    "dnsName": "classic-lb-2008024386883699-799131564.us-east-2.elb.amazonaws.com",
                    "availabilityZones": ["us-east-2a"],
                    "region": "us-east-2"
                },
                "source": {
                    "cloudResourceReferenceId": "classic-lb",
                    "listeners": [{
                            "instancePort": 80,
                            "instanceProtocol": "HTTP",
                            "protocol": "HTTP",
                            "loadBalancerPort": 80
                    }],
                    "scheme": "internet-facing",
                    "instances": [{"instanceId": "i-09bfa40b518ba1234"}],
                    "loadBalancerName": "classic-lb",
                    "vpcId": "vpc-7fb70123",
                    "name": "classic-lb",
                    "dnsName": "classic-lb-1197648182.us-east-1.elb.amazonaws.com",
                    "availabilityZones": [
                            "us-east-1a",
                            "us-east-1b",
                            "us-east-1c",
                            "us-east-1d",
                            "us-east-1e",
                            "us-east-1f"
                    ],
                    "region": "us-east-1"
                    }
               }}
          ]},
          {"VPC": [{"vpc-7fb70123": {                                 //Primary resource ID
                "destination": {
                    "name": "source-vpc",
                    "cloudResourceReferenceId": "vpc-1234c9c9749xxxxxx",
                    "region": "us-east-2",
                    "dhcpOptionsId": "default",
                    "cidrBlock": "172.31.0.0/16",
                    "vpcId": "vpc-1234c9c9749xxxxxx"
                },
                "source": {
                    "name": "source-vpc",
                    "cloudResourceReferenceId": "vpc-7fb70123",
                    "region": "us-east-1",
                    "dhcpOptionsId": "default",
                    "cidrBlock": "172.31.0.0/16",
                    "vpcId": "vpc-7fb70123"
                }
          }}]},
          {"NAT_GATEWAYS": [{"nat-03108127a9dce4b9d": {                       //Primary resource ID
                "destination": {
                    "subnetId": "subnet-03d205a009dc5f1d1",
                    "cloudResourceReferenceId": "nat-07f40cced25cef875",
                    "vpcId": "vpc-1234c9c9749xxxxxx",
                    "name": "nat-gateway-01",
                    "natGatewayId": "nat-07f40cced25cef875",
                    "state": "available",
                    "region": "us-east-2",
                    "natGatewayAddresses": [{
                            "networkInterfaceId": "eni-0b92c714fe8a296d0",
                            "publicIp": "18.218.198.124",
                            "privateIp": "172.31.100.196"
                        }]
                },
                "source": {
                    "subnetId": "subnet-0cfb81642b9013ec6",
                    "cloudResourceReferenceId": "nat-03108127a9dce4b9d",
                    "vpcId": "vpc-7fb70123",
                    "name": "nat-gateway-01",
                    "natGatewayId": "nat-03108127a9dce4b9d",
                    "state": "available",
                    "region": "us-east-1",
                    "natGatewayAddresses": [{
                            "networkInterfaceId": "eni-07161d3f54d31183f",
                            "publicIp": "52.21.26.202",
                            "privateIp": "172.31.100.152"
                        }]
                  }
             }}
          ]},
          {"NETWORK_INTERFACE": [{"eni-0e0178f76359e4622": {           //Primary resource ID
                "destination": {
                    "subnetId": "subnet-03d205a009dc5f1d1",
                    "cloudResourceReferenceId": "eni-02502a504d612bc84",
                    "instanceId": "i-06c93025522d8c264",
                    "zone": "us-east-2a",
                    "vpcId": "vpc-1234c9c9749xxxxxx",
                    "name": "test-nic-01",
                    "attachmentStatus": "attaching",
                    "ipAddresses": [{
                            "privateDnsName": "ip-172-31-100-20.us-east-2.compute.internal",
                            "privateIpAddress": "172.31.100.20",
                            "primary": true
                        }],
                    "privateDnsName": "ip-172-31-100-20.us-east-2.compute.internal",
                    "region": "us-east-2",
                    "privateIpAddress": "172.31.100.20"
                },
                "source": {
                    "subnetId": "subnet-0cfb81642b9013ec6",
                    "publicIpAddress": "54.167.92.123",
                    "attachmentStatus": "attached",
                    "publicDnsName": "ec2-54-167-92-123.compute-1.amazonaws.com",
                    "privateIpAddress": "172.31.100.20",
                    "cloudResourceReferenceId": "eni-0e0178f76359e4622",
                    "instanceId": "i-09bfa40b518ba1234",
                    "zone": "us-east-1a",
                    "vpcId": "vpc-7fb70123",
                    "name": "test-nic-01",
                    "ipAddresses": [{
                            "privateDnsName": "ip-172-31-100-20.ec2.internal",
                            "publicDnsName": "ec2-54-167-92-123.compute-1.amazonaws.com",
                            "publicIpAddress": "54.167.92.123",
                            "privateIpAddress": "172.31.100.20",
                            "primary": true
                        }],
                    "privateDnsName": "ip-172-31-100-20.ec2.internal",
                    "region": "us-east-1"
                    }
             }}
          ]},
          {"EIP": [{"eipalloc-02a1b7ca735f7cc78": {                          //Primary resource ID
                "destination": {
                    "name": "eip-1",
                    "cloudResourceReferenceId": "18.218.198.124",
                    "publicIp": "18.218.198.124",
                    "region": "us-east-2",
                    "domain": "vpc"
                },
                "source": {
                    "networkInterfaceId": "eni-07161d3f54d31183f",
                    "cloudResourceReferenceId": "eipalloc-02a1b7ca735f7cc78",
                    "domain": "vpc",
                    "name": "eip-1",
                    "publicIp": "52.21.26.202",
                    "region": "us-east-1",
                    "privateIpAddress": "172.31.100.152"
                }
                }},
                {"eipalloc-09e2ae00ca7a865bd": {                 //Primary resource ID
                "destination": {
                    "cloudResourceReferenceId": "3.139.225.228",
                    "publicIp": "3.139.225.228",
                    "region": "us-east-2",
                    "domain": "vpc"
                },
                "source": {
                    "networkInterfaceId": "eni-0e0178f76359e4622",
                    "cloudResourceReferenceId": "eipalloc-09e2ae00ca7a865bd",
                    "instanceId": "i-09bfa40b518ba1234",
                    "domain": "vpc",
                    "publicIp": "54.167.92.123",
                    "region": "us-east-1",
                    "privateIpAddress": "172.31.100.20"
                }
             }}
          ]}
       ]
Need more help? Submit a ticket