If the current run with it doesn't work i'll run it with the packer_log and 
put some output here. I appreciate your help thus far.


On Tuesday, January 15, 2019 at 9:52:47 AM UTC-5, Rickard von Essen wrote:
>
> If you run with PACKER_LOG=1 I think you will see a line every time it 
> polls AWS for the state.
>
> On Tue, Jan 15, 2019 at 3:36 PM Morgan Andrew Davis <[email protected] 
> <javascript:>> wrote:
>
>> Scratch what I just posted. I grabbed the wrong file. examplepacker.json 
>> is: 
>>
>>
>> {
>> "_comment": "json comment... This file uses the virtualbox builder and 
>> then feeds it into the amazon post processor. You can remove the post 
>> processor and the builder can work by itself. May need to be modified to 
>> work with another source image",
>> "builders": [{
>> "type": "virtualbox-ovf",
>> "source_path": "./atomicorp-aeo-hub.ova",
>> "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}}"
>>         }
>> }]
>> }
>> My bad, I have a lot of files open.
>> On Tuesday, January 15, 2019 at 9:32:23 AM UTC-5, Morgan Andrew Davis 
>> wrote:
>>>
>>> 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]> 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].
>>>>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/48215ae3-1005-4cc4-a205-4642e01fe65c%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/48215ae3-1005-4cc4-a205-4642e01fe65c%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/bfea7a77-6921-4ae4-8d3c-4a6a6c57837c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to