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

Update remote.html.markdown #5466

Merged
merged 1 commit into from
Mar 6, 2016
Merged

Update remote.html.markdown #5466

merged 1 commit into from
Mar 6, 2016

Conversation

puhrez
Copy link

@puhrez puhrez commented Mar 4, 2016

these changes were added to reflect what was required to run the tutorial on my local machine. Below is my context for the above changes:

[2016-03-04T18:22:44] micperez in terraform_test  
λ terraform remote config -backend-config="name=puhrez/getting-started"
missing 'access_token' configuration or ATLAS_TOKEN environmental variable

If the error message above mentions requiring or modifying configuration
options, these are set using the `-backend-config` flag. Example:
-backend-config="name=foo" to set the `name` configuration

[2016-03-04T18:23:27] micperez in terraform_test  
λ export ATLAS_TOKEN=<REDACTED>

[2016-03-04T18:24:12] micperez in terraform_test  
λ terraform remote config -backend-config="name=puhrez/getting-started"
Remote state management enabled
Remote state configured and pulled.

[2016-03-04T18:24:16] micperez in terraform_test  
λ terraform push -name="puhrez/getting-started"
An error has occurred while archiving the module for uploading:
error detecting VCS: no VCS found for path: /Users/micperez/code/terraform_test

[2016-03-04T18:24:39] micperez in terraform_test  
λ git init
Initialized empty Git repository in /Users/micperez/code/terraform_test/.git/

[2016-03-04T18:25:09] micperez in terraform_test [git:master]  
λ terraform push -name="puhrez/getting-started"
An error has occurred while archiving the module for uploading:
error getting git commit: exit status 128
stdout: 
stderr: fatal: bad default revision 'HEAD'

[2016-03-04T18:25:12] micperez in terraform_test [git:master]  
λ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    .terraform/
    example.tf
    terraform.tfstate.backup

nothing added to commit but untracked files present (use "git add" to track)

[2016-03-04T18:25:17] micperez in terraform_test [git:master]  
λ git add example.tf

[2016-03-04T18:25:24] micperez in terraform_test [git:master]  
λ git commit -m "init commit"
[master (root-commit) 34c4fa5] init commit
 1 file changed, 10 insertions(+)
 create mode 100644 example.tf

[2016-03-04T18:25:32] micperez in terraform_test [git:master]  
λ terraform push -name="puhrez/getting-started"
Uploading Terraform configuration...
Configuration "puhrez/getting-started" uploaded! (v1)

these changes were added to reflect what was required to run the tutorial on my local machine. Below is my context for the above changes:
```shell
[2016-03-04T18:22:44] micperez in terraform_test  
λ terraform remote config -backend-config="name=puhrez/getting-started"
missing 'access_token' configuration or ATLAS_TOKEN environmental variable

If the error message above mentions requiring or modifying configuration
options, these are set using the `-backend-config` flag. Example:
-backend-config="name=foo" to set the `name` configuration
[2016-03-04T18:23:27] micperez in terraform_test  
λ export ATLAS_TOKEN=<REDACTED>
[2016-03-04T18:24:12] micperez in terraform_test  
λ terraform remote config -backend-config="name=puhrez/getting-started"
Remote state management enabled
Remote state configured and pulled.
[2016-03-04T18:24:16] micperez in terraform_test  
λ terraform push -name="puhrez/getting-started"
An error has occurred while archiving the module for uploading:
error detecting VCS: no VCS found for path: /Users/micperez/code/terraform_test
[2016-03-04T18:24:39] micperez in terraform_test  
λ git init
Initialized empty Git repository in /Users/micperez/code/terraform_test/.git/
[2016-03-04T18:25:09] micperez in terraform_test [git:master]  
λ terraform push -name="puhrez/getting-started"
An error has occurred while archiving the module for uploading:
error getting git commit: exit status 128
stdout: 
stderr: fatal: bad default revision 'HEAD'

[2016-03-04T18:25:12] micperez in terraform_test [git:master]  
λ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	.terraform/
	example.tf
	terraform.tfstate.backup

nothing added to commit but untracked files present (use "git add" to track)
[2016-03-04T18:25:17] micperez in terraform_test [git:master]  
λ git add example.tf
[2016-03-04T18:25:24] micperez in terraform_test [git:master]  
λ git commit -m "init commit"
[master (root-commit) 34c4fa5] init commit
 1 file changed, 10 insertions(+)
 create mode 100644 example.tf
[2016-03-04T18:25:32] micperez in terraform_test [git:master]  
λ terraform push -name="puhrez/getting-started"
Uploading Terraform configuration...
Configuration "puhrez/getting-started" uploaded! (v1)
```
@jen20
Copy link
Contributor

jen20 commented Mar 6, 2016

Hi @xbs13! This is indeed correct for currently released versions, so I'll merge this for now. However, as pointed out in the discussion of #4611, we should treat the requirement for a VCS as a bug, and fix and update this documentation as appropriate once that is complete. Thanks for the pull request!

jen20 added a commit that referenced this pull request Mar 6, 2016
Fix Atlas tutorial steps for currently released version
@jen20 jen20 merged commit 3eb0a95 into hashicorp:master Mar 6, 2016
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
terraformbot pushed a commit that referenced this pull request Mar 7, 2016
[origin/master] Merge pull request #5466 from xbs13/patch-2
3eb0a95
@ghost
Copy link

ghost commented Aug 16, 2019

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 have 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.

@ghost ghost locked and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants