Diagnostic step 1
Reproduce in a test environment with increased bootstrap logging and explicit curl timeouts (e.g., --max-time) and log HTTP response codes to CloudWatch or S3. This is reversible and preserves instance safety.
Generated Oct 3, 2026, 12:35:03 AM
Reproduce in a test environment with increased bootstrap logging and explicit curl timeouts (e.g., --max-time) and log HTTP response codes to CloudWatch or S3. This is reversible and preserves instance safety.
Validate VPC endpoint configuration: ensure the endpoint is present in the instance's subnet AZ, check its policy allows the instance role/principal to call the required services, and verify route tables point to the correct endpoints.
Implement timeouts and exponential backoff in the bootstrap script and, if secret retrieval is optional during boot, run it asynchronously after the lifecycle hook completes to avoid blocking ASG transitions.
Add health-check or ready signal to lifecycle hook completion only after essential initialization succeeds; use CodeDeploy hooks or user-data to perform non-blocking registration and finish lifecycle actions quickly.
If network path problems persist, capture instance-level network traces (tcpdump) for requests to the endpoint and open a support case with AWS for VPC endpoint diagnostics; escalate to cloud network support if endpoint policy or cross-AZ interface issues are suspected.