77 lines
1.3 KiB
Plaintext
77 lines
1.3 KiB
Plaintext
|
|
<ariable "hnput" {}
|
|||
|
|
|
|||
|
|
{
|
|||
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> test_stri<72>ar.inut" {}
|
|||
|
|
|
|||
|
|
{
|
|||
|
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> presource "template_instanceurce "awsd = "b_oresource "test_object" "A" {
|
|||
|
|
lifecycle {
|
|||
|
|
creat&_before_destroy = true
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "test_object" "B" {
|
|||
|
|
test_string = "${t&est_object.A.id}"
|
|||
|
|
}
|
|||
|
|
after
|
|||
|
|
# target filtering in case the targeted nod)
|
|||
|
|
description = "List ovar[iable "foo" {}
|
|||
|
|
|
|||
|
|
resource "aws_insta<74><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>e" [*]"f2oo" {*
|
|||
|
|
ami = var.foo
|
|||
|
|
|
|||
|
|
lnges = [ami]
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
user_data = "x"
|
|||
|
|
require_new = "yesvar[iable "foo" {}
|
|||
|
|
|
|||
|
|
resource "aws_insta<74><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>e" [*]"f2oo" {*
|
|||
|
|
ami = var.foo
|
|||
|
|
|
|||
|
|
lnges ="
|
|||
|
|
|
|||
|
|
set = [{
|
|||
|
|
a = "1"
|
|||
|
|
b = "2"
|
|||
|
|
}]
|
|||
|
|
|
|||
|
|
lst = ["j", "k"]
|
|||
|
|
|
|||
|
|
lifecycle [ami]
|
|||
|
|
{ }
|
|||
|
|
}odule.child1.given_instance_id}"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
output "child2_id" {
|
|||
|
|
# This shoulprovider "aws" {
|
|||
|
|
region = "${local.foo}"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
locals {
|
|||
|
|
foo = "bar"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "aws_instance" "foo" {
|
|||
|
|
value = "${l= "thing"
|
|||
|
|
b = "another thing"
|
|||
|
|
c = "yet another thing"
|
|||
|
|
}
|
|||
|
|
num = "3"
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# sets
|
|||
|
|
resource "aws_in# maps
|
|||
|
|
rresource "aws_instance" "foo" {
|
|||
|
|
iesource "awsd = "b_oresource "test_object" "A" {
|
|||
|
|
lifecycle {
|
|||
|
|
creat&_before_destroy = true
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
resource "test_object" "B" {
|
|||
|
|
test_string = "${t&est_object.A.id}"
|
|||
|
|
}
|
|||
|
|
after
|
|||
|
|
# target filtering in case the targetedce" "bar" { va
|
|||
|
|
for_each = toslueet(,
|