-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document how to import resources into Terraform (#39701)
* Document how to import resources into Terraform Closes #9720 Add a guide to importing Teleport resources into Terraform. While it is mostly straightforward to add an `import` block, determining the ID to use for each resource requires some planning, since the ID depends on the resource type. This change also edits the Terraform provider guide, since testing out this guide was required to test out the resource import workflow: - Minor style and readability tweaks. - Remove the `-f` flag in `tctl create`: This way a user doesn't accidentally override an existing `terraform` role - Add a `tbot` data directory in an unprivileged path in the working directory of the setup script. This way, we don't need to give `teleport` ownership of the default Machine ID output directory. - Fix identity file paths. These should point to a file called `identity` in the `terraform-identity` directory. - Edit the "Next steps" section to point to the resource import guide. * Respond to Tener feedback - Edit the "Terraform Provider" guide title to describe the purpose of the guide more explicitly, distinguishing it from the new guide. - Describe general rules for finding the ID of a resource, rather than using a comprehensive table. - Incorporate the import instructions into the setup guide. This way, we don't need to clarify the relationship between two guides, which wasn't entirely clear at the outset. - Add a more explicit benefit statement for importing resources. - Use the `-v` flag in `rm` commands * Update docs/pages/management/dynamic-resources/terraform-provider.mdx Co-authored-by: Roman Tkachenko <[email protected]> --------- Co-authored-by: Roman Tkachenko <[email protected]>
- Loading branch information
Showing
2 changed files
with
107 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters