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

Error waiting for instance to become ready: ResourceNotReady: exceeded wait attempts" #13178

Open
reddy1924 opened this issue Oct 4, 2024 · 0 comments
Labels

Comments

@reddy1924
Copy link

reddy1924 commented Oct 4, 2024

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.

@reddy1924 reddy1924 added the bug label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant