This website requires JavaScript.
Explore
Help
Sign In
ResiLien
/
terraform
Watch
2
Star
0
Fork
You've already forked terraform
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
c8cd0b1e74
terraform
/
internal
/
command
/
testdata
/
import-provider
/
main.tf
7 lines
72 B
Terraform
Raw
Normal View
History
Unescape
Escape
command/import: load configurations and allow empty config dirs Fixes #7774 This modifies the `import` command to load configuration files from the pwd. This also augments the configuration loading section for the CLI to have a new option (default false, same as old behavior) to allow directories with no Terraform configurations. For import, we allow directories with no Terraform configurations so this option is set to true.
2016-11-02 18:30:28 +01:00
provider
"
test
"
{
foo
=
"
bar
"
}
command: require resource to be in config before import Previously we encouraged users to import a resource and _then_ write the configuration block for it. This ordering creates lots of risk, since for various reasons users can end up subsequently running Terraform without any configuration in place, which then causes Terraform to want to destroy the resource that was imported. Now we invert this and require a minimal configuration block be written first. This helps ensure that the user ends up with a correlated resource config and state, protecting against any inconsistency caused by typos. This addresses #11835.
2017-05-17 03:26:20 +02:00
resource
"
test_instance
"
"
foo
"
{
}