Merge pull request #27437 from hashicorp/jbardin/cleanup

remove unused testdata files
This commit is contained in:
James Bardin 2021-01-07 12:55:12 -05:00 committed by GitHub
commit 751e359ee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
110 changed files with 0 additions and 793 deletions

View File

@ -1,7 +0,0 @@
resource "aws_instance" "bar" {
count = 2
require_new = "xyz"
lifecycle {
create_before_destroy = true
}
}

View File

@ -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}"
}
}
}

View File

@ -1,7 +0,0 @@
resource "aws_instance" "bar" {
for_each = toset(["a"])
provisioner "shell" {
when = "destroy"
command = "echo ${each.key}"
}
}

View File

@ -1,3 +0,0 @@
module "grandchild" {
source = "../grandchild"
}

View File

@ -1 +0,0 @@
# Nothing here!

View File

@ -1,3 +0,0 @@
module "child" {
source = "./child"
}

View File

@ -1,5 +0,0 @@
provider "aws" {}
resource "aws_instance" "db" {}
resource "aws_instance" "web" {
foo = "${aws_instance.db.id}"
}

View File

@ -1,9 +0,0 @@
provider "aws" {}
resource "aws_lc" "foo" {}
resource "aws_asg" "foo" {
lc = "${aws_lc.foo.id}"
lifecycle { create_before_destroy = true }
}

View File

@ -1,2 +0,0 @@
provider "aws" {}
resource "aws_instance" "server" {}

View File

@ -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}"
]
}

View File

@ -1,2 +0,0 @@
variable "bar" {}
output "value" { value = "${var.bar}" }

View File

@ -1,6 +0,0 @@
module "bar" {
source = "./bar"
bar = "${var.foo}"
}
variable "foo" {}

View File

@ -1,4 +0,0 @@
module "foo" {
source = "./foo"
foo = "bar"
}

View File

@ -1 +0,0 @@
provider "aws" {}

View File

@ -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}"
}

View File

@ -1,7 +0,0 @@
resource "aws_instance" "web" {
count = 3
}
resource "aws_load_balancer" "weblb" {
members = "${aws_instance.web.*.id}"
}

View File

@ -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}"
]
}

View File

@ -1,6 +0,0 @@
resource "aws_instance" "web" {}
resource "aws_instance" "db" {
depends_on = ["aws_instance.web"]
count = 2
}

View File

@ -1,5 +0,0 @@
resource "aws_instance" "web" {}
resource "aws_instance" "db" {
depends_on = ["aws_instance.web"]
}

View File

@ -1,8 +0,0 @@
provider "aws" {}
resource "aws_instance" "bar" {
ami = "abc"
lifecycle {
create_before_destroy = true
}
}

View File

@ -1,8 +0,0 @@
provider "aws" {}
resource "aws_instance" "foo" {
}
resource "aws_instance" "bar" {
foo = "${aws_instance.foo.id}"
}

View File

@ -1,3 +0,0 @@
variable "in" {}
aws_instance "foo" {}

View File

@ -1,5 +0,0 @@
output "data" {
value = "foo"
}
aws_instance "foo" {}

View File

@ -1,8 +0,0 @@
module "foo" {
source = "./foo"
}
module "bar" {
source = "./bar"
in = "${module.foo.data}"
}

View File

@ -1,5 +0,0 @@
resource "aws_instance" "foo" {}
output "bar" {
value = "baz"
}

View File

@ -1,8 +0,0 @@
resource "aws_instance" "foo" {}
module "child" {
source = "./child"
in = "${aws_instance.foo.id}"
}

View File

@ -1,5 +0,0 @@
resource "aws_instance" "foo" {}
output "bar" {
value = "baz"
}

View File

@ -1,7 +0,0 @@
module "child" {
source = "./child"
}
resource "aws_instance" "foo" {
value = "${module.child.bar}"
}

View File

@ -1,2 +0,0 @@
resource "aws_instance" "foo" {
}

View File

@ -1,5 +0,0 @@
resource "aws_instance" "db" {}
resource "aws_instance" "web" {
foo = "${aws_instance.lb.id}"
}

View File

@ -1,10 +0,0 @@
provider "aws" {}
resource "aws_security_group" "firewall" {}
resource "aws_instance" "web" {
security_groups = [
"foo",
"${aws_security_group.firewall.foo}"
]
}

