Skip to content

Commit

Permalink
add note about import vs apply for project service resources (#4949)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and danawillow committed Nov 21, 2019
1 parent c6afee0 commit 023725f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/docs/r/google_project_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ Project services can be imported using the `project_id` and `service`, e.g.
```
$ terraform import google_project_service.my_project your-project-id/iam.googleapis.com
```

Note that unlike other resources that fail if they already exist, `terraform apply` can be successfully used to re-enable already enabled services. This means that when importing existing resources into Terraform, you can either import the `google_project_service` resources or treat them as new infrastructure and run `terraform apply` to re-enable them and add them to state.

0 comments on commit 023725f

Please sign in to comment.