diff --git a/aws/ec2-redash/variables.tf b/aws/ec2-redash/variables.tf index b0f76d3f0..fd81a17ef 100644 --- a/aws/ec2-redash/variables.tf +++ b/aws/ec2-redash/variables.tf @@ -1,2 +1,2 @@ variable "aws_default_region" { default = "us-east-1"} -variable "instance_type" { default = "t2.small"} +variable "instance_type" { default = "t2.micro"} diff --git a/misc/cost-estimation/env0.yml b/misc/cost-estimation/env0.yml deleted file mode 100644 index 3cf8bbf2b..000000000 --- a/misc/cost-estimation/env0.yml +++ /dev/null @@ -1,13 +0,0 @@ -version: 1 - -deploy: - steps: - setupVariables: - after: - - curl -s -L https://github.com/infracost/infracost/releases/latest/download/infracost-linux-amd64.tar.gz | tar xz - - mv infracost-linux-amd64 /opt/infracost - terraformPlan: - after: - - terraform show -json .tf-plan > plan.json - - infracost breakdown --path plan.json - - infracost diff --path plan.json diff --git a/misc/depends_on/main.tf b/misc/depends_on/main.tf new file mode 100644 index 000000000..2b69eb8c1 --- /dev/null +++ b/misc/depends_on/main.tf @@ -0,0 +1,6 @@ +resource "null_resource" "null1" { + depends_on = [null_resource.null2] +} + +resource "null_resource" "null2" { +} diff --git a/misc/for_each/main.tf b/misc/for_each/main.tf new file mode 100644 index 000000000..97f401189 --- /dev/null +++ b/misc/for_each/main.tf @@ -0,0 +1,7 @@ +resource "null_resource" "null" { + for_each = toSet(["null1", "null2"]) + + triggers = { + name = each.key + } +} diff --git a/misc/null-resource/main.tf b/misc/null-resource/main.tf index 61aef5546..60eec0196 100644 --- a/misc/null-resource/main.tf +++ b/misc/null-resource/main.tf @@ -1,2 +1,11 @@ +variable "instance_type" { default = "t2.small"} + resource "null_resource" "null" { + triggers = { + null_instance_ids = var.instance_type + } +} +resource "null_resource" "null4" { +} +resource "null_resource" "null2" { } diff --git a/misc/null-resource/variables.tfvars b/misc/null-resource/variables.tfvars new file mode 100644 index 000000000..80a533bef --- /dev/null +++ b/misc/null-resource/variables.tfvars @@ -0,0 +1 @@ +instance_type = "foo_type" diff --git a/qa/components/a.tf b/qa/components/a.tf new file mode 100644 index 000000000..61aef5546 --- /dev/null +++ b/qa/components/a.tf @@ -0,0 +1,2 @@ +resource "null_resource" "null" { +} diff --git a/qa/components/a/main.tf b/qa/components/a/main.tf new file mode 100644 index 000000000..14025ba49 --- /dev/null +++ b/qa/components/a/main.tf @@ -0,0 +1,6 @@ +resource "null_resource" "null" { +} +resource "null_resource" "null2" { +} +resource "null_resource" "null3" { +} diff --git a/qa/components/b/b.tf b/qa/components/b/b.tf new file mode 100644 index 000000000..61aef5546 --- /dev/null +++ b/qa/components/b/b.tf @@ -0,0 +1,2 @@ +resource "null_resource" "null" { +} diff --git a/qa/components/common/common.tf b/qa/components/common/common.tf new file mode 100644 index 000000000..baa3e6f6b --- /dev/null +++ b/qa/components/common/common.tf @@ -0,0 +1,12 @@ +resource "null_resource" "null" { +} + +resource "null_resource" "null2" { +} + + + + + + +