mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-01-08 23:00:30 -05:00
* 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
17 lines
365 B
HCL
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"
|
|
} |