Sure. The command is export "AWS_MAX_ATTEMPTS=1000"; export
"AWS_POLL_DELAY_SECONDS=10"; packer build ./examplepacker.json where
examplepacker.json has the following inside:
{
"builders": [{
"type": "vmware-vmx",
"source_path":
"./output-atomicorp-aeo-hub-vmware-iso/atomicorp-aeo-hub.vmx",
"ssh_pty": "true",
"ssh_username": "root",
"ssh_password": "atomicorp",
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo 'atomicorp' | sudo -S shutdown -P now",
"format": "ova"
}],
"post-processors" : [{
"type": "amazon-import",
"access_key": "",
"secret_key": "",
"region": "us-east-1",
"s3_bucket_name": "packertestbucket",
"tags": {
"Description": "packer/boxcutter amazon-import {{timestamp}}"
}
}]
}
Note that I removed the access and secret key to post the rest here. I'm
fairly certain that part is right and I don't need to share that since it
is the company's. Is this what you wanted or did you want the terminal
output or something else? I am going to go ahead and try and run this using
the numbers you posted up top.
On Tuesday, January 15, 2019 at 9:24:28 AM UTC-5, Rickard von Essen wrote:
>
> Could you show how how done that, you shouldn't get that if those take
> effect. (I would increase the polling intervall to something larger like
> 60s and set the max attempts to something more sane like 360).
>
> On Tue, Jan 15, 2019 at 3:19 PM Morgan Andrew Davis <[email protected]
> <javascript:>> wrote:
>
>> Hello again. I was hoping someone could help me with another issue.
>> Hopefully, this will be the last one for the current project. When I am
>> running an amazon import with packer using the AWS_MAX_ATTEMPTS thing I get
>> an error like: ResourceNotReady: waiting for successful resource state.
>> Even when I set the max attempts and the interval to something ridiculous
>> like 1000 and 10 it still gives me this. Does anyone have advice as to how
>> to overcome this? I appreciate any help you can give me.
>>
>> --
>> 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/88024ca4-3e93-4b04-9421-bf9c4b1c09be%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/packer-tool/88024ca4-3e93-4b04-9421-bf9c4b1c09be%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/b822008c-03a8-467a-aff9-7674a2ca49c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.