Repository: chanzuckerberg/fogg
Pull request #743 (2022-09-27 06:05:23)

chore: Update utility providers
### Summary

some utility providers hardcoded in fogg don't support arm.

- deprecate template provider (replaced with 0.12 functionality)
- update random provider to latest version
- update golden test files 

### Test Plan
no changes to tests



vincenthsh: should this be considered a breaking change in case anyone depends on pre 0.12 template provider?

Patch:
diff --git a/plan/plan.go b/plan/plan.go
index 098208b0..bf13ef1c 100644
--- a/plan/plan.go
+++ b/plan/plan.go
@@ -151,11 +151,7 @@ type ProviderVersion struct {
 var utilityProviders = map[string]ProviderVersion{
 	"random": {
 		Source:  "hashicorp/random",
-		Version: ptr.String("~> 2.2"),
-	},
-	"template": {
-		Source:  "hashicorp/template",
-		Version: ptr.String("~> 2.2"),
+		Version: ptr.String("~> 3.4"),
 	},
 	"archive": {
 		Source:  "hashicorp/archive",


Test patch:
diff --git a/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf
index e56c6a2a..17b96bca 100644
--- a/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -65,14 +65,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 8ec3c72c..b7056ebd 100644
--- a/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -65,14 +65,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/auth0_provider_yaml/terraform/global/fogg.tf b/testdata/auth0_provider_yaml/terraform/global/fogg.tf
index 898ce594..1eacc73a 100644
--- a/testdata/auth0_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/auth0_provider_yaml/terraform/global/fogg.tf
@@ -65,14 +65,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf
index 6a6c29c6..c836bdee 100644
--- a/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -80,14 +80,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 98a02cad..742ff8c7 100644
--- a/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -80,14 +80,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/bless_provider_yaml/terraform/global/fogg.tf b/testdata/bless_provider_yaml/terraform/global/fogg.tf
index 90905e8d..e20bfe7c 100644
--- a/testdata/bless_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/bless_provider_yaml/terraform/global/fogg.tf
@@ -80,14 +80,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/circleci/terraform/global/fogg.tf b/testdata/circleci/terraform/global/fogg.tf
index 556f9401..e08f3d0d 100644
--- a/testdata/circleci/terraform/global/fogg.tf
+++ b/testdata/circleci/terraform/global/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/github_actions/terraform/global/fogg.tf b/testdata/github_actions/terraform/global/fogg.tf
index 556f9401..e08f3d0d 100644
--- a/testdata/github_actions/terraform/global/fogg.tf
+++ b/testdata/github_actions/terraform/global/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf
index a9a9558c..e25a5d11 100644
--- a/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -64,14 +64,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 65e65cd5..fd46f2d9 100644
--- a/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -64,14 +64,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/github_provider_yaml/terraform/global/fogg.tf b/testdata/github_provider_yaml/terraform/global/fogg.tf
index 246afdf3..d77aa7d6 100644
--- a/testdata/github_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/github_provider_yaml/terraform/global/fogg.tf
@@ -64,14 +64,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf
index adbd744d..e80facb5 100644
--- a/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -66,14 +66,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 36456d80..6bf4b074 100644
--- a/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -66,14 +66,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/okta_provider_yaml/terraform/global/fogg.tf b/testdata/okta_provider_yaml/terraform/global/fogg.tf
index 55e0b23d..87062ef0 100644
--- a/testdata/okta_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/okta_provider_yaml/terraform/global/fogg.tf
@@ -66,14 +66,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf b/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf
index 80b8055f..c7397bec 100644
--- a/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf
+++ b/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf
@@ -52,14 +52,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/remote_backend_yaml/terraform/global/fogg.tf b/testdata/remote_backend_yaml/terraform/global/fogg.tf
index 8de1d64b..94aaded6 100644
--- a/testdata/remote_backend_yaml/terraform/global/fogg.tf
+++ b/testdata/remote_backend_yaml/terraform/global/fogg.tf
@@ -52,14 +52,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf
index 4ff26d6d..3690d98b 100644
--- a/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -60,7 +60,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
@@ -69,13 +69,6 @@ terraform {
 
     }
 
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
-
-    }
-
     tls = {
       source = "hashicorp/tls"
 
diff --git a/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 75b6160c..0fadc80d 100644
--- a/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -60,7 +60,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
@@ -69,13 +69,6 @@ terraform {
 
     }
 
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
-
-    }
-
     tls = {
       source = "hashicorp/tls"
 
diff --git a/testdata/snowflake_provider_yaml/terraform/global/fogg.tf b/testdata/snowflake_provider_yaml/terraform/global/fogg.tf
index 6249ab1d..d06cfa36 100644
--- a/testdata/snowflake_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/snowflake_provider_yaml/terraform/global/fogg.tf
@@ -60,7 +60,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
@@ -69,13 +69,6 @@ terraform {
 
     }
 
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
-
-    }
-
     tls = {
       source = "hashicorp/tls"
 
diff --git a/testdata/tfe_config/terraform/accounts/account/fogg.tf b/testdata/tfe_config/terraform/accounts/account/fogg.tf
index 5704260a..98394ff5 100644
--- a/testdata/tfe_config/terraform/accounts/account/fogg.tf
+++ b/testdata/tfe_config/terraform/accounts/account/fogg.tf
@@ -72,14 +72,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/tfe_config/terraform/global/fogg.tf b/testdata/tfe_config/terraform/global/fogg.tf
index 78a824b0..94803f5c 100644
--- a/testdata/tfe_config/terraform/global/fogg.tf
+++ b/testdata/tfe_config/terraform/global/fogg.tf
@@ -72,14 +72,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/tfe_config/terraform/tfe/fogg.tf b/testdata/tfe_config/terraform/tfe/fogg.tf
index cbd0add9..e0d4f9d3 100644
--- a/testdata/tfe_config/terraform/tfe/fogg.tf
+++ b/testdata/tfe_config/terraform/tfe/fogg.tf
@@ -76,14 +76,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf
index 902797cf..fadf75a7 100644
--- a/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -57,14 +57,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf b/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf
index 44659d73..60ea63b0 100644
--- a/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf
+++ b/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/tfe_provider_yaml/terraform/global/fogg.tf b/testdata/tfe_provider_yaml/terraform/global/fogg.tf
index a585042d..e99e3edd 100644
--- a/testdata/tfe_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/tfe_provider_yaml/terraform/global/fogg.tf
@@ -57,14 +57,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf b/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf
index c025922c..62b9fe91 100644
--- a/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf
@@ -216,14 +216,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf b/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf
index e783f903..00341003 100644
--- a/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf
@@ -86,14 +86,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf
index 4cd3a7f4..6e0802f7 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf
@@ -77,14 +77,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf
index 7793cd4c..38b9c53d 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf
@@ -84,14 +84,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf
index 0faeebd4..e24d1249 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf
@@ -80,14 +80,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf
index b57e9968..028ae93b 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf
@@ -73,7 +73,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
@@ -84,13 +84,6 @@ terraform {
 
     }
 
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
-
-    }
-
     tls = {
       source = "hashicorp/tls"
 
diff --git a/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf b/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf
index 503d77f9..5f26310a 100644
--- a/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf
@@ -70,14 +70,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf b/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf
index 1402eb89..bd8165dc 100644
--- a/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf
@@ -68,14 +68,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf b/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf
index 28805182..9621f1bb 100644
--- a/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf
@@ -68,14 +68,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf b/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf
index cd73e5de..3d495b76 100644
--- a/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf
@@ -68,14 +68,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_full_yaml/terraform/global/fogg.tf b/testdata/v2_full_yaml/terraform/global/fogg.tf
index b8b13cc6..e3cfc78c 100644
--- a/testdata/v2_full_yaml/terraform/global/fogg.tf
+++ b/testdata/v2_full_yaml/terraform/global/fogg.tf
@@ -70,14 +70,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf b/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf
index 556f9401..e08f3d0d 100644
--- a/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf
+++ b/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_no_aws_provider_yaml/terraform/accounts/bar/fogg.tf b/testdata/v2_no_aws_provider_yaml/terraform/accounts/bar/fogg.tf
index 0ec6c7ad..e49d6598 100644
--- a/testdata/v2_no_aws_provider_yaml/terraform/accounts/bar/fogg.tf
+++ b/testdata/v2_no_aws_provider_yaml/terraform/accounts/bar/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_no_aws_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/v2_no_aws_provider_yaml/terraform/accounts/foo/fogg.tf
index 60489edd..8cc313a6 100644
--- a/testdata/v2_no_aws_provider_yaml/terraform/accounts/foo/fogg.tf
+++ b/testdata/v2_no_aws_provider_yaml/terraform/accounts/foo/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/comp1/fogg.tf b/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/comp1/fogg.tf
index e7755b7d..f9183d5f 100644
--- a/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/comp1/fogg.tf
+++ b/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/comp1/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/comp2/fogg.tf b/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/comp2/fogg.tf
index f1d8e28c..544dc88e 100644
--- a/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/comp2/fogg.tf
+++ b/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/comp2/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/vpc/fogg.tf b/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/vpc/fogg.tf
index 689031fc..6a545b4a 100644
--- a/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/vpc/fogg.tf
+++ b/testdata/v2_no_aws_provider_yaml/terraform/envs/staging/vpc/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }
 
diff --git a/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf b/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf
index 61a94512..ba78e063 100644
--- a/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf
+++ b/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf
@@ -54,14 +54,7 @@ terraform {
     random = {
       source = "hashicorp/random"
 
-      version = "~> 2.2"
-
-    }
-
-    template = {
-      source = "hashicorp/template"
-
-      version = "~> 2.2"
+      version = "~> 3.4"
 
     }