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

Switching from local to cloud execution causes error #711

Closed
DanielMSchmidt opened this issue May 18, 2021 · 2 comments · Fixed by #758
Closed

Switching from local to cloud execution causes error #711

DanielMSchmidt opened this issue May 18, 2021 · 2 comments · Fixed by #758
Labels
bug Something isn't working cdktf-cli terraform cloud
Milestone

Comments

@DanielMSchmidt
Copy link
Contributor

DanielMSchmidt commented May 18, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

cdktf & Language Versions

  • CDKTF: 0.3.0

Expected Behavior

  • No error in terraform cloud

Actual Behavior

The Terraform Cloud run fails with:

Terraform v0.15.3
on linux_amd64

Setup failed: failed unpacking terraform config: illegal slug error: invalid symlink (".terraform/providers/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64" -> "../../../../../../../../../../../.terraform.d/plugin-cache/registry.terraform.io/hashicorp/null/3.1.0/darwin_amd64") has external target�

Steps to Reproduce

  1. Create a project based on the local template
  2. Deploy and destroy resources
  3. Change to cloud run and apply, the error will happen

Workaround

Removing the cdktf.out folder helps (thanks @ansgarm), it seems like terraform init leaves symlinks that can not be uploaded.

@DanielMSchmidt DanielMSchmidt added bug Something isn't working new Un-triaged issue labels May 18, 2021
@danieldreier danieldreier added this to the v0.5 milestone May 19, 2021
@danieldreier danieldreier removed the new Un-triaged issue label May 19, 2021
@skorfmann
Copy link
Contributor

skorfmann commented May 20, 2021

In general, the .terraform folder should be ignored when uploading the stack to the Terraform Cloud.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2022

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working cdktf-cli terraform cloud
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants