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

fix(cli): dont upload .terraform folders #758

Merged
merged 4 commits into from
Jun 23, 2021

Conversation

DanielMSchmidt
Copy link
Contributor

Closes #711

@DanielMSchmidt DanielMSchmidt added this to the v0.4.x milestone Jun 4, 2021
@DanielMSchmidt DanielMSchmidt force-pushed the switch-local-to-cloud-causes-error branch 2 times, most recently from 8a9fa9e to 4c3b696 Compare June 15, 2021 11:23
@DanielMSchmidt DanielMSchmidt force-pushed the switch-local-to-cloud-causes-error branch from 4c3b696 to 255b3dd Compare June 16, 2021 12:12
@DanielMSchmidt DanielMSchmidt force-pushed the switch-local-to-cloud-causes-error branch from 255b3dd to cb76c38 Compare June 23, 2021 12:34
@DanielMSchmidt DanielMSchmidt force-pushed the switch-local-to-cloud-causes-error branch 3 times, most recently from ddd92c7 to 34bdd73 Compare June 23, 2021 13:59
@DanielMSchmidt DanielMSchmidt force-pushed the switch-local-to-cloud-causes-error branch 2 times, most recently from f27e2c8 to d3f3989 Compare June 23, 2021 14:46
@DanielMSchmidt DanielMSchmidt force-pushed the switch-local-to-cloud-causes-error branch from d3f3989 to 7d0e7b5 Compare June 23, 2021 14:49
@@ -127,6 +130,8 @@ export class TerraformCloud implements Terraform {

this.configurationVersionId = version.id

this.removeLocalTerraformDirectory()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two modes for Terraform Cloud: local execution and remote execution. Could this possibly break local execution or be unwanted (as it destroys the local cache containing already initialized Terraform providers)? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would guess no as this is the terraform cloud implementation of this function. The Cli implementation would need to be able to deal with a blank state so it should work IMHO

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this should be ok - since that's scoped to the stack anyway. Even if you had multiple stacks targeting local and cloud, it should still be ok.

@@ -127,6 +130,8 @@ export class TerraformCloud implements Terraform {

this.configurationVersionId = version.id

this.removeLocalTerraformDirectory()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this should be ok - since that's scoped to the stack anyway. Even if you had multiple stacks targeting local and cloud, it should still be ok.

@DanielMSchmidt DanielMSchmidt merged commit 059f852 into main Jun 23, 2021
@DanielMSchmidt DanielMSchmidt deleted the switch-local-to-cloud-causes-error branch June 23, 2021 21:26
@github-actions
Copy link
Contributor

I'm going to lock this pull request 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 related to this change, 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 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switching from local to cloud execution causes error
3 participants