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
20e9d8e28c
terraform
/
internal
/
command
/
testdata
/
import-provider-var-file
/
main.tf
9 lines
98 B
Terraform
Raw
Normal View
History
Unescape
Escape
command/import: document -var-file and -var is available #11211
2017-01-24 22:01:23 +01:00
variable
"
foo
"
{
}
provider
"
test
"
{
foo
=
"
${
var
.
foo
}
"
}
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
"
{
}