-
Notifications
You must be signed in to change notification settings - Fork 76
generate: Add support for import
configuration examples with the id
attribute
#495
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
Conversation
import
configuration examples with the id
attribute
| `.ExampleFile` | string | Path to the file with the terraform configuration example | | ||
| `.ProviderName` | string | Canonical provider name (ex. `terraform-provider-random`) | | ||
| `.ProviderShortName` | string | Short version of the rendered provider name (ex. `random`) | | ||
| Field | Type | Description | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This diff is much cleaner if you hide whitespace in the GitHub UI PR settings 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me overall, just left a comment about the file naming
9caf681
to
c203513
Compare
109a6c1
to
efd23ba
Compare
Related Issue
Closes #472
Some of the acceptance tests I updated used the scaffolding repo, which doesn't have import shell examples in the repo, so I added those here: hashicorp/terraform-provider-scaffolding-framework#306
We probably should add some import configs as well once we release this 👍🏻
Description
This PR adds support for defining an example import TF configuration file in the same location as the existing
import.sh
file:examples/resources/<resource name>/import-by-string-id.tf
I'm intentionally choosing the
id
suffix following import because identity should probably be it's own config file (import-by-identity.tf
for example). Since it has a different TF version requirement and can live next to the other import methods.Rollback Plan
Changes to Security Controls
No