Hello All,
I am trying to use Amazon's provided packer scripts to create a base EKS
ami. I am using this packer script here
https://github.com/awslabs/amazon-eks-ami/blob/master/eks-worker-al2.json.
One issue that I am running into is a permission denied error for scp. I
am not too sure what I need to do to fix this though.
==> eks: Uploading ./files/ => /tmp/worker/
2019/04/22 10:53:01 packer: 2019/04/22 10:53:01 [DEBUG] Upload dir
'./files/' to '/tmp/worker/'
2019/04/22 10:53:01 packer: 2019/04/22 10:53:01 [DEBUG] Opening new ssh
session
2019/04/22 10:53:01 packer: 2019/04/22 10:53:01 [DEBUG] Starting remote scp
process: scp -rvt /tmp/worker/
2019/04/22 10:53:01 packer: 2019/04/22 10:53:01 [DEBUG] Started SCP
session, beginning transfers...
2019/04/22 10:53:01 packer: 2019/04/22 10:53:01 [DEBUG] scp: Uploading
kubelet-config-with-secret-polling.json: perms=C0644 size=779
2019/04/22 10:53:01 [INFO] (telemetry) ending file
==> eks: Terminating the source AWS instance...
==> eks: Cleaning up any extra volumes...
==> eks: No volumes to clean up, skipping
==> eks: Deleting temporary security group...
==> eks: Deleting temporary keypair...
2019/04/22 10:53:33 [INFO] (telemetry) ending amazon-ebs
2019/04/22 10:53:33 ui error: Build 'eks' errored: scp:
/tmp/worker//kubelet-config-with-secret-polling.json: Permission denied
2019/04/22 10:53:33 Builds completed. Waiting on interrupt barrier...
2019/04/22 10:53:33 machine readable: error-count []string{"1"}
Build 'eks' errored: scp:
/tmp/worker//kubelet-config-with-secret-polling.json: Permission denied
Is there any chance someone can help me solve this?
--
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/46e67e2f-7bfd-49c0-82c4-5ec1e4c8750e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.