Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup failed: failed unpacking terraform config: lstat #18

Open
dkirrane opened this issue Jun 24, 2021 · 2 comments
Open

Setup failed: failed unpacking terraform config: lstat #18

dkirrane opened this issue Jun 24, 2021 · 2 comments

Comments

@dkirrane
Copy link

dkirrane commented Jun 24, 2021

TFC Run triggered using this GH Action fail with below issue.
Same error does not happen when I Queue plan manually from the Terraform Cloud UI.

Terraform v1.0.0
on linux_amd64

Setup failed: failed unpacking terraform config: lstat /tmp/terraform-build-worker01234676/slug: no such file or directory

I've tried configure the workspace with both UI/VCS-driven and API-driven workflows. Same issue in both cases.

Action step:

       - name: Terraform Cloud Run
         uses: kvrhdn/tfe-run@v1.0.9
         with:
           token: ${{ secrets.TFC_ACCESS_TOKEN }}
           organization: MyOpg
           workspace: my-workspace
           type: apply
           wait-for-completion: true
           message: |
             Run triggered using tfe-run (commit: ${{ github.SHA }})
         id: tfe-run
@dkirrane
Copy link
Author

dkirrane commented Jul 1, 2021

This action obviously uses API driven workflow and I hadn't checked out code.
So it failed with failed unpacking terraform config because there was no tf config for Terraform Cloud to run.

I'll keep open. Maybe improvement can be made to docs to ensure user has checkout step?

        - name: Checkout
          uses: actions/checkout@v2

@kvrhdn
Copy link
Owner

kvrhdn commented Jul 1, 2021

Glad you got it figured out 🙂 And yeah, good idea! We could add a small example with checkout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants