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 github_repository_file import documentation #443

Merged
merged 1 commit into from
May 4, 2020
Merged

Fix github_repository_file import documentation #443

merged 1 commit into from
May 4, 2020

Conversation

winterjung
Copy link
Contributor

Attach missing _file suffix

Without _file suffix, below error message is occurred.

$ terraform import github_repository.gitignore example/.gitignore 
Error: resource address "github_repository.gitignore" does not exist in the configuration.

Before importing this resource, please create its configuration in the root module. For example:

resource "github_repository" "gitignore" {
  # (resource arguments)
}

After fixing

$ terraform import github_repository_file.gitignore example/.gitignore
github_repository_file.gitignore: Importing from ID "example/.gitignore"...
github_repository_file.gitignore: Import prepared!
  Prepared github_repository_file for import
github_repository_file.gitignore: Refreshing state... [id=example/.gitignore]

Import successful!

The resources that were imported are shown above. These resources are now in
your Terraform state and will henceforth be managed by Terraform.

@ghost ghost added size/XS Type: Documentation Improvements or additions to documentation labels May 3, 2020
@anGie44 anGie44 self-requested a review May 4, 2020 05:54
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @jungwinter! 🚀

@anGie44 anGie44 added this to the v2.8.0 milestone May 4, 2020
@anGie44 anGie44 merged commit efc13d0 into integrations:master May 4, 2020
anGie44 added a commit that referenced this pull request May 4, 2020
@winterjung winterjung deleted the patch-1 branch May 5, 2020 03:43
kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
Fix github_repository_file import documentation
kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Type: Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants