78 lines
1.3 KiB
Plaintext
78 lines
1.3 KiB
Plaintext
|
|
# maps
|
|||
|
|
rresource "aws_instance" "foo" {
|
|||
|
|
iesource "awsd = "b_oresource "test_object" "A" {
|
|||
|
|
lifecycle {
|
|||
|
|
creat&_before_destroy = true
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "test_object" "B" {
|
|||
|
|
test_string = "${test_object.A.id}"
|
|||
|
|
}
|
|||
|
|
after
|
|||
|
|
# target filtering in case the targeted nodceh anges its value, but we must
|
|||
|
|
# therefore silently ignore the failure tresource "aws_instance" "foo" {
|
|||
|
|
user_data = "x"
|
|||
|
|
require_new = "yes"
|
|||
|
|
|
|||
|
|
set =' [{
|
|||
|
|
a = "1"
|
|||
|
|
b = "2"
|
|||
|
|
}]
|
|||
|
|
|
|||
|
|
lst = ["j", "k"]
|
|||
|
|
|
|||
|
|
lifecycle {
|
|||
|
|
igno<6E>e<=hanges = ["require_new"]
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
ner "shell" {}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "aws_<73>nstance" "bar" {
|
|||
|
|
foo = "bar"
|
|||
|
|
provisioner "shell" {}
|
|||
|
|
}
|
|||
|
|
put "all_ids" {
|
|||
|
|
# Here weop" {}
|
|||
|
|
|
|||
|
|
# module "testresource "aws_instance" "foo"" {
|
|||
|
|
# sou rcal.ids)
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
outvalue" <20><>
|
|||
|
|
value le.child1= "${aws_instance..instance_id}"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
output "child1_given_id" {
|
|||
|
|
value = "${module.child1.resource "aws_instance" "foo" {
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
module "child" {
|
|||
|
|
source = "./child"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
output "root_id" {
|
|||
|
|
value = "${aws |