command/import: remove -provider command line argument#24090
command/import: remove -provider command line argument#24090mildwonkey merged 1 commit intomasterfrom
Conversation
Now that #22862 has been merged, terraform will properly pick up the resource provider configuration from state. We can remove the deprecated `-provider` flag.
| @@ -156,36 +155,6 @@ func (c *ImportCommand) Run(args []string) int { | |||
| return 1 | |||
| } | |||
|
|
|||
There was a problem hiding this comment.
Part of me wants to keep the -provider argument definition above and make it generate a helpful error message below if it's non-empty. 🤔
With that said, I don't have a ready-to-go suggestion here for an actionable direction that error message could give. "Specify the provider in the configuration instead" is the gist of it, but I expect that most folks won't really know what to do about it.
So with all of that said, I think it'll be okay to just break this here and then we can describe the migration path in the changelog and/or upgrade guide where we'll have more "space" to describe what the resolution is and link to other relevant documentation.
|
Thanks! |
|
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. |
Now that #22862 has been merged, terraform will properly pick up the
resource provider configuration from state. We can therefore remove the deprecated
-providerflag.