Merge pull request #27437 from hashicorp/jbardin/cleanup
remove unused testdata files
This commit is contained in:
commit
751e359ee5
|
@ -1,7 +0,0 @@
|
|||
resource "aws_instance" "bar" {
|
||||
count = 2
|
||||
require_new = "xyz"
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
variable "pass" {
|
||||
}
|
||||
|
||||
variable "value" {
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
num = "2"
|
||||
compute = "value"
|
||||
compute_value = "${var.value}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
connection {
|
||||
host = "localhost"
|
||||
type = "telnet"
|
||||
}
|
||||
|
||||
provisioner "shell" {
|
||||
foo = "${aws_instance.foo.value}"
|
||||
connection {
|
||||
host = "localhost"
|
||||
type = "telnet"
|
||||
user = "superuser"
|
||||
port = 2222
|
||||
password = "${var.pass}"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
resource "aws_instance" "bar" {
|
||||
for_each = toset(["a"])
|
||||
provisioner "shell" {
|
||||
when = "destroy"
|
||||
command = "echo ${each.key}"
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
module "grandchild" {
|
||||
source = "../grandchild"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
# Nothing here!
|
|
@ -1,3 +0,0 @@
|
|||
module "child" {
|
||||
source = "./child"
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
provider "aws" {}
|
||||
resource "aws_instance" "db" {}
|
||||
resource "aws_instance" "web" {
|
||||
foo = "${aws_instance.db.id}"
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
provider "aws" {}
|
||||
|
||||
resource "aws_lc" "foo" {}
|
||||
|
||||
resource "aws_asg" "foo" {
|
||||
lc = "${aws_lc.foo.id}"
|
||||
|
||||
lifecycle { create_before_destroy = true }
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
provider "aws" {}
|
||||
resource "aws_instance" "server" {}
|
|
@ -1,16 +0,0 @@
|
|||
module "consul" {
|
||||
foo = "${aws_security_group.firewall.foo}"
|
||||
source = "./consul"
|
||||
}
|
||||
|
||||
provider "aws" {}
|
||||
|
||||
resource "aws_security_group" "firewall" {}
|
||||
|
||||
resource "aws_instance" "web" {
|
||||
security_groups = [
|
||||
"foo",
|
||||
"${aws_security_group.firewall.foo}",
|
||||
"${module.consul.security_group}"
|
||||
]
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
variable "bar" {}
|
||||
output "value" { value = "${var.bar}" }
|
|
@ -1,6 +0,0 @@
|
|||
module "bar" {
|
||||
source = "./bar"
|
||||
bar = "${var.foo}"
|
||||
}
|
||||
|
||||
variable "foo" {}
|
|
@ -1,4 +0,0 @@
|
|||
module "foo" {
|
||||
source = "./foo"
|
||||
foo = "bar"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
provider "aws" {}
|
|
@ -1,9 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
resource "aws_instance" "web" {
|
||||
count = "${aws_instance.foo.bar}"
|
||||
}
|
||||
|
||||
resource "aws_load_balancer" "weblb" {
|
||||
members = "${aws_instance.web.*.id}"
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
resource "aws_instance" "web" {
|
||||
count = 3
|
||||
}
|
||||
|
||||
resource "aws_load_balancer" "weblb" {
|
||||
members = "${aws_instance.web.*.id}"
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
variable "foo" {
|
||||
default = "bar"
|
||||
description = "bar"
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
foo = "${aws_security_group.firewall.value}"
|
||||
}
|
||||
|
||||
resource "aws_security_group" "firewall" {}
|
||||
|
||||
resource "aws_instance" "web" {
|
||||
ami = "${var.foo}"
|
||||
security_groups = [
|
||||
"foo",
|
||||
"${aws_security_group.firewall.foo}"
|
||||
]
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
resource "aws_instance" "web" {}
|
||||
|
||||
resource "aws_instance" "db" {
|
||||
depends_on = ["aws_instance.web"]
|
||||
count = 2
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
resource "aws_instance" "web" {}
|
||||
|
||||
resource "aws_instance" "db" {
|
||||
depends_on = ["aws_instance.web"]
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
provider "aws" {}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
ami = "abc"
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
provider "aws" {}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
foo = "${aws_instance.foo.id}"
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
variable "in" {}
|
||||
|
||||
aws_instance "foo" {}
|
|
@ -1,5 +0,0 @@
|
|||
output "data" {
|
||||
value = "foo"
|
||||
}
|
||||
|
||||
aws_instance "foo" {}
|
|
@ -1,8 +0,0 @@
|
|||
module "foo" {
|
||||
source = "./foo"
|
||||
}
|
||||
|
||||
module "bar" {
|
||||
source = "./bar"
|
||||
in = "${module.foo.data}"
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
output "bar" {
|
||||
value = "baz"
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
module "child" {
|
||||
source = "./child"
|
||||
in = "${aws_instance.foo.id}"
|
||||
}
|
||||
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
output "bar" {
|
||||
value = "baz"
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
module "child" {
|
||||
source = "./child"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
value = "${module.child.bar}"
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
resource "aws_instance" "foo" {
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
resource "aws_instance" "db" {}
|
||||
|
||||
resource "aws_instance" "web" {
|
||||
foo = "${aws_instance.lb.id}"
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
provider "aws" {}
|
||||
|
||||
resource "aws_security_group" "firewall" {}
|
||||
|
||||
resource "aws_instance" "web" {
|
||||
security_groups = [
|
||||
"foo",
|
||||
"${aws_security_group.firewall.foo}"
|
||||
]
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
resource "aws_instance" "server" {}
|
||||
|
||||
output "security_group" { value = "" }
|
|
@ -1,16 +0,0 @@
|
|||
module "consul" {
|
||||
foo = "${aws_security_group.firewall.foo}"
|
||||
source = "./consul"
|
||||
}
|
||||
|
||||
provider "aws" {}
|
||||
|
||||
resource "aws_security_group" "firewall" {}
|
||||
|
||||
resource "aws_instance" "web" {
|
||||
security_groups = [
|
||||
"foo",
|
||||
"${aws_security_group.firewall.foo}",
|
||||
"${module.consul.security_group}"
|
||||
]
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
resource "aws_instance" "bar" {
|
||||
var = "${aws_instance.foo.whatever}"
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
module "child" {
|
||||
source = "./child"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
|
@ -1,3 +0,0 @@
|
|||
module "child" {
|
||||
source = "./child"
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
output "foo" {
|
||||
value = "${aws_instance.foo.value}"
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
provider "aws" {
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
alias = "foo"
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
alias = "bar"
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
provider "aws" {}
|
||||
provider "digitalocean" {}
|
||||
provider "openstack" {}
|
||||
|
||||
resource "aws_load_balancer" "weblb" {}
|
|
@ -1,33 +0,0 @@
|
|||
variable "foo" {
|
||||
default = "bar"
|
||||
description = "bar"
|
||||
}
|
||||
|
||||
provider "aws" {}
|
||||
|
||||
resource "aws_security_group" "firewall" {}
|
||||
|
||||
resource "aws_instance" "web" {
|
||||
ami = "${var.foo}"
|
||||
security_groups = [
|
||||
"foo",
|
||||
"${aws_security_group.firewall.foo}"
|
||||
]
|
||||
provisioner "winrm" {
|
||||
cmd = "echo foo"
|
||||
}
|
||||
provisioner "winrm" {
|
||||
cmd = "echo bar"
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_load_balancer" "weblb" {
|
||||
provisioner "shell" {
|
||||
cmd = "add ${aws_instance.web.id}"
|
||||
connection {
|
||||
host = "localhost"
|
||||
type = "magic"
|
||||
user = "${aws_security_group.firewall.id}"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
resource "aws_instance" "web" {
|
||||
count = 3
|
||||
|
||||
provisioner "remote-exec" {
|
||||
inline = ["echo ${aws_instance.web.0.foo}"]
|
||||
}
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
resource "aws_instance" "web" {
|
||||
count = 3
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
variable "foo" {
|
||||
default = "bar"
|
||||
description = "bar"
|
||||
}
|
||||
|
||||
provider "aws" {
|
||||
foo = "${openstack_floating_ip.random.value}"
|
||||
}
|
||||
|
||||
resource "aws_security_group" "firewall" {}
|
||||
|
||||
resource "aws_instance" "web" {
|
||||
ami = "${var.foo}"
|
||||
security_groups = [
|
||||
"foo",
|
||||
"${aws_security_group.firewall.foo}"
|
||||
]
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
provider "aws" {
|
||||
foo = "bar"
|
||||
alias = "alias"
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
variable "test" {
|
||||
default = {
|
||||
l = [1, 2, 3]
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
variable "mapped" {
|
||||
type = "map"
|
||||
}
|
||||
|
||||
variable "listed" {
|
||||
type = "list"
|
||||
}
|
||||
|
||||
resource "hcl_instance" "hcltest" {
|
||||
foo = "${var.listed}"
|
||||
bar = "${var.mapped}"
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
module "b" {
|
||||
source = "./modb"
|
||||
}
|
||||
|
||||
module "a" {
|
||||
source = "./moda"
|
||||
|
||||
single_element = "${element(module.b.computed_list, 0)}"
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
variable "single_element" {
|
||||
type = "string"
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
resource "aws_instance" "test" {
|
||||
count = 3
|
||||
}
|
||||
|
||||
output "computed_list" {
|
||||
value = ["${aws_instance.test.*.id}"]
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
# Required
|
||||
variable "foo" {
|
||||
}
|
||||
|
||||
# Optional
|
||||
variable "bar" {
|
||||
default = "baz"
|
||||
}
|
||||
|
||||
# Mapping
|
||||
variable "map" {
|
||||
default = {
|
||||
foo = "bar"
|
||||
}
|
||||
}
|
||||
|
||||
# Complex Object Types
|
||||
variable "object_map" {
|
||||
type = map(object({
|
||||
foo = string,
|
||||
bar = any
|
||||
}))
|
||||
}
|
||||
|
||||
variable "object_list" {
|
||||
type = list(object({
|
||||
foo = string,
|
||||
bar = any
|
||||
}))
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
test = [
|
||||
{
|
||||
foo = "blah1"
|
||||
bar = {}
|
||||
},
|
||||
{
|
||||
foo = "blah2"
|
||||
bar = {
|
||||
var1 = "val1",
|
||||
var2 = "var2"
|
||||
}
|
||||
}
|
||||
]
|
|
@ -1,3 +0,0 @@
|
|||
locals {
|
||||
foo = "..."
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
resource "aws_instance" "web" {
|
||||
count = "${var.c}"
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
resource "aws_route53_zone" "yada" {
|
||||
|
||||
}
|
||||
|
||||
resource "aws_route53_zone" "terra" {
|
||||
count = 2
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
module "child" {
|
||||
source = "./child"
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
resource "aws_instance" "web" {
|
||||
count = 3
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
resource "aws_instance" "web" {}
|
|
@ -1,7 +0,0 @@
|
|||
provider "foo" {
|
||||
version = ">=1.0.0"
|
||||
}
|
||||
|
||||
resource "foo_bar" "test1" {
|
||||
|
||||
}
|
|
@ -1,2 +0,0 @@
|
|||
provider "foo" {
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
provider "foo" {
|
||||
version = ">=1.0.0"
|
||||
}
|
||||
|
||||
provider "foo" {
|
||||
version = ">=2.0.0"
|
||||
alias = "bar"
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
resource "foo_bar" "test1" {
|
||||
|
||||
}
|
||||
|
||||
resource "foo_bar" "test2" {
|
||||
provider = "foo.baz"
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
|
||||
# "foo" is inherited from the parent module
|
||||
resource "foo_bar" "test" {
|
||||
|
||||
}
|
||||
|
||||
# but we don't use the "bar" provider inherited from the parent
|
||||
|
||||
# "baz" is introduced here for the first time, so it's an implicit
|
||||
# dependency
|
||||
resource "baz_bar" "test" {
|
||||
|
||||
}
|
||||
|
||||
module "grandchild" {
|
||||
source = "../grandchild"
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
|
||||
# Here we *override* the foo from the parent
|
||||
provider "foo" {
|
||||
|
||||
}
|
||||
|
||||
# We also use the "bar" provider defined at the root, which was
|
||||
# completely ignored by the child module in between.
|
||||
resource "bar_thing" "test" {
|
||||
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
|
||||
provider "foo" {
|
||||
}
|
||||
|
||||
provider "bar" {
|
||||
|
||||
}
|
||||
|
||||
module "child" {
|
||||
source = "./child"
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
foo = {
|
||||
version = ">=1.0.0"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
provider "aws" {
|
||||
foo = "bar"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {}
|
||||
resource "do_droplet" "bar" {}
|
|
@ -1,7 +0,0 @@
|
|||
resource "aws_instance" "foo" {
|
||||
ami = "${aws_instance.bar.id}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
ami = "${aws_instance.foo.id}"
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
provider "aws" {
|
||||
foo = "bar"
|
||||
}
|
||||
|
||||
provider "aws_elb" {
|
||||
foo = "baz"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {}
|
||||
resource "aws_instance" "bar" {}
|
||||
resource "aws_elb" "lb" {}
|
||||
resource "do_droplet" "bar" {}
|
|
@ -1,5 +0,0 @@
|
|||
provider "aws" {
|
||||
foo = "bar"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {}
|
|
@ -1,4 +0,0 @@
|
|||
variable "foo" {}
|
||||
variable "bar" {
|
||||
default = "baz"
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
data "aws_availability_zones" "azs" {}
|
||||
resource "aws_instance" "foo" {
|
||||
ami = "${data.aws_availability_zones.azs.names}"
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
provider "do" {
|
||||
foo = "${aws_instance.foo.num}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
num = "2"
|
||||
}
|
||||
|
||||
resource "do_droplet" "bar" {}
|
|
@ -1,5 +0,0 @@
|
|||
resource "aws_instance" "ifailedprovisioners" {
|
||||
}
|
||||
|
||||
resource "aws_instance" "iambeingadded" {
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
resource "test_object" "foo" {
|
||||
count = 3
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
data "aws_instance" "foo" {
|
||||
count = 3
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
resource "aws_instance" "foo" {
|
||||
count = 3
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
# Nothing
|
|
@ -1,3 +0,0 @@
|
|||
module "bar" {
|
||||
source = "./bar"
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
{
|
||||
"version": 1,
|
||||
"modules": [{
|
||||
"resources": {
|
||||
"aws_instance.foo1": {"primary":{}},
|
||||
"cloudstack_instance.foo1": {"primary":{}},
|
||||
"cloudstack_instance.foo2": {"primary":{}},
|
||||
"digitalocean_droplet.foo1": {"primary":{}},
|
||||
"digitalocean_droplet.foo2": {"primary":{}},
|
||||
"digitalocean_droplet.foo3": {"primary":{}},
|
||||
"docker_container.foo1": {"primary":{}},
|
||||
"docker_container.foo2": {"primary":{}},
|
||||
"docker_container.foo3": {"primary":{}},
|
||||
"docker_container.foo4": {"primary":{}},
|
||||
"google_compute_instance.foo1": {"primary":{}},
|
||||
"google_compute_instance.foo2": {"primary":{}},
|
||||
"google_compute_instance.foo3": {"primary":{}},
|
||||
"google_compute_instance.foo4": {"primary":{}},
|
||||
"google_compute_instance.foo5": {"primary":{}},
|
||||
"heroku_app.foo1": {"primary":{}},
|
||||
"heroku_app.foo2": {"primary":{}},
|
||||
"heroku_app.foo3": {"primary":{}},
|
||||
"heroku_app.foo4": {"primary":{}},
|
||||
"heroku_app.foo5": {"primary":{}},
|
||||
"heroku_app.foo6": {"primary":{}},
|
||||
"openstack_compute_instance_v2.foo1": {"primary":{}},
|
||||
"openstack_compute_instance_v2.foo2": {"primary":{}},
|
||||
"openstack_compute_instance_v2.foo3": {"primary":{}},
|
||||
"openstack_compute_instance_v2.foo4": {"primary":{}},
|
||||
"openstack_compute_instance_v2.foo5": {"primary":{}},
|
||||
"openstack_compute_instance_v2.foo6": {"primary":{}},
|
||||
"openstack_compute_instance_v2.foo7": {"primary":{}},
|
||||
"bar": {"primary":{}},
|
||||
"baz": {"primary":{}},
|
||||
"zip": {"primary":{}}
|
||||
}
|
||||
}]
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
resource "aws_instance" "web" {
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_load_balancer" "lb" {
|
||||
member = "${aws_instance.web.id}"
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
resource "aws_lc" "foo" {
|
||||
lifecycle { create_before_destroy = true }
|
||||
}
|
||||
|
||||
resource "aws_autoscale" "bar" {
|
||||
lc = "${aws_lc.foo.id}"
|
||||
|
||||
lifecycle { create_before_destroy = true }
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
value = "${aws_instance.foo.value}"
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
depends_on = ["aws_instance.foo"]
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
resource "aws_lc" "foo" {}
|
||||
|
||||
resource "aws_asg" "bar" {
|
||||
lc = "${aws_lc.foo.id}"
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
resource "test_object" "A" {}
|
||||
|
||||
resource "test_object" "B" {
|
||||
count = 2
|
||||
test_string = "${test_object.A.*.test_string}"
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
resource "aws_instance" "foo-bar" {}
|
|
@ -1,6 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
value = "${aws_instance.foo.value}"
|
||||
count = "5"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
|
@ -1 +0,0 @@
|
|||
resource "aws_instance" "baz" {}
|
|
@ -1,9 +0,0 @@
|
|||
resource "aws_instance" "foo" {}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
value = "${aws_instance.foo.value}"
|
||||
}
|
||||
|
||||
module "child" {
|
||||
source = "./child"
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
variable "var" {}
|
||||
|
||||
resource "aws_instance" "child" {
|
||||
value = "${var.var}"
|
||||
}
|
||||
|
||||
output "output" {
|
||||
value = "${aws_instance.child.value}"
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
module "child" {
|
||||
source = "./child"
|
||||
var = "${aws_instance.parent.value}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "parent" {
|
||||
value = "foo"
|
||||
}
|
||||
|
||||
resource "aws_instance" "parent-output" {
|
||||
value = "${module.child.output}"
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
output "foo" { value = "bar" }
|
|
@ -1,7 +0,0 @@
|
|||
variable "value" {}
|
||||
|
||||
provider "aws" {
|
||||
value = "${var.value}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {}
|
|
@ -1,9 +0,0 @@
|
|||
variable "foo" {}
|
||||
|
||||
module "child" {
|
||||
source = "./child"
|
||||
|
||||
value = "${var.foo}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {}
|
|
@ -1,7 +0,0 @@
|
|||
variable "value" {}
|
||||
|
||||
provider "aws" {
|
||||
value = "${var.value}"
|
||||
}
|
||||
|
||||
resource "aws_instance" "foo" {}
|
|
@ -1,7 +0,0 @@
|
|||
variable "foo" {}
|
||||
|
||||
module "child" {
|
||||
source = "./child"
|
||||
|
||||
value = "${var.foo}"
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
resource "aws_instance" "web" {
|
||||
provisioner "foo" {}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue