Skip to content

Commit

Permalink
Chore: Integration test for the bug not possible to use OpenTofu as b…
Browse files Browse the repository at this point in the history
…ackend 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 <[email protected]>
  • Loading branch information
TomerHeber and onhate authored Nov 17, 2024
1 parent e9c0422 commit 74b8a6d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
terraform {
backend "local" {
}
required_providers {
env0 = {
source = "terraform-registry.env0.com/env0/env0"
}
}
}

provider "env0" {}

variable "second_run" {
default = false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
provider "random" {}

resource "random_string" "random" {
length = 8
special = false
min_lower = 8
}

resource "env0_project" "project" {
name = "project-environment-without_template-${random_string.random.result}"
force_destroy = true
}

resource "env0_environment" "environment" {
name = "environment-without_template-${random_string.random.result}"
project_id = env0_project.project.id
is_remote_backend = false
force_destroy = true

without_template_settings {
description = "Core Azure"
repository = "https://github.com/env0/templates"
path = "terragrunt/misc/null-resource"
opentofu_version = "1.8.1"
terragrunt_version = "0.64.5"
type = "terragrunt"
revision = "master"
is_terragrunt_run_all = true
terragrunt_tf_binary = "opentofu"
}
}

0 comments on commit 74b8a6d

Please sign in to comment.