Skip to content

Commit 74b8a6d

Browse files
TomerHeberonhate
andauthored
Chore: Integration test for the bug not possible to use OpenTofu as backend for Terragrunt via env0 Terraform provider (#974) (#976)
* chore: Integration test for the bug not possible to use OpenTofu as backend for Terragrunt via env0 Terraform provider * chore: Integration test for the bug not possible to use OpenTofu as backend for Terragrunt via env0 Terraform provider Co-authored-by: Marcelo Luiz Onhate <onhate@users.noreply.github.com>
1 parent e9c0422 commit 74b8a6d

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
terraform {
2+
backend "local" {
3+
}
4+
required_providers {
5+
env0 = {
6+
source = "terraform-registry.env0.com/env0/env0"
7+
}
8+
}
9+
}
10+
11+
provider "env0" {}
12+
13+
variable "second_run" {
14+
default = false
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
provider "random" {}
2+
3+
resource "random_string" "random" {
4+
length = 8
5+
special = false
6+
min_lower = 8
7+
}
8+
9+
resource "env0_project" "project" {
10+
name = "project-environment-without_template-${random_string.random.result}"
11+
force_destroy = true
12+
}
13+
14+
resource "env0_environment" "environment" {
15+
name = "environment-without_template-${random_string.random.result}"
16+
project_id = env0_project.project.id
17+
is_remote_backend = false
18+
force_destroy = true
19+
20+
without_template_settings {
21+
description = "Core Azure"
22+
repository = "https://github.com/env0/templates"
23+
path = "terragrunt/misc/null-resource"
24+
opentofu_version = "1.8.1"
25+
terragrunt_version = "0.64.5"
26+
type = "terragrunt"
27+
revision = "master"
28+
is_terragrunt_run_all = true
29+
terragrunt_tf_binary = "opentofu"
30+
}
31+
}

0 commit comments

Comments
 (0)