Files
opentf/internal/command/testdata/add/module/main.tf
Kristin Laemmert 583859e510 commands: terraform add (#28874)
* command: new command, terraform add, generates resource templates

terraform add ADDRESS generates a resource configuration template with all required (and optionally optional) attributes set to null. This can optionally also pre-populate nonsesitive attributes with values from an existing resource of the same type in state (sensitive vals will be populated with null and a comment indicating sensitivity)

* website: terraform add documentation
2021-06-17 12:08:37 -04:00

17 lines
365 B
HCL

terraform {
required_providers {
// This is deliberately odd, so we can test that the correct happycorp
// provider is selected for any test_ resource added for this module
test = {
source = "happycorp/test"
}
}
}
resource "test_instance" "exists" {
// I exist!
}
module "child" {
source = "./module"
}