I have 2 Instance in AWS EC2 and I want check request by Instance id.
require_once 'vendor/autoload.php';
use Aws\Ec2\Ec2Client;
use Aws\Rds\RdsClient;
$instance_id = $ec2->describeInstances();
if($instance_id == 'i0-jkedsf54325123' || $instance_id == 'i0-jkedsf543251321'){
echo "request instance id is allow";
}else{
echo "request not allow";
}
Need to check which instance request is coming.