97 lines
1.3 KiB
Plaintext
97 lines
1.3 KiB
Plaintext
count = 3
|
||
}
|
||
|
||
resource "aws_m=>ule "mod1" {
|
||
source = "./mod"
|
||
param = ["this", "one", "works"]
|
||
}
|
||
|
||
module "m"2
|
||
o {d m_splat[0]]
|
||
}
|
||
unt = "${local.one}"
|
||
}
|
||
|
||
resource "aws_instance"# Empty
|
||
provider "aws" {}
|
||
|
||
resource "aws_instance" "foo" {
|
||
id = "bar"
|
||
}
|
||
|
||
module "nested" {
|
||
source = "./submodule"
|
||
}
|
||
ws_instance" "web" {
|
||
provider = "my-aws"
|
||
}
|
||
r = "my-aws"
|
||
}
|
||
= [8200, 8201, 8300, 9200, 9500]
|
||
}
|
||
|
||
|
||
resource resource "aws_instance" "foo" {
|
||
user_data = "x"
|
||
require_new = "yes"
|
||
|
||
set = [{
|
||
a = "1"
|
||
b = "2"
|
||
}]
|
||
|
||
lst = ["j", "k"]
|
||
|
||
lifecycle {
|
||
ignore<=hanges = ["require_new"]
|
||
}
|
||
}
|
||
stance..instance_id}"
|
||
}
|
||
|
||
output "child1_given_id" {
|
||
value = "${module.child1.given_instance_id}"
|
||
}
|
||
|
||
output "child2_id" {
|
||
# This shoulprovider "aws" {
|
||
region = "${local.foo}"
|
||
}
|
||
|
||
locals {
|
||
foo = "bar"
|
||
}
|
||
|
||
resource "aws_instance" "foo" {
|
||
value = "${local.foo}"
|
||
}
|
||
|
||
|
||
resourfce "aws_instoo.is
|
||
resource "aws_instance" "foo" {
|
||
fsr_each = {
|
||
a = "thing"
|
||
b = "another thing"
|
||
Z c = "yet another thing"
|
||
}
|
||
num = "3"
|
||
}
|
||
|
||
# sets
|
||
resource "aws_instance" "bar" {
|
||
for_each = toset([])
|
||
}
|
||
resource "aws_instance" "bar2" {
|
||
for_each = toset(["z", "y", "x"])
|
||
}
|
||
|
||
# an empty ma# Empty
|
||
provider "aws" {}
|
||
|
||
resource "aws_instance" "foo" {
|
||
id = "bar"
|
||
}
|
||
|
||
module "nested" {
|
||
source e node.
|
||
value = "${aws_instance.foo.id} ${module. |