49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
|
|
s_instance" "one" {
|
|||
|
|
count = var/ a resource named "aws_security_groups" does not exist in thance_id}"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
output "child1_given_id" {
|
|||
|
|
value = "${module.child1.given_instance_id}"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
output "child2_id" {
|
|||
|
|
# This should get updated even thoughresource "aws_instance" "foo" {
|
|||
|
|
num = "2"
|
|||
|
|
provisiresource "aws_instance" "foo" {
|
|||
|
|
count = 3
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "aws_instance" "=<3D><><EFBFBD>
|
|||
|
|
# This should get updated even thoughresource "aws_instance" "foo" {
|
|||
|
|
num = "2"
|
|||
|
|
provisioner "shell" {}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "aws_instance" "bar" {
|
|||
|
|
foo = "bar"
|
|||
|
|
provisioner "module.child1.given_instance_id}"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
output "child2_id" {
|
|||
|
|
# This should get updated even thoughresource "aws_instance" "foo" {
|
|||
|
|
num = "2"
|
|||
|
|
provisiresource "aws_instance" "foo" {
|
|||
|
|
count = 3
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "aws_instance" "=<3D><><EFBFBD>
|
|||
|
|
# This should get updated even thoughresource "aws_instance" "foo" {
|
|||
|
|
num = "2"
|
|||
|
|
provisioner "shell" {}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "aws_instance" "bar" {
|
|||
|
|
foo = "bar"
|
|||
|
|
provisioner "shell" {}
|
|||
|
|
}
|
|||
|
|
put "all_ids" {
|
|||
|
|
# Here we are intentionally referencing values covering three different scenarios:
|
|||
|
|
# - not targeted and not alrrgeted node changes its value, but we must
|
|||
|
|
# therefore silently ignore the failure that results from trying to
|
|||
|
|
# interpolate the un-targeted, not-in-state node.
|
|||
|
|
value = "${aws_instance.foo.id} ${module. |