Issue copying file to AMI

26 views
Skip to first unread message

Mike Craig

unread,
Dec 4, 2018, 6:10:51 PM12/4/18
to Packer
Hello,

This seems like it should be an easy process.

  "provisioners": [
  {
    "type": "file",
    "source": "gcpappami/sharedComp.sh",
    "destination": "/tmp/sharedComp.sh"
  },
  {
    "type": "shell",
    "inline": ["sudo mkdir -p /aws", "sudo chown 777 -R /aws"]
  },
  {
    "type": "file",
    "source": "archive.tgz",
    "destination": "/aws/archive.tgz"
  }]



Here is the workspace in Jenkins showing the file exists:
Any help is appreciated. 

2018-12-04_15-09-25.jpg




Rickard von Essen

unread,
Dec 5, 2018, 12:19:55 AM12/5/18
to packe...@googlegroups.com
And what's the problem you are having? 

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/9e374247-b927-4646-9d74-d807f3919bce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rickard von Essen

unread,
Dec 5, 2018, 12:21:46 AM12/5/18
to packe...@googlegroups.com
Do you really intend to do "chown 777 -R /aws" maybe that was intended to be chmod?

Rickard von Essen

unread,
Dec 5, 2018, 12:22:07 AM12/5/18
to packe...@googlegroups.com
Rubber ducking... 

Mike Craig

unread,
Dec 5, 2018, 1:25:51 AM12/5/18
to packe...@googlegroups.com
Ha correct I meant chmod. I was able to get this working. Thanks though

 

From: packe...@googlegroups.com on behalf of Rickard von Essen <rickard....@gmail.com>
Sent: Tuesday, December 4, 2018 9:22 PM
To: packe...@googlegroups.com
Subject: Re: [packer] Issue copying file to AMI
 
Reply all
Reply to author
Forward
0 new messages