I am rephric, the one who opened a bug about the specific problem I am 
encountering. I can run it from my local machine fine.
I also set these variables before running the packer build:
    - export AWS_POLL_DELAY_SECONDS=30
    - export AWS_MAX_ATTEMPTS=3000
    - export AWS_TIMEOUT_SECONDS=3000
I am making sure I use the aws kms key name, not the full ARN.
Let me know if you need any more information or need me to try something!

Cheers,
Zach

On Monday, June 10, 2019 at 11:45:43 AM UTC-4, Rickard von Essen wrote:
>
> There are various reasons why this might happen, check these issues for 
> ideas
>
>
> https://github.com/hashicorp/packer/search?q=ResourceNotReady%3A+failed+waiting+for+successful+resource+state&type=Issues
>
> I would start by trying if it works when the user/role includes the Admin 
> policy. If it works then your permissions are to tight. Second I would set 
> the state wait timeout to something really long. 
>
> If you need more help, include as much information as you can about your 
> setup.
>
> Does it work when you run it on your computer? 
>
> On Mon, Jun 10, 2019, 17:14 Zachary Estrella <[email protected] 
> <javascript:>> wrote:
>
>> Hello,
>> I am trying to use packer in a gitlab pipeline and keep on running into 
>> this error.
>>
>> Error waiting for AMI (ami-sdfgdsgsdfgsdfg) in region (us-east-1): 
>> ResourceNotReady: failed waiting for successful resource state
>>
>> I have upgraded packer to the latest nightly build hoping that it would 
>> work, but I am still not successful. Is there a packer binary that fixes 
>> this behavior? 
>>
>> -- 
>> This mailing list is governed under the HashiCorp Community Guidelines - 
>> https://www.hashicorp.com/community-guidelines.html. Behavior in 
>> violation of those guidelines may result in your removal from this mailing 
>> list.
>>  
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/2f4f6080-cc32-41e0-866a-e163f2292bca%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/2f4f6080-cc32-41e0-866a-e163f2292bca%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/2caf0bf4-9b4c-4982-85a8-16323a88fd3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to