You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to build an AMI using packer on my EC2 Instance.During the process iam experincing the following error message "Error waiting for instance(i-xxxxxxx) to become ready: ResourceNotReady: exceeded wait attempts"
Packer version
v1.11.2
Simplified Packer Template
packer {
required_plugins {
amazon = {
version = ">= 1.2.8"
source = "github.com/hashicorp/amazon"
}
}
}
source "amazon-ebs" "amazon-linux" {
ami_name = "amazon-linux-2023"
instance_type = "t2.micro"
region = "us-east-1"
vpc_id = "vpc-xxxxxxxxx" # My VPC ID
subnet_id = "subnet-xxxxxxxx" # My Subnet ID
security_group_id = "sg-xxxxxxxxx" # My Security Group ID
source_ami_filter {
filters = {
name = "al2023-ami-2023*-x86_64"
root-device-type = "ebs"
virtualization-type = "hvm"
}
most_recent = true
owners = ["137112412989"]
}
ssh_username = "ec2-user"
ssh_interface = "session_manager"
}
build {
name = "Build-amazon-linux-2023-AMI"
sources = ["source.amazon-ebs.amazon-linux"]
}
Operating system and Environment details
I have launched an EC2 Instance with the follwing details:
OS -- Amazon Linux 2023
Architecture --x86_64
Once it is launched i have connected to it via session manager and started to install packer in it.Then created a packer file and started to build it.Unforfunattely ended up with the failure message mentioned above.
The text was updated successfully, but these errors were encountered:
Overview of the Issue
I was trying to build an AMI using packer on my EC2 Instance.During the process iam experincing the following error message "Error waiting for instance(i-xxxxxxx) to become ready: ResourceNotReady: exceeded wait attempts"
Packer version
v1.11.2
Simplified Packer Template
packer {
required_plugins {
amazon = {
version = ">= 1.2.8"
source = "github.com/hashicorp/amazon"
}
}
}
source "amazon-ebs" "amazon-linux" {
ami_name = "amazon-linux-2023"
instance_type = "t2.micro"
region = "us-east-1"
vpc_id = "vpc-xxxxxxxxx" # My VPC ID
subnet_id = "subnet-xxxxxxxx" # My Subnet ID
security_group_id = "sg-xxxxxxxxx" # My Security Group ID
source_ami_filter {
filters = {
name = "al2023-ami-2023*-x86_64"
root-device-type = "ebs"
virtualization-type = "hvm"
}
most_recent = true
owners = ["137112412989"]
}
ssh_username = "ec2-user"
ssh_interface = "session_manager"
}
build {
name = "Build-amazon-linux-2023-AMI"
sources = ["source.amazon-ebs.amazon-linux"]
}
Operating system and Environment details
I have launched an EC2 Instance with the follwing details:
OS -- Amazon Linux 2023
Architecture --x86_64
Once it is launched i have connected to it via session manager and started to install packer in it.Then created a packer file and started to build it.Unforfunattely ended up with the failure message mentioned above.
The text was updated successfully, but these errors were encountered: