Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty BlockDeviceMappings array after successful EC2 instance creation #2804

Closed
nessor opened this issue Oct 26, 2023 · 8 comments
Closed

Empty BlockDeviceMappings array after successful EC2 instance creation #2804

nessor opened this issue Oct 26, 2023 · 8 comments
Assignees
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. service-api This issue is due to a problem in a service API, not the SDK implementation.

Comments

@nessor
Copy link

nessor commented Oct 26, 2023

Describe the bug

When creating an EC2 instance via the SDK with a gp2/gp3 volume under BlockDeviceMappings, the BlockDeviceMappings array is empty in the response after successful creation. Even though the volume was created - which can be verified in the console.

Expected Behavior

A populated `BlockDeviceMappings' array as documented (https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-ec2-2016-11-15.html#runinstances). For example

'BlockDeviceMappings' => [
                [
                    'DeviceName' => '<string>',
                    'Ebs' => [
                        'AttachTime' => <DateTime>,
                        'DeleteOnTermination' => true || false,
                        'Status' => 'attaching|attached|detaching|detached',
                        'VolumeId' => '<string>',
                    ],
                ],
                // ...
            ],

Current Behavior

The BlockDeviceMappings array is always empty:

"BlockDeviceMappings": [],

Reproduction Steps

Prepare options and call the API through the SDK:

$instanceParams = [
            'ImageId' => $imageId,
            'InstanceType' => $instanceType,
            'KeyName' => $keyPair->key_pair_name,
            'MinCount' => 1,
            'MaxCount' => 1,
            'BlockDeviceMappings' => [
                [
                    'DeviceName' => '/dev/sda1', // Specify the desired device name for EBS
                    'Ebs' => [
                        'DeleteOnTermination' => false,
                        'Encrypted' => false,
                        'Iops' => 3000,
                        'Throughput' => 125,
                        'VolumeSize' => $ssdCapacity,
                        'VolumeType' => 'gp3',
                    ],
                ],
            ],
            'SecurityGroupIds' => [$securityGroup->provider_id], // Assign the previously created security group
        ];

        $result = $client->runInstances($instanceParams);

The response from this call - which successfully created the desired EC2 instance - was (truncated for readability):

{
    "Groups": [],
    "Instances": [
        {
            ...
            "InstanceId": "i-0591f4e968ac15xxx",
            "InstanceType": "t3.micro",
           ...
            "BlockDeviceMappings": [],
            "EbsOptimized": false,
         },
   ...
    "@metadata": {
        "statusCode": 200,
        "effectiveUri": "https:\/\/ec2.eu-central-1.amazonaws.com",
        "headers": {
            "x-amzn-requestid": "96269c92-9fe8-4606-9b7d-8cb2ec2ee233",
            "cache-control": "no-cache, no-store",
            "strict-transport-security": "max-age=31536000; includeSubDomains",
            "vary": "accept-encoding",
            "content-type": "text\/xml;charset=UTF-8",
            "content-length": "5731",
            "date": "Tue, 24 Oct 2023 16:45:40 GMT",
            "server": "AmazonEC2"
        },
        ...
    }
}

Possible Solution

No response

Additional Information/Context

No response

SDK version used

3.283.12

Environment details (Version of PHP (php -v)? OS name and version, etc.)

Php 8.2.8, MacOS Sonoma 14.0

@nessor nessor added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 26, 2023
@yenfryherrerafeliz yenfryherrerafeliz self-assigned this Oct 26, 2023
@yenfryherrerafeliz
Copy link
Contributor

Hi @nessor, could you please provide debug logs for this request. You can enable debug logs by passing the debug flag when instancing the client as follow:

$client = new \Aws\Ec2\Ec2Client([
    'debug' => true
]);

Please make sure you redact any sensitive information.

Thanks!

@yenfryherrerafeliz yenfryherrerafeliz added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. p2 This is a standard priority issue and removed needs-triage This issue or PR still needs to be triaged. labels Oct 26, 2023
@nessor
Copy link
Author

nessor commented Oct 27, 2023

Hu @yenfryherrerafeliz, sure. Here the debug output:

Logs
-> Entering step init, name 'idempotency_auto_fill'
---------------------------------------------------

  command was set to array(3) {
    ["instance"]=>
    string(32) "00000000000007c10000000000000000"
    ["name"]=>
    string(19) "CreateSecurityGroup"
    ["params"]=>
    array(4) {
      ["GroupName"]=>
      object(Ramsey\Uuid\Lazy\LazyUuidFromString)#1963 (2) {
        ["unwrapped":"Ramsey\Uuid\Lazy\LazyUuidFromString":private]=>
        NULL
        ["uuid":"Ramsey\Uuid\Lazy\LazyUuidFromString":private]=>
        string(36) "fedf1769-ae98-432e-800c-cb778586cabc"
      }
      ["Description"]=>
      string(6) "user 1"
      ["@http"]=>
      array(1) {
        ["debug"]=>
        resource(1029) of type (stream)
      }
      ["@context"]=>
      array(0) {
      }
    }
  }
  
  request was set to array(0) {
  }
  


-> Entering step init, name 'ec2.copy_snapshot'
-----------------------------------------------

  no changes


-> Entering step validate, name 'validation'
--------------------------------------------

  no changes


-> Entering step build, name 'builderV2'
----------------------------------------

  request.instance was set to 00000000000007f80000000000000000
  request.method was set to POST
  request.headers was set to array(4) {
    ["X-Amz-Security-Token"]=>
    string(7) "[TOKEN]"
    ["Host"]=>
    array(1) {
      [0]=>
      string(30) "ec2.eu-central-1.amazonaws.com"
    }
    ["Content-Length"]=>
    array(1) {
      [0]=>
      string(3) "118"
    }
    ["Content-Type"]=>
    array(1) {
      [0]=>
      string(33) "application/x-www-form-urlencoded"
    }
  }
  
  request.body was set to Action=CreateSecurityGroup&Version=2016-11-15&GroupName=fedf1769-ae98-432e-800c-cb778586cabc&GroupDescription=user%201
  request.scheme was set to https


-> Entering step build, name 'ApiCallMonitoringMiddleware'
----------------------------------------------------------

  no changes


-> Entering step build, name ''
-------------------------------

  request.instance changed from 00000000000007f80000000000000000 to 00000000000008010000000000000000
  request.headers.X-Amz-User-Agent was set to array(1) {
    [0]=>
    string(52) "aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8"
  }
  
  request.headers.User-Agent was set to array(1) {
    [0]=>
    string(52) "aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8"
  }
  


-> Entering step build, name 'endpoint_parameter'
-------------------------------------------------

  no changes


-> Entering step build, name 'EndpointDiscoveryMiddleware'
----------------------------------------------------------

  no changes


-> Entering step build, name 'request-compression'
--------------------------------------------------

  no changes


-> Entering step build, name 'recursion-detection'
--------------------------------------------------

  no changes


-> Entering step sign, name 'StreamRequestPayloadMiddleware'
------------------------------------------------------------

  no changes


-> Entering step sign, name 'invocation-id'
-------------------------------------------

  request.instance changed from 00000000000008010000000000000000 to 00000000000007fd0000000000000000
  request.headers.aws-sdk-invocation-id was set to array(1) {
    [0]=>
    string(32) "6add39fcd0574c0f7e02add58c44b1b8"
  }
  


-> Entering step sign, name 'retry'
-----------------------------------

  request.instance changed from 00000000000007fd0000000000000000 to 00000000000008020000000000000000
  request.headers.aws-sdk-retry was set to array(1) {
    [0]=>
    string(3) "0/0"
  }
  


-> Entering step sign, name 'signer'
------------------------------------

  request.instance changed from 00000000000008020000000000000000 to 00000000000007ef0000000000000000
  request.headers.X-Amz-Date was set to array(1) {
    [0]=>
    string(16) "20231027T083845Z"
  }
  
  request.headers.Authorization was set to array(1) {
    [0]=>
    string(211) "AWS4-HMAC-SHA256 Credential=[KEY]/20231027/eu-central-1/ec2/aws4_request, SignedHeaders=host;x-amz-date;x-amz-user-agent, Signature=[SIGNATURE]
  }
  


-> Entering step attempt, name 'ApiCallAttemptMonitoringMiddleware'
-------------------------------------------------------------------

  no changes

*   Trying 52.94.141.18:443...
* Connected to ec2.eu-central-1.amazonaws.com (52.94.141.18) port 443
* ALPN: curl offers http/1.1
*  CAfile: /opt/homebrew/etc/openssl@1.1/cert.pem
*  CApath: none
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN: server accepted http/1.1
* Server certificate:
*  subject: CN=ec2.eu-central-1.amazonaws.com
*  start date: Oct 20 00:00:00 2023 GMT
*  expire date: Sep  3 23:59:59 2024 GMT
*  subjectAltName: host "ec2.eu-central-1.amazonaws.com" matched cert's "ec2.eu-central-1.amazonaws.com"
*  issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M01
*  SSL certificate verify ok.
* using HTTP/1.1
> POST / HTTP/1.1
Host: ec2.eu-central-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
X-Amz-User-Agent: aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8
aws-sdk-invocation-id: 6add39fcd0574c0f7e02add58c44b1b8
aws-sdk-retry: 0/0
X-Amz-Date: 20231027T083845Z
Authorization: AWS4-HMAC-SHA256 Credential=[KEY]/20231027/eu-central-1/ec2/aws4_request, SignedHeaders=host;x-amz-date;x-amz-user-agent, Signature=[SIGNATURE]
User-Agent: aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8 GuzzleHttp/7
Content-Length: 118

< HTTP/1.1 200 OK
< x-amzn-RequestId: c40b23e8-ed30-44fe-8c4c-d28dc692ed36
< Cache-Control: no-cache, no-store
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< Content-Type: text/xml;charset=UTF-8
< Content-Length: 283
< Date: Fri, 27 Oct 2023 08:38:45 GMT
< Server: AmazonEC2
< 
* Connection #0 to host ec2.eu-central-1.amazonaws.com left intact

<- Leaving step attempt, name 'ApiCallAttemptMonitoringMiddleware'
------------------------------------------------------------------

  result was set to array(2) {
    ["instance"]=>
    string(32) "00000000000008370000000000000000"
    ["data"]=>
    array(2) {
      ["GroupId"]=>
      string(20) "sg-063d963f0af2f705a"
      ["@metadata"]=>
      array(4) {
        ["statusCode"]=>
        int(200)
        ["effectiveUri"]=>
        string(38) "https://ec2.eu-central-1.amazonaws.com"
        ["headers"]=>
        array(7) {
          ["x-amzn-requestid"]=>
          string(36) "c40b23e8-ed30-44fe-8c4c-d28dc692ed36"
          ["cache-control"]=>
          string(18) "no-cache, no-store"
          ["strict-transport-security"]=>
          string(35) "max-age=31536000; includeSubDomains"
          ["content-type"]=>
          string(22) "text/xml;charset=UTF-8"
          ["content-length"]=>
          string(3) "283"
          ["date"]=>
          string(29) "Fri, 27 Oct 2023 08:38:45 GMT"
          ["server"]=>
          string(9) "AmazonEC2"
        }
        ["transferStats"]=>
        array(0) {
        }
      }
    }
  }
  
  Inclusive step time: 0.32197403907776


<- Leaving step sign, name 'signer'
-----------------------------------

  no changes
  Inclusive step time: 0.32203316688538


<- Leaving step sign, name 'retry'
----------------------------------

  no changes
  Inclusive step time: 0.32313895225525


<- Leaving step sign, name 'invocation-id'
------------------------------------------

  result.data.@metadata.transferStats.http was set to array(1) {
    [0]=>
    array(0) {
    }
  }
  
  Inclusive step time: 0.32347106933594


<- Leaving step sign, name 'StreamRequestPayloadMiddleware'
-----------------------------------------------------------

  no changes
  Inclusive step time: 0.32350897789001


<- Leaving step build, name 'recursion-detection'
-------------------------------------------------

  no changes
  Inclusive step time: 0.32352900505066


<- Leaving step build, name 'request-compression'
-------------------------------------------------

  no changes
  Inclusive step time: 0.32354807853699


<- Leaving step build, name 'EndpointDiscoveryMiddleware'
---------------------------------------------------------

  no changes
  Inclusive step time: 0.32356715202332


<- Leaving step build, name 'endpoint_parameter'
------------------------------------------------

  no changes
  Inclusive step time: 0.3238639831543


<- Leaving step build, name ''
------------------------------

  no changes
  Inclusive step time: 0.32390093803406


<- Leaving step build, name 'ApiCallMonitoringMiddleware'
---------------------------------------------------------

  no changes
  Inclusive step time: 0.32393503189087


<- Leaving step build, name 'builderV2'
---------------------------------------

  no changes
  Inclusive step time: 0.32501411437988


<- Leaving step validate, name 'validation'
-------------------------------------------

  no changes
  Inclusive step time: 0.32686400413513


<- Leaving step init, name 'ec2.copy_snapshot'
----------------------------------------------

  no changes
  Inclusive step time: 0.32689905166626


<- Leaving step init, name 'idempotency_auto_fill'
--------------------------------------------------

  no changes
  Inclusive step time: 0.32702112197876


-> Entering step init, name 'idempotency_auto_fill'
---------------------------------------------------

  command was set to array(3) {
    ["instance"]=>
    string(32) "000000000000082c0000000000000000"
    ["name"]=>
    string(29) "AuthorizeSecurityGroupIngress"
    ["params"]=>
    array(4) {
      ["GroupId"]=>
      string(20) "sg-063d963f0af2f705a"
      ["IpPermissions"]=>
      array(1) {
        [0]=>
        array(4) {
          ["IpProtocol"]=>
          string(3) "tcp"
          ["FromPort"]=>
          int(3389)
          ["ToPort"]=>
          int(3389)
          ["IpRanges"]=>
          array(1) {
            [0]=>
            array(1) {
              ["CidrIp"]=>
              string(16) "92.200.XXX.XXX/32"
            }
          }
        }
      }
      ["@http"]=>
      array(1) {
        ["debug"]=>
        resource(1059) of type (stream)
      }
      ["@context"]=>
      array(0) {
      }
    }
  }
  
  request was set to array(0) {
  }
  


-> Entering step init, name 'ec2.copy_snapshot'
-----------------------------------------------

  no changes


-> Entering step validate, name 'validation'
--------------------------------------------

  no changes


-> Entering step build, name 'builderV2'
----------------------------------------

  request.instance was set to 000000000000080e0000000000000000
  request.method was set to POST
  request.headers was set to array(4) {
    ["X-Amz-Security-Token"]=>
    string(7) "[TOKEN]"
    ["Host"]=>
    array(1) {
      [0]=>
      string(30) "ec2.eu-central-1.amazonaws.com"
    }
    ["Content-Length"]=>
    array(1) {
      [0]=>
      string(3) "226"
    }
    ["Content-Type"]=>
    array(1) {
      [0]=>
      string(33) "application/x-www-form-urlencoded"
    }
  }
  
  request.body was set to Action=AuthorizeSecurityGroupIngress&Version=2016-11-15&GroupId=sg-063d963f0af2f705a&IpPermissions.1.IpProtocol=tcp&IpPermissions.1.FromPort=3389&IpPermissions.1.ToPort=3389&IpPermissions.1.IpRanges.1.CidrIp=92.200.229.57%2F32
  request.scheme was set to https


-> Entering step build, name 'ApiCallMonitoringMiddleware'
----------------------------------------------------------

  no changes


-> Entering step build, name ''
-------------------------------

  request.instance changed from 000000000000080e0000000000000000 to 00000000000008060000000000000000
  request.headers.X-Amz-User-Agent was set to array(1) {
    [0]=>
    string(52) "aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8"
  }
  
  request.headers.User-Agent was set to array(1) {
    [0]=>
    string(52) "aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8"
  }
  


-> Entering step build, name 'endpoint_parameter'
-------------------------------------------------

  no changes


-> Entering step build, name 'EndpointDiscoveryMiddleware'
----------------------------------------------------------

  no changes


-> Entering step build, name 'request-compression'
--------------------------------------------------

  no changes


-> Entering step build, name 'recursion-detection'
--------------------------------------------------

  no changes


-> Entering step sign, name 'StreamRequestPayloadMiddleware'
------------------------------------------------------------

  no changes


-> Entering step sign, name 'invocation-id'
-------------------------------------------

  request.instance changed from 00000000000008060000000000000000 to 00000000000008040000000000000000
  request.headers.aws-sdk-invocation-id was set to array(1) {
    [0]=>
    string(32) "44f009e18da253414f1e8bcecbf36bd0"
  }
  


-> Entering step sign, name 'retry'
-----------------------------------

  request.instance changed from 00000000000008040000000000000000 to 00000000000008410000000000000000
  request.headers.aws-sdk-retry was set to array(1) {
    [0]=>
    string(3) "0/0"
  }
  


-> Entering step sign, name 'signer'
------------------------------------

  request.instance changed from 00000000000008410000000000000000 to 00000000000007df0000000000000000
  request.headers.X-Amz-Date was set to array(1) {
    [0]=>
    string(16) "20231027T083845Z"
  }
  
  request.headers.Authorization was set to array(1) {
    [0]=>
    string(211) "AWS4-HMAC-SHA256 Credential=[KEY]/20231027/eu-central-1/ec2/aws4_request, SignedHeaders=host;x-amz-date;x-amz-user-agent, Signature=[SIGNATURE]
  }
  


-> Entering step attempt, name 'ApiCallAttemptMonitoringMiddleware'
-------------------------------------------------------------------

  no changes

* Found bundle for host: 0x600000c3c210 [serially]
* Re-using existing connection with host ec2.eu-central-1.amazonaws.com
> POST / HTTP/1.1
Host: ec2.eu-central-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
X-Amz-User-Agent: aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8
aws-sdk-invocation-id: 44f009e18da253414f1e8bcecbf36bd0
aws-sdk-retry: 0/0
X-Amz-Date: 20231027T083845Z
Authorization: AWS4-HMAC-SHA256 Credential=[KEY]/20231027/eu-central-1/ec2/aws4_request, SignedHeaders=host;x-amz-date;x-amz-user-agent, Signature=[SIGNATURE]
User-Agent: aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8 GuzzleHttp/7
Content-Length: 226

< HTTP/1.1 200 OK
< x-amzn-RequestId: f9ec975c-c149-499e-abd8-69ba5918628f
< Cache-Control: no-cache, no-store
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< Content-Type: text/xml;charset=UTF-8
< Content-Length: 730
< Date: Fri, 27 Oct 2023 08:38:45 GMT
< Server: AmazonEC2
< 
* Connection #0 to host ec2.eu-central-1.amazonaws.com left intact

<- Leaving step attempt, name 'ApiCallAttemptMonitoringMiddleware'
------------------------------------------------------------------

  result was set to array(2) {
    ["instance"]=>
    string(32) "000000000000086a0000000000000000"
    ["data"]=>
    array(3) {
      ["Return"]=>
      bool(true)
      ["SecurityGroupRules"]=>
      array(1) {
        [0]=>
        array(8) {
          ["SecurityGroupRuleId"]=>
          string(21) "sgr-001e92847d1acd6ee"
          ["GroupId"]=>
          string(20) "sg-063d963f0af2f705a"
          ["GroupOwnerId"]=>
          string(12) "8859344XXXXX"
          ["IsEgress"]=>
          bool(false)
          ["IpProtocol"]=>
          string(3) "tcp"
          ["FromPort"]=>
          int(3389)
          ["ToPort"]=>
          int(3389)
          ["CidrIpv4"]=>
          string(16) "92.200.XXX.XXX/32"
        }
      }
      ["@metadata"]=>
      array(4) {
        ["statusCode"]=>
        int(200)
        ["effectiveUri"]=>
        string(38) "https://ec2.eu-central-1.amazonaws.com"
        ["headers"]=>
        array(7) {
          ["x-amzn-requestid"]=>
          string(36) "f9ec975c-c149-499e-abd8-69ba5918628f"
          ["cache-control"]=>
          string(18) "no-cache, no-store"
          ["strict-transport-security"]=>
          string(35) "max-age=31536000; includeSubDomains"
          ["content-type"]=>
          string(22) "text/xml;charset=UTF-8"
          ["content-length"]=>
          string(3) "730"
          ["date"]=>
          string(29) "Fri, 27 Oct 2023 08:38:45 GMT"
          ["server"]=>
          string(9) "AmazonEC2"
        }
        ["transferStats"]=>
        array(0) {
        }
      }
    }
  }
  
  Inclusive step time: 0.19363713264465


<- Leaving step sign, name 'signer'
-----------------------------------

  no changes
  Inclusive step time: 0.19376397132874


<- Leaving step sign, name 'retry'
----------------------------------

  no changes
  Inclusive step time: 0.1963210105896


<- Leaving step sign, name 'invocation-id'
------------------------------------------

  result.data.@metadata.transferStats.http was set to array(1) {
    [0]=>
    array(0) {
    }
  }
  
  Inclusive step time: 0.19641590118408


<- Leaving step sign, name 'StreamRequestPayloadMiddleware'
-----------------------------------------------------------

  no changes
  Inclusive step time: 0.19645404815674


<- Leaving step build, name 'recursion-detection'
-------------------------------------------------

  no changes
  Inclusive step time: 0.19647908210754


<- Leaving step build, name 'request-compression'
-------------------------------------------------

  no changes
  Inclusive step time: 0.19674015045166


<- Leaving step build, name 'EndpointDiscoveryMiddleware'
---------------------------------------------------------

  no changes
  Inclusive step time: 0.19676303863525


<- Leaving step build, name 'endpoint_parameter'
------------------------------------------------

  no changes
  Inclusive step time: 0.19695806503296


<- Leaving step build, name ''
------------------------------

  no changes
  Inclusive step time: 0.19700312614441


<- Leaving step build, name 'ApiCallMonitoringMiddleware'
---------------------------------------------------------

  no changes
  Inclusive step time: 0.19703912734985


<- Leaving step build, name 'builderV2'
---------------------------------------

  no changes
  Inclusive step time: 0.19730806350708


<- Leaving step validate, name 'validation'
-------------------------------------------

  no changes
  Inclusive step time: 0.19740796089172


<- Leaving step init, name 'ec2.copy_snapshot'
----------------------------------------------

  no changes
  Inclusive step time: 0.19774508476257


<- Leaving step init, name 'idempotency_auto_fill'
--------------------------------------------------

  no changes
  Inclusive step time: 0.1978771686554


-> Entering step init, name 'idempotency_auto_fill'
---------------------------------------------------

  command was set to array(3) {
    ["instance"]=>
    string(32) "00000000000008370000000000000000"
    ["name"]=>
    string(13) "CreateKeyPair"
    ["params"]=>
    array(3) {
      ["KeyName"]=>
      string(43) "9b36c4b0-3ad9-4455-8754-37f32382e8a4"
      ["@http"]=>
      array(1) {
        ["debug"]=>
        resource(1077) of type (stream)
      }
      ["@context"]=>
      array(0) {
      }
    }
  }
  
  request was set to array(0) {
  }
  


-> Entering step init, name 'ec2.copy_snapshot'
-----------------------------------------------

  no changes


-> Entering step validate, name 'validation'
--------------------------------------------

  no changes


-> Entering step build, name 'builderV2'
----------------------------------------

  request.instance was set to 00000000000008060000000000000000
  request.method was set to POST
  request.headers was set to array(4) {
    ["X-Amz-Security-Token"]=>
    string(7) "[TOKEN]"
    ["Host"]=>
    array(1) {
      [0]=>
      string(30) "ec2.eu-central-1.amazonaws.com"
    }
    ["Content-Length"]=>
    array(1) {
      [0]=>
      string(2) "91"
    }
    ["Content-Type"]=>
    array(1) {
      [0]=>
      string(33) "application/x-www-form-urlencoded"
    }
  }
  
  request.body was set to Action=CreateKeyPair&Version=2016-11-15&KeyName=9b36c4b0-3ad9-4455-8754-37f32382e8a4_user_1
  request.scheme was set to https


-> Entering step build, name 'ApiCallMonitoringMiddleware'
----------------------------------------------------------

  no changes


-> Entering step build, name ''
-------------------------------

  request.instance changed from 00000000000008060000000000000000 to 000000000000084f0000000000000000
  request.headers.X-Amz-User-Agent was set to array(1) {
    [0]=>
    string(52) "aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8"
  }
  
  request.headers.User-Agent was set to array(1) {
    [0]=>
    string(52) "aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8"
  }
  


-> Entering step build, name 'endpoint_parameter'
-------------------------------------------------

  no changes


-> Entering step build, name 'EndpointDiscoveryMiddleware'
----------------------------------------------------------

  no changes


-> Entering step build, name 'request-compression'
--------------------------------------------------

  no changes


-> Entering step build, name 'recursion-detection'
--------------------------------------------------

  no changes


-> Entering step sign, name 'StreamRequestPayloadMiddleware'
------------------------------------------------------------

  no changes


-> Entering step sign, name 'invocation-id'
-------------------------------------------

  request.instance changed from 000000000000084f0000000000000000 to 00000000000008510000000000000000
  request.headers.aws-sdk-invocation-id was set to array(1) {
    [0]=>
    string(32) "bd4f8e3493cee680c1ce83f1c6dc8afd"
  }
  


-> Entering step sign, name 'retry'
-----------------------------------

  request.instance changed from 00000000000008510000000000000000 to 000000000000084e0000000000000000
  request.headers.aws-sdk-retry was set to array(1) {
    [0]=>
    string(3) "0/0"
  }
  


-> Entering step sign, name 'signer'
------------------------------------

  request.instance changed from 000000000000084e0000000000000000 to 000000000000082b0000000000000000
  request.headers.X-Amz-Date was set to array(1) {
    [0]=>
    string(16) "20231027T083845Z"
  }
  
  request.headers.Authorization was set to array(1) {
    [0]=>
    string(211) "AWS4-HMAC-SHA256 Credential=[KEY]/20231027/eu-central-1/ec2/aws4_request, SignedHeaders=host;x-amz-date;x-amz-user-agent, Signature=[SIGNATURE]
  }
  


-> Entering step attempt, name 'ApiCallAttemptMonitoringMiddleware'
-------------------------------------------------------------------

  no changes

* Found bundle for host: 0x600000c3c210 [serially]
* Re-using existing connection with host ec2.eu-central-1.amazonaws.com
> POST / HTTP/1.1
Host: ec2.eu-central-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
X-Amz-User-Agent: aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8
aws-sdk-invocation-id: bd4f8e3493cee680c1ce83f1c6dc8afd
aws-sdk-retry: 0/0
X-Amz-Date: 20231027T083845Z
Authorization: AWS4-HMAC-SHA256 Credential=[KEY]/20231027/eu-central-1/ec2/aws4_request, SignedHeaders=host;x-amz-date;x-amz-user-agent, Signature=[SIGNATURE]
User-Agent: aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8 GuzzleHttp/7
Content-Length: 91

< HTTP/1.1 200 OK
< x-amzn-RequestId: a73dc23c-bd9a-4551-89fc-af59eeefa9ee
< Cache-Control: no-cache, no-store
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< vary: accept-encoding
< Content-Type: text/xml;charset=UTF-8
< Content-Length: 2124
< Date: Fri, 27 Oct 2023 08:38:45 GMT
< Server: AmazonEC2
< 
* Connection #0 to host ec2.eu-central-1.amazonaws.com left intact

<- Leaving step attempt, name 'ApiCallAttemptMonitoringMiddleware'
------------------------------------------------------------------

  result was set to array(2) {
    ["instance"]=>
    string(32) "000000000000089e0000000000000000"
    ["data"]=>
    array(5) {
      ["KeyFingerprint"]=>
      string(59) "9f:0f:0f:d9:de:45:ca:a2:d4:7e:1d:21:fc:1a:22:6b:96:22:7a:3e"
      ["KeyMaterial"]=>
      string(1678) "-----BEGIN RSA PRIVATE KEY-----
      XXXXXXXXXXX
  -----END RSA PRIVATE KEY-----"
      ["KeyName"]=>
      string(43) "9b36c4b0-3ad9-4455-8754-37f32382e8a4"
      ["KeyPairId"]=>
      string(21) "key-06daa4fd6ee0864a0"
      ["@metadata"]=>
      array(4) {
        ["statusCode"]=>
        int(200)
        ["effectiveUri"]=>
        string(38) "https://ec2.eu-central-1.amazonaws.com"
        ["headers"]=>
        array(8) {
          ["x-amzn-requestid"]=>
          string(36) "a73dc23c-bd9a-4551-89fc-af59eeefa9ee"
          ["cache-control"]=>
          string(18) "no-cache, no-store"
          ["strict-transport-security"]=>
          string(35) "max-age=31536000; includeSubDomains"
          ["vary"]=>
          string(15) "accept-encoding"
          ["content-type"]=>
          string(22) "text/xml;charset=UTF-8"
          ["content-length"]=>
          string(4) "2124"
          ["date"]=>
          string(29) "Fri, 27 Oct 2023 08:38:45 GMT"
          ["server"]=>
          string(9) "AmazonEC2"
        }
        ["transferStats"]=>
        array(0) {
        }
      }
    }
  }
  
  Inclusive step time: 0.16358399391174


<- Leaving step sign, name 'signer'
-----------------------------------

  no changes
  Inclusive step time: 0.16512298583984


<- Leaving step sign, name 'retry'
----------------------------------

  no changes
  Inclusive step time: 0.16521787643433


<- Leaving step sign, name 'invocation-id'
------------------------------------------

  result.data.@metadata.transferStats.http was set to array(1) {
    [0]=>
    array(0) {
    }
  }
  
  Inclusive step time: 0.16535997390747


<- Leaving step sign, name 'StreamRequestPayloadMiddleware'
-----------------------------------------------------------

  no changes
  Inclusive step time: 0.16554403305054


<- Leaving step build, name 'recursion-detection'
-------------------------------------------------

  no changes
  Inclusive step time: 0.16557192802429


<- Leaving step build, name 'request-compression'
-------------------------------------------------

  no changes
  Inclusive step time: 0.16560006141663


<- Leaving step build, name 'EndpointDiscoveryMiddleware'
---------------------------------------------------------

  no changes
  Inclusive step time: 0.16562604904175


<- Leaving step build, name 'endpoint_parameter'
------------------------------------------------

  no changes
  Inclusive step time: 0.16565203666687


<- Leaving step build, name ''
------------------------------

  no changes
  Inclusive step time: 0.16575479507446


<- Leaving step build, name 'ApiCallMonitoringMiddleware'
---------------------------------------------------------

  no changes
  Inclusive step time: 0.16584610939026


<- Leaving step build, name 'builderV2'
---------------------------------------

  no changes
  Inclusive step time: 0.16591882705688


<- Leaving step validate, name 'validation'
-------------------------------------------

  no changes
  Inclusive step time: 0.16597318649292


<- Leaving step init, name 'ec2.copy_snapshot'
----------------------------------------------

  no changes
  Inclusive step time: 0.16599702835083


<- Leaving step init, name 'idempotency_auto_fill'
--------------------------------------------------

  no changes
  Inclusive step time: 0.16603398323059


-> Entering step init, name 'idempotency_auto_fill'
---------------------------------------------------

  command was set to array(3) {
    ["instance"]=>
    string(32) "00000000000008a60000000000000000"
    ["name"]=>
    string(12) "RunInstances"
    ["params"]=>
    array(10) {
      ["ImageId"]=>
      string(21) "ami-06dd92ecc74fdfb36"
      ["InstanceType"]=>
      string(8) "t3.micro"
      ["KeyName"]=>
      string(43) "9b36c4b0-3ad9-4455-8754-37f32382e8a4"
      ["MinCount"]=>
      int(1)
      ["MaxCount"]=>
      int(1)
      ["BlockDeviceMappings"]=>
      array(1) {
        [0]=>
        array(2) {
          ["DeviceName"]=>
          string(9) "/dev/sda1"
          ["Ebs"]=>
          array(6) {
            ["DeleteOnTermination"]=>
            bool(false)
            ["Encrypted"]=>
            bool(false)
            ["Iops"]=>
            int(3000)
            ["Throughput"]=>
            int(125)
            ["VolumeSize"]=>
            int(10)
            ["VolumeType"]=>
            string(3) "gp3"
          }
        }
      }
      ["SecurityGroupIds"]=>
      array(1) {
        [0]=>
        string(20) "sg-063d963f0af2f705a"
      }
      ["@http"]=>
      array(1) {
        ["debug"]=>
        resource(1127) of type (stream)
      }
      ["@context"]=>
      array(0) {
      }
      ["ClientToken"]=>
      string(36) "5c15b5ea-219e-4421-98a0-4d2381bdXXXX" //dont know if this could be sensitive...
    }
  }
  
  request was set to array(0) {
  }
  


-> Entering step init, name 'ec2.copy_snapshot'
-----------------------------------------------

  no changes


-> Entering step validate, name 'validation'
--------------------------------------------

  no changes


-> Entering step build, name 'builderV2'
----------------------------------------

  request.instance was set to 00000000000008da0000000000000000
  request.method was set to POST
  request.headers was set to array(4) {
    ["X-Amz-Security-Token"]=>
    string(7) "[TOKEN]"
    ["Host"]=>
    array(1) {
      [0]=>
      string(30) "ec2.eu-central-1.amazonaws.com"
    }
    ["Content-Length"]=>
    array(1) {
      [0]=>
      string(3) "544"
    }
    ["Content-Type"]=>
    array(1) {
      [0]=>
      string(33) "application/x-www-form-urlencoded"
    }
  }
  
  request.body was set to Action=RunInstances&Version=2016-11-15&ImageId=ami-06dd92ecc74fdfb36&InstanceType=t3.micro&KeyName=9b36c4b0-3ad9-4455-8754-37f32382e8a4&MinCount=1&MaxCount=1&BlockDeviceMapping.1.DeviceName=%2Fdev%2Fsda1&BlockDeviceMapping.1.Ebs.DeleteOnTermination=false&BlockDeviceMapping.1.Ebs.Encrypted=false&BlockDeviceMapping.1.Ebs.Iops=3000&BlockDeviceMapping.1.Ebs.Throughput=125&BlockDeviceMapping.1.Ebs.VolumeSize=10&BlockDeviceMapping.1.Ebs.VolumeType=gp3&SecurityGroupId.1=sg-063d963f0af2f705a&ClientToken=5c15b5ea-219e-4421-98a0-4d2381bdXXXX
  request.scheme was set to https


-> Entering step build, name 'ApiCallMonitoringMiddleware'
----------------------------------------------------------

  no changes


-> Entering step build, name ''
-------------------------------

  request.instance changed from 00000000000008da0000000000000000 to 00000000000008df0000000000000000
  request.headers.X-Amz-User-Agent was set to array(1) {
    [0]=>
    string(52) "aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8"
  }
  
  request.headers.User-Agent was set to array(1) {
    [0]=>
    string(52) "aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8"
  }
  


-> Entering step build, name 'endpoint_parameter'
-------------------------------------------------

  no changes


-> Entering step build, name 'EndpointDiscoveryMiddleware'
----------------------------------------------------------

  no changes


-> Entering step build, name 'request-compression'
--------------------------------------------------

  no changes


-> Entering step build, name 'recursion-detection'
--------------------------------------------------

  no changes


-> Entering step sign, name 'StreamRequestPayloadMiddleware'
------------------------------------------------------------

  no changes


-> Entering step sign, name 'invocation-id'
-------------------------------------------

  request.instance changed from 00000000000008df0000000000000000 to 00000000000008de0000000000000000
  request.headers.aws-sdk-invocation-id was set to array(1) {
    [0]=>
    string(32) "dae9946547f8d3fc1ee69d7fa75015d8"
  }
  


-> Entering step sign, name 'retry'
-----------------------------------

  request.instance changed from 00000000000008de0000000000000000 to 00000000000008e10000000000000000
  request.headers.aws-sdk-retry was set to array(1) {
    [0]=>
    string(3) "0/0"
  }
  


-> Entering step sign, name 'signer'
------------------------------------

  request.instance changed from 00000000000008e10000000000000000 to 00000000000008470000000000000000
  request.headers.X-Amz-Date was set to array(1) {
    [0]=>
    string(16) "20231027T083845Z"
  }
  
  request.headers.Authorization was set to array(1) {
    [0]=>
    string(211) "AWS4-HMAC-SHA256 Credential=[KEY]/20231027/eu-central-1/ec2/aws4_request, SignedHeaders=host;x-amz-date;x-amz-user-agent, Signature=[SIGNATURE]
  }
  


-> Entering step attempt, name 'ApiCallAttemptMonitoringMiddleware'
-------------------------------------------------------------------

  no changes

* Found bundle for host: 0x600000c3c210 [serially]
* Re-using existing connection with host ec2.eu-central-1.amazonaws.com
> POST / HTTP/1.1
Host: ec2.eu-central-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded
X-Amz-User-Agent: aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8
aws-sdk-invocation-id: dae9946547f8d3fc1ee69d7fa75015d8
aws-sdk-retry: 0/0
X-Amz-Date: 20231027T083845Z
Authorization: AWS4-HMAC-SHA256 Credential=[KEY]/20231027/eu-central-1/ec2/aws4_request, SignedHeaders=host;x-amz-date;x-amz-user-agent, Signature=[SIGNATURE]
User-Agent: aws-sdk-php/3.283.12 OS/Darwin#23.0.0 lang/php#8.2.8 GuzzleHttp/7
Content-Length: 544

< HTTP/1.1 200 OK
< x-amzn-RequestId: 3ccaa085-5aab-450c-a9a7-2d7e59f2e9e5
< Cache-Control: no-cache, no-store
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< vary: accept-encoding
< Content-Type: text/xml;charset=UTF-8
< Content-Length: 5731
< Date: Fri, 27 Oct 2023 08:38:46 GMT
< Server: AmazonEC2
< 
* Connection #0 to host ec2.eu-central-1.amazonaws.com left intact

<- Leaving step attempt, name 'ApiCallAttemptMonitoringMiddleware'
------------------------------------------------------------------

  result was set to array(2) {
    ["instance"]=>
    string(32) "000000000000090f0000000000000000"
    ["data"]=>
    array(5) {
      ["Groups"]=>
      array(0) {
      }
      ["Instances"]=>
      array(1) {
        [0]=>
        array(36) {
          ["AmiLaunchIndex"]=>
          int(0)
          ["ImageId"]=>
          string(21) "ami-06dd92ecc74fdfb36"
          ["InstanceId"]=>
          string(19) "i-03db4709423b19fd7"
          ["InstanceType"]=>
          string(8) "t3.micro"
          ["KeyName"]=>
          string(43) "9b36c4b0-3ad9-4455-8754-37f32382e8a4"
          ["LaunchTime"]=>
          object(Aws\Api\DateTimeResult)#2399 (3) {
            ["date"]=>
            string(26) "2023-10-27 08:38:46.000000"
            ["timezone_type"]=>
            int(2)
            ["timezone"]=>
            string(1) "Z"
          }
          ["Monitoring"]=>
          array(1) {
            ["State"]=>
            string(8) "disabled"
          }
          ["Placement"]=>
          array(3) {
            ["AvailabilityZone"]=>
            string(13) "eu-central-1b"
            ["GroupName"]=>
            string(0) ""
            ["Tenancy"]=>
            string(7) "default"
          }
          ["PrivateDnsName"]=>
          string(46) "ip-172-31-35-185.eu-central-1.compute.internal"
          ["PrivateIpAddress"]=>
          string(13) "172.31.35.185"
          ["ProductCodes"]=>
          array(0) {
          }
          ["PublicDnsName"]=>
          string(0) ""
          ["State"]=>
          array(2) {
            ["Code"]=>
            int(0)
            ["Name"]=>
            string(7) "pending"
          }
          ["StateTransitionReason"]=>
          string(0) ""
          ["SubnetId"]=>
          string(24) "subnet-02b43f5186232dcdc"
          ["VpcId"]=>
          string(21) "vpc-0d28c9701495d06f6"
          ["Architecture"]=>
          string(6) "x86_64"
          ["BlockDeviceMappings"]=>
          array(0) {
          }
          ["ClientToken"]=>
          string(36) "5c15b5ea-219e-4421-98a0-4d2381bdXXXX"
          ["EbsOptimized"]=>
          bool(false)
          ["EnaSupport"]=>
          bool(true)
          ["Hypervisor"]=>
          string(3) "xen"
          ["NetworkInterfaces"]=>
          array(1) {
            [0]=>
            array(15) {
              ["Attachment"]=>
              array(6) {
                ["AttachTime"]=>
                object(Aws\Api\DateTimeResult)#2446 (3) {
                  ["date"]=>
                  string(26) "2023-10-27 08:38:46.000000"
                  ["timezone_type"]=>
                  int(2)
                  ["timezone"]=>
                  string(1) "Z"
                }
                ["AttachmentId"]=>
                string(28) "eni-attach-02294dd2e335df52f"
                ["DeleteOnTermination"]=>
                bool(true)
                ["DeviceIndex"]=>
                int(0)
                ["Status"]=>
                string(9) "attaching"
                ["NetworkCardIndex"]=>
                int(0)
              }
              ["Description"]=>
              string(0) ""
              ["Groups"]=>
              array(1) {
                [0]=>
                array(2) {
                  ["GroupName"]=>
                  string(36) "fedf1769-ae98-432e-800c-cb778586cabc"
                  ["GroupId"]=>
                  string(20) "sg-063d963f0af2f705a"
                }
              }
              ["Ipv6Addresses"]=>
              array(0) {
              }
              ["MacAddress"]=>
              string(17) "06:47:67:9e:fd:6b"
              ["NetworkInterfaceId"]=>
              string(21) "eni-04d2cb10769be09d6"
              ["OwnerId"]=>
              string(12) "8859344XXXXX"
              ["PrivateDnsName"]=>
              string(46) "ip-172-31-35-185.eu-central-1.compute.internal"
              ["PrivateIpAddress"]=>
              string(13) "172.31.35.185"
              ["PrivateIpAddresses"]=>
              array(1) {
                [0]=>
                array(3) {
                  ["Primary"]=>
                  bool(true)
                  ["PrivateDnsName"]=>
                  string(46) "ip-172-31-35-185.eu-central-1.compute.internal"
                  ["PrivateIpAddress"]=>
                  string(13) "172.31.35.185"
                }
              }
              ["SourceDestCheck"]=>
              bool(true)
              ["Status"]=>
              string(6) "in-use"
              ["SubnetId"]=>
              string(24) "subnet-02b43f5186232dcdc"
              ["VpcId"]=>
              string(21) "vpc-0d28c9701495d06f6"
              ["InterfaceType"]=>
              string(9) "interface"
            }
          }
          ["RootDeviceName"]=>
          string(9) "/dev/sda1"
          ["RootDeviceType"]=>
          string(3) "ebs"
          ["SecurityGroups"]=>
          array(1) {
            [0]=>
            array(2) {
              ["GroupName"]=>
              string(36) "fedf1769-ae98-432e-800c-cb778586cabc"
              ["GroupId"]=>
              string(20) "sg-063d963f0af2f705a"
            }
          }
          ["SourceDestCheck"]=>
          bool(true)
          ["StateReason"]=>
          array(2) {
            ["Code"]=>
            string(7) "pending"
            ["Message"]=>
            string(7) "pending"
          }
          ["VirtualizationType"]=>
          string(3) "hvm"
          ["CpuOptions"]=>
          array(2) {
            ["CoreCount"]=>
            int(1)
            ["ThreadsPerCore"]=>
            int(2)
          }
          ["CapacityReservationSpecification"]=>
          array(1) {
            ["CapacityReservationPreference"]=>
            string(4) "open"
          }
          ["MetadataOptions"]=>
          array(6) {
            ["State"]=>
            string(7) "pending"
            ["HttpTokens"]=>
            string(8) "optional"
            ["HttpPutResponseHopLimit"]=>
            int(1)
            ["HttpEndpoint"]=>
            string(7) "enabled"
            ["HttpProtocolIpv6"]=>
            string(8) "disabled"
            ["InstanceMetadataTags"]=>
            string(8) "disabled"
          }
          ["EnclaveOptions"]=>
          array(1) {
            ["Enabled"]=>
            bool(false)
          }
          ["PrivateDnsNameOptions"]=>
          array(3) {
            ["HostnameType"]=>
            string(7) "ip-name"
            ["EnableResourceNameDnsARecord"]=>
            bool(false)
            ["EnableResourceNameDnsAAAARecord"]=>
            bool(false)
          }
          ["MaintenanceOptions"]=>
          array(1) {
            ["AutoRecovery"]=>
            string(7) "default"
          }
          ["CurrentInstanceBootMode"]=>
          string(11) "legacy-bios"
        }
      }
      ["OwnerId"]=>
      string(12) "8859344XXXXX"
      ["ReservationId"]=>
      string(19) "r-099b376eef698edd1"
      ["@metadata"]=>
      array(4) {
        ["statusCode"]=>
        int(200)
        ["effectiveUri"]=>
        string(38) "https://ec2.eu-central-1.amazonaws.com"
        ["headers"]=>
        array(8) {
          ["x-amzn-requestid"]=>
          string(36) "3ccaa085-5aab-450c-a9a7-2d7e59f2e9e5"
          ["cache-control"]=>
          string(18) "no-cache, no-store"
          ["strict-transport-security"]=>
          string(35) "max-age=31536000; includeSubDomains"
          ["vary"]=>
          string(15) "accept-encoding"
          ["content-type"]=>
          string(22) "text/xml;charset=UTF-8"
          ["content-length"]=>
          string(4) "5731"
          ["date"]=>
          string(29) "Fri, 27 Oct 2023 08:38:46 GMT"
          ["server"]=>
          string(9) "AmazonEC2"
        }
        ["transferStats"]=>
        array(0) {
        }
      }
    }
  }
  
  Inclusive step time: 1.0965111255646


<- Leaving step sign, name 'signer'
-----------------------------------

  no changes
  Inclusive step time: 1.096577167511


<- Leaving step sign, name 'retry'
----------------------------------

  no changes
  Inclusive step time: 1.0966789722443


<- Leaving step sign, name 'invocation-id'
------------------------------------------

  result.data.@metadata.transferStats.http was set to array(1) {
    [0]=>
    array(0) {
    }
  }
  
  Inclusive step time: 1.0967330932617


<- Leaving step sign, name 'StreamRequestPayloadMiddleware'
-----------------------------------------------------------

  no changes
  Inclusive step time: 1.0968699455261


<- Leaving step build, name 'recursion-detection'
-------------------------------------------------

  no changes
  Inclusive step time: 1.0968890190125


<- Leaving step build, name 'request-compression'
-------------------------------------------------

  no changes
  Inclusive step time: 1.0970809459686


<- Leaving step build, name 'EndpointDiscoveryMiddleware'
---------------------------------------------------------

  no changes
  Inclusive step time: 1.0971100330353


<- Leaving step build, name 'endpoint_parameter'
------------------------------------------------

  no changes
  Inclusive step time: 1.0971310138702


<- Leaving step build, name ''
------------------------------

  no changes
  Inclusive step time: 1.0971579551697


<- Leaving step build, name 'ApiCallMonitoringMiddleware'
---------------------------------------------------------

  no changes
  Inclusive step time: 1.0973711013794


<- Leaving step build, name 'builderV2'
---------------------------------------

  no changes
  Inclusive step time: 1.0975968837738


<- Leaving step validate, name 'validation'
-------------------------------------------

  no changes
  Inclusive step time: 1.0976748466492


<- Leaving step init, name 'ec2.copy_snapshot'
----------------------------------------------

  no changes
  Inclusive step time: 1.0978848934174


<- Leaving step init, name 'idempotency_auto_fill'
--------------------------------------------------

  no changes
  Inclusive step time: 1.0979869365692

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Oct 28, 2023
@yenfryherrerafeliz yenfryherrerafeliz added the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Oct 30, 2023
@SirPyros
Copy link

SirPyros commented Oct 31, 2023

Also seeing this behavior but in the Js sdk

@yenfryherrerafeliz
Copy link
Contributor

Hi @nessor, @SirPyros, this seems to be an issue on the service side. I have reached to them and I will get back to you as soon as I get a response fro them.

Thanks!

@yenfryherrerafeliz
Copy link
Contributor

V1093628735

@yenfryherrerafeliz yenfryherrerafeliz added the service-api This issue is due to a problem in a service API, not the SDK implementation. label Nov 2, 2023
@yenfryherrerafeliz
Copy link
Contributor

Hi @nessor, @SirPyros, I have gotten the following answer from the service team:

This occurs because the Block Device Mapping is not completed at the time run-instances returns. There is still work happening asynchronously after the run-instances response, to prepare the instance, including attaching volumes.

The reason it is shown in the run-instances response documentation is that it's still possible to get the block device mapping back in the response if an idempotent retry is made afterward, by which time the volume attachment might have completed.

Note we do not suggest using idempotent retries to get the block device mappings, idempotent retries should be reserved for cases where the outcome of the run-instances request is unknown (example, getting disconnecting from AWS mid-request).

Our advice for this scenario is to describe the instance after run-instances, which customers typically do anyway to check when the instance is ready. By the time the instance is in a running state the volume attachment is guaranteed to have completed.

Please let me know if that answer helps!

Thanks!

@yenfryherrerafeliz yenfryherrerafeliz added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed bug This issue is a bug. investigating This issue is being investigated and/or work is in progress to resolve the issue. p2 This is a standard priority issue labels Nov 5, 2023
@yenfryherrerafeliz
Copy link
Contributor

Closing for now, but please feel free of opening a new issue if is there anything that we can help with.

Thanks!

Copy link

github-actions bot commented Nov 9, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. service-api This issue is due to a problem in a service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

3 participants