Failed to connect to importexport.amazonaws.com port 443

Viewed 21

Any body knows how to solve this

Error message after trying to convert the image to ami

1

Note (I already try to import via command line and it's working good)

I'm trying to convert image from row to ami using laravel 8 Here is the information

1.) "aws/aws-sdk-php": "^3.231"
2.) php 8
3.) my code to process the conversion


public function startConversion(string $s3DiskImageName, string $description): void{
    $client = ImportExportClient::factory(array(
        'credentials' => array(
            'key' => config('filesystems.disks.s3.key'),
            'secret' => config('filesystems.disks.s3.secret'),
        ),
        'region' => config('filesystems.disks.s3.region'),
        'version' => 'latest'
    ));
    

    $bucket = config('filesystems.disks.s3.bucket');
    $client->createJob([
        'JobType' => 'Import',
        'ValidateOnly' => false,
        'Manifest' => json_encode([
            [
                'Description' => "$s3DiskImageName - $description",
                'Format' => 'raw',
                'Url' => 's3:://'.$bucket .'/'.$s3DiskImageName
            ]
        ])
    ]);
}

Thanks in advance!

0 Answers
Related