View File

@ -1,3 +0,0 @@
resource "aws_instance" "server" {}
output "security_group" { value = "" }

View File

@ -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}"
]
}

View File

@ -1,4 +0,0 @@
resource "aws_instance" "foo" {}
resource "aws_instance" "bar" {
var = "${aws_instance.foo.whatever}"
}

View File

@ -1,3 +0,0 @@
module "child" {
source = "./child"
}

View File

@ -1 +0,0 @@
resource "aws_instance" "foo" {}

View File

@ -1,3 +0,0 @@
module "child" {
source = "./child"
}

View File

@ -1,5 +0,0 @@
resource "aws_instance" "foo" {}
output "foo" {
value = "${aws_instance.foo.value}"
}

View File

@ -1,10 +0,0 @@
provider "aws" {
}
provider "aws" {
alias = "foo"
}
provider "aws" {
alias = "bar"
}

View File

@ -1,5 +0,0 @@
provider "aws" {}
provider "digitalocean" {}
provider "openstack" {}
resource "aws_load_balancer" "weblb" {}

View File

@ -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}"
}
}
}

View File

@ -1,7 +0,0 @@
resource "aws_instance" "web" {
count = 3
provisioner "remote-exec" {
inline = ["echo ${aws_instance.web.0.foo}"]
}
}

View File

@ -1,3 +0,0 @@
resource "aws_instance" "web" {
count = 3
}

View File

@ -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}"
]
}

View File

@ -1,4 +0,0 @@
provider "aws" {
foo = "bar"
alias = "alias"
}

View File

@ -1,5 +0,0 @@
variable "test" {
default = {
l = [1, 2, 3]
}
}

View File

@ -1,12 +0,0 @@
variable "mapped" {
type = "map"
}
variable "listed" {
type = "list"
}
resource "hcl_instance" "hcltest" {
foo = "${var.listed}"
bar = "${var.mapped}"
}

View File

@ -1,9 +0,0 @@
module "b" {
source = "./modb"
}
module "a" {
source = "./moda"
single_element = "${element(module.b.computed_list, 0)}"
}

View File

@ -1,3 +0,0 @@
variable "single_element" {
type = "string"
}

View File

@ -1,7 +0,0 @@
resource "aws_instance" "test" {
count = 3
}
output "computed_list" {
value = ["${aws_instance.test.*.id}"]
}

View File

@ -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
}))
}

View File

@ -1,13 +0,0 @@
test = [
{
foo = "blah1"
bar = {}
},
{
foo = "blah2"
bar = {
var1 = "val1",
var2 = "var2"
}
}
]

View File

@ -1,3 +0,0 @@
locals {
foo = "..."
}

View File

@ -1,3 +0,0 @@
resource "aws_instance" "web" {
count = "${var.c}"
}

View File

@ -1,7 +0,0 @@
resource "aws_route53_zone" "yada" {
}
resource "aws_route53_zone" "terra" {
count = 2
}

View File

@ -1,3 +0,0 @@
module "child" {
source = "./child"
}

View File

@ -1,3 +0,0 @@
resource "aws_instance" "web" {
count = 3
}

View File

@ -1 +0,0 @@
resource "aws_instance" "web" {}

View File

@ -1,7 +0,0 @@
provider "foo" {
version = ">=1.0.0"
}
resource "foo_bar" "test1" {
}

View File

@ -1,2 +0,0 @@
provider "foo" {
}

View File

@ -1,8 +0,0 @@
provider "foo" {
version = ">=1.0.0"
}
provider "foo" {
version = ">=2.0.0"
alias = "bar"
}

View File

@ -1,8 +0,0 @@
resource "foo_bar" "test1" {
}
resource "foo_bar" "test2" {
provider = "foo.baz"
}

View File

@ -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"
}

View File

@ -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" {
}

View File

@ -1,11 +0,0 @@
provider "foo" {
}
provider "bar" {
}
module "child" {
source = "./child"
}

View File

@ -1,7 +0,0 @@
terraform {
required_providers {
foo = {
version = ">=1.0.0"
}
}
}

View File

