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
Creating AMI with multiple regions fail with below error:
==> Sample Build (Ubuntu 20.04) 2024-01-09-1819-23.3.0-98-55.amazon-ebs.connector-ami: Deregistering the AMI and deleting associated snapshots because of cancellation, or error...
==> Sample Build (Ubuntu 20.04) 2024-01-09-1819-23.3.0-98-55.amazon-ebs.connector-ami: Provisioning step had errors: Running the cleanup provisioner, if present...
==> Sample Build (Ubuntu 20.04) 2024-01-09-1819-23.3.0-98-55.amazon-ebs.connector-ami: Terminating the source AWS instance...
==> Sample Build (Ubuntu 20.04) 2024-01-09-1819-23.3.0-98-55.amazon-ebs.connector-ami: Cleaning up any extra volumes...
==> Sample Build (Ubuntu 20.04) 2024-01-09-1819-23.3.0-98-55.amazon-ebs.connector-ami: No volumes to clean up, skipping
==> Sample Build (Ubuntu 20.04) 2024-01-09-1819-23.3.0-98-55.amazon-ebs.connector-ami: Deleting temporary keypair...
2024/01/09 13:38:11 [INFO] (telemetry) ending amazon-ebs.connector-ami
* Error waiting for AMI (ami-07bbe6f7e88aa7b90) in region (us-east-1): Failed with ResourceNotReady error, which can have a variety of causes. For help troubleshooting, check our docs: https://www.packer.io/docs/builders/amazon.html#resourcenotready-error
original error: ResourceNotReady: failed waiting for successful resource state
==> Wait completed after 18 minutes 18 seconds
2024/01/09 13:38:11 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
Build 'Sample Build (Ubuntu 20.04) 2024-01-09-1819-23.3.0-98-55.amazon-ebs.connector-ami' errored after 18 minutes 18 seconds: 1 error(s) occurred:
2024/01/09 13:38:11 machine readable: Sample Build (Ubuntu 20.04) 2024-01-09-1819-23.3.0-98-55.amazon-ebs.connector-ami,error []string{"1 error(s) occurred:\n\n* Error waiting for AMI (ami-07bbe6f7e88aa7b90) in region (us-east-1): Failed with ResourceNotReady error, which can have a variety of causes. For help troubleshooting, check our docs: https://www.packer.io/docs/builders/amazon.html#resourcenotready-error\noriginal error: ResourceNotReady: failed waiting for successful resource state"}
* Error waiting for AMI (ami-07bbe6f7e88aa7b90) in region (us-east-1): Failed with ResourceNotReady error, which can have a variety of causes. For help troubleshooting, check our docs: https://www.packer.io/docs/builders/amazon.html#resourcenotready-error
original error: ResourceNotReady: failed waiting for successful resource state
==> Builds finished but no artifacts were created.
2024/01/09 13:38:11 [INFO] (telemetry) Finalizing.
* Error waiting for AMI (ami-07bbe6f7e88aa7b90) in region (us-east-1): Failed with ResourceNotReady error, which can have a variety of causes. For help troubleshooting, check our docs: https://www.packer.io/docs/builders/amazon.html#resourcenotready-error
original error: ResourceNotReady: failed waiting for successful resource state
Note: I created a KMS key with multi region support with the hope that it will work across regions. I added all the required permissions for KMS and it works for the build region and not the other regions.
Turns out the solution was mostly using a multi-region KMS and replicating the key to the desired regions, using a single-region key will result to this error.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Overview of the Issue
Creating AMI with multiple regions fail with below error:
Note: I created a KMS key with multi region support with the hope that it will work across regions. I added all the required permissions for KMS and it works for the build region and not the other regions.
Reproduction Steps
Here is a sample template I used
Steps to reproduce this issue
Packer version
From
packer version
The text was updated successfully, but these errors were encountered: