EC2 Image Builder not working in the private subnet

0

I'm trying to create a image within the private subnet where the first component to install required certificates to get internet access. But the first component (install certificates to get internet access) gets failed.

Image ARN: arn:aws:imagebuilder:us-east-1:1xxxxxxxxx:image/test-certs/1.0.0/1 failed with error: Workflow Execution ID: 'xxxxx41xxdc' failed with reason: failed to download the EC2 Image Builder Component 'arn:aws:imagebuilder:us-east-1:1xxxxxx:component/create-certs/1.0.0/1'. Error - operation error imagebuilder: GetComponent, exceeded maximum number of attempts, 3, https response error StatusCode: 0, RequestID: , request send failed, Get "https://imagebuilder.us-east-1.amazonaws.com/GetComponent?componentBuildVersionArn=": tls: failed to verify certificate: x509: certificate signed by unknown authority.

Sripada
已提問 7 個月前檢視次數 329 次
1 個回答
1
已接受的答案

As you have updated that instance is in a private subnet, kindly confirm whether the instance is having internet access via NAT gateway or not. If you are not having NAT gateway, then image builder endpoint cant able to reach without internet access.

What this means is that when the instance tries to reach the image builder endpoint, it is resolving to the public IP address and since there is no route to go through, it just times out. If you are not fine to create NAT gateway, then you can create VPC endpoint for Image builder. Kindly follow the below documentation to create an interface VPC endpoint for image builder.

[+] https://docs.aws.amazon.com/imagebuilder/latest/userguide/vpc-interface-endpoints.html#vpc-endpoint-create

If you are having internet access to reach the endpoint then run the below command to check connectivity.

telnet imagebuilder.us-east-1.amazonaws.com 443
AWS
已回答 7 個月前
profile picture
專家
已審閱 2 個月前
  • We have created endpoint to get internet access. That resolved the issue. Thanks !

  • Can't we setup proxy setting for this ?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南