@ -1,6 +0,0 @@
provider "aws" {
foo = "bar"
}
resource "aws_instance" "foo" {}
resource "do_droplet" "bar" {}

View File

@ -1,7 +0,0 @@
resource "aws_instance" "foo" {
ami = "${aws_instance.bar.id}"
}
resource "aws_instance" "bar" {
ami = "${aws_instance.foo.id}"
}

View File

@ -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" {}

View File

@ -1,5 +0,0 @@
provider "aws" {
foo = "bar"
}
resource "aws_instance" "foo" {}

View File

@ -1,4 +0,0 @@
variable "foo" {}
variable "bar" {
default = "baz"
}

View File

@ -1,4 +0,0 @@
data "aws_availability_zones" "azs" {}
resource "aws_instance" "foo" {
ami = "${data.aws_availability_zones.azs.names}"
}

View File

@ -1,9 +0,0 @@
provider "do" {
foo = "${aws_instance.foo.num}"
}
resource "aws_instance" "foo" {
num = "2"
}
resource "do_droplet" "bar" {}

View File

@ -1,5 +0,0 @@
resource "aws_instance" "ifailedprovisioners" {
}
resource "aws_instance" "iambeingadded" {
}

View File

@ -1,3 +0,0 @@
resource "test_object" "foo" {
count = 3
}

View File

@ -1,3 +0,0 @@
data "aws_instance" "foo" {
count = 3
}

View File

@ -1,3 +0,0 @@
resource "aws_instance" "foo" {
count = 3
}

View File

@ -1 +0,0 @@
# Nothing

View File

@ -1,3 +0,0 @@
module "bar" {
source = "./bar"
}

View File

@ -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":{}}
}
}]
}

View File

@ -1,9 +0,0 @@
resource "aws_instance" "web" {
lifecycle {
create_before_destroy = true
}
}
resource "aws_load_balancer" "lb" {
member = "${aws_instance.web.id}"
}

View File

@ -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 }
}

View File

@ -1,5 +0,0 @@
resource "aws_instance" "foo" {}
resource "aws_instance" "bar" {
value = "${aws_instance.foo.value}"
}

View File

@ -1,5 +0,0 @@
resource "aws_instance" "foo" {}
resource "aws_instance" "bar" {
depends_on = ["aws_instance.foo"]
}

View File

@ -1,5 +0,0 @@
resource "aws_lc" "foo" {}
resource "aws_asg" "bar" {
lc = "${aws_lc.foo.id}"
}

View File

@ -1,6 +0,0 @@
resource "test_object" "A" {}
resource "test_object" "B" {
count = 2
test_string = "${test_object.A.*.test_string}"
}

View File

@ -1,3 +0,0 @@
resource "aws_instance" "foo" {}
resource "aws_instance" "foo-bar" {}

View File

@ -1,6 +0,0 @@
resource "aws_instance" "foo" {}
resource "aws_instance" "bar" {
value = "${aws_instance.foo.value}"
count = "5"
}

View File

@ -1 +0,0 @@
resource "aws_instance" "foo" {}

View File

@ -1 +0,0 @@
resource "aws_instance" "baz" {}

View File

@ -1,9 +0,0 @@
resource "aws_instance" "foo" {}
resource "aws_instance" "bar" {
value = "${aws_instance.foo.value}"
}
module "child" {
source = "./child"
}

View File

@ -1,9 +0,0 @@
variable "var" {}
resource "aws_instance" "child" {
value = "${var.var}"
}
output "output" {
value = "${aws_instance.child.value}"
}

View File

@ -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}"
}

View File

@ -1 +0,0 @@
output "foo" { value = "bar" }

View File

@ -1,7 +0,0 @@
variable "value" {}
provider "aws" {
value = "${var.value}"
}
resource "aws_instance" "foo" {}

View File

@ -1,9 +0,0 @@
variable "foo" {}
module "child" {
source = "./child"
value = "${var.foo}"
}
resource "aws_instance" "foo" {}

View File

@ -1,7 +0,0 @@
variable "value" {}
provider "aws" {
value = "${var.value}"
}
resource "aws_instance" "foo" {}

View File

@ -1,7 +0,0 @@
variable "foo" {}
module "child" {
source = "./child"
value = "${var.foo}"
}

View File

@ -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