Base AMI etc/apt/sources.list use http not https , now apt update get timeout error.
How to fix it:
cd sample-e2b-on-aws
vi infra-iac/packer/main.pkr.hcl
#在shell这项添加"sudo sed -i 's/http:/https:/g' /etc/apt/sources.list"
provisioner "shell" {
inline = [
"sudo sed -i 's/http:/https:/g' /etc/apt/sources.list",
"sudo apt-get clean",
"sudo apt-get update -y",
"sudo apt-get upgrade -y",
"sudo apt-get install -y ca-certificates curl"
]
}