hashicorp / hashicorp/packer-plugin-amazon
Error waiting for instance to become ready: ResourceNotReady: failed waiting for successful resource state
- Dominant language
- Go
- Stars
- 91
- Forks
- 141
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 3
Description
_This issue was originally opened by @bala-gif in https://github.com/hashicorp/packer/issues/11143 and has been migrated to this repository. The original issue description is below._
---
Hi Team,
I am using packer version=1.3.1 and running into following error when try to encrypt the root volume.
Error details:
Error waiting for instance(instance_id) to become ready: ResourceNotReady: failed waiting for successful resource state
Any help would be much appreciated.
Attaching the partial template that we are using.
`{
"builders" : [
{
"type" : "amazon-ebs",
"instance_type" : "m5.large",
"ssh_username" : "ec2-user",
"ssh_pty" : "true",
"subnet_id": "subnet-XXXX",
"security_group_ids": ["sg-XXXX","sg-XXXXX"],
"vpc_id": "vpc-XXXX",
"encrypt_boot": true,
"associate_public_ip_address": true,
"iam_instance_profile": "ec2-dbhost-role",
"launch_block_device_mappings": [
{
"encrypted": true,
"device_name": "/dev/xvdb",
"volume_size": 55,
"volume_type": "gp3",
"delete_on_termination": true
},
{
"encrypted": true,
"device_name": "/dev/xvdc",
"volume_size": 20,
"volume_type": "gp3",
"delete_on_termination": true
},
`
Contributor guide
Assessment
This issue has not been assessed yet.