From fa64a5d7af662c645e8650bb7c59fefad5a0e0f5 Mon Sep 17 00:00:00 2001 From: Jake Heath Date: Wed, 13 Sep 2023 12:27:49 -0700 Subject: [PATCH] golden files --- config/v2/config.go | 11 ----------- .../terraform/accounts/foo/fogg.tf | 15 ++++++++++----- .../terraform/envs/bar/bam/fogg.tf | 15 ++++++++++----- .../auth0_provider_yaml/terraform/global/fogg.tf | 15 ++++++++++----- .../terraform/accounts/foo/fogg.tf | 15 ++++++++++----- .../terraform/envs/bar/bam/fogg.tf | 15 ++++++++++----- .../bless_provider_yaml/terraform/global/fogg.tf | 15 ++++++++++----- testdata/circleci/terraform/global/fogg.tf | 15 ++++++++++----- testdata/github_actions/terraform/global/fogg.tf | 15 ++++++++++----- .../terraform/accounts/foo/fogg.tf | 15 ++++++++++----- .../terraform/envs/bar/bam/fogg.tf | 15 ++++++++++----- .../github_provider_yaml/terraform/global/fogg.tf | 15 ++++++++++----- .../terraform/accounts/foo/fogg.tf | 15 ++++++++++----- .../terraform/envs/bar/bam/fogg.tf | 15 ++++++++++----- .../okta_provider_yaml/terraform/global/fogg.tf | 15 ++++++++++----- .../terraform/accounts/acct1/fogg.tf | 15 ++++++++++----- .../remote_backend_yaml/terraform/global/fogg.tf | 15 ++++++++++----- .../terraform/accounts/foo/fogg.tf | 15 ++++++++++----- .../terraform/envs/bar/bam/fogg.tf | 15 ++++++++++----- .../terraform/global/fogg.tf | 15 ++++++++++----- .../tfe_config/terraform/accounts/account/fogg.tf | 15 ++++++++++----- .../terraform/envs/staging/comp1/fogg.tf | 15 ++++++++++----- testdata/tfe_config/terraform/global/fogg.tf | 15 ++++++++++----- testdata/tfe_config/terraform/tfe/fogg.tf | 15 ++++++++++----- testdata/tfe_config/terraform/tfe/outputs.tf | 10 ---------- .../terraform/accounts/foo/fogg.tf | 15 ++++++++++----- .../terraform/envs/bar/bam/fogg.tf | 15 ++++++++++----- .../tfe_provider_yaml/terraform/global/fogg.tf | 15 ++++++++++----- .../v2_full_yaml/terraform/accounts/bar/fogg.tf | 15 ++++++++++----- .../v2_full_yaml/terraform/accounts/foo/fogg.tf | 15 ++++++++++----- .../terraform/envs/prod/datadog/fogg.tf | 15 ++++++++++----- .../v2_full_yaml/terraform/envs/prod/hero/fogg.tf | 15 ++++++++++----- .../v2_full_yaml/terraform/envs/prod/okta/fogg.tf | 15 ++++++++++----- .../terraform/envs/prod/sentry/fogg.tf | 15 ++++++++++----- .../v2_full_yaml/terraform/envs/prod/vpc/fogg.tf | 15 ++++++++++----- .../terraform/envs/staging/comp1/fogg.tf | 15 ++++++++++----- .../terraform/envs/staging/comp2/fogg.tf | 15 ++++++++++----- .../terraform/envs/staging/k8s-comp/fogg.tf | 15 ++++++++++----- .../terraform/envs/staging/vpc/fogg.tf | 15 ++++++++++----- testdata/v2_full_yaml/terraform/global/fogg.tf | 15 ++++++++++----- .../terraform/global/fogg.tf | 15 ++++++++++----- .../terraform/accounts/bar/fogg.tf | 15 ++++++++++----- .../terraform/accounts/foo/fogg.tf | 15 ++++++++++----- .../terraform/envs/staging/comp1/fogg.tf | 15 ++++++++++----- .../terraform/envs/staging/comp2/fogg.tf | 15 ++++++++++----- .../terraform/envs/staging/vpc/fogg.tf | 15 ++++++++++----- .../terraform/global/fogg.tf | 15 ++++++++++----- 47 files changed, 450 insertions(+), 246 deletions(-) diff --git a/config/v2/config.go b/config/v2/config.go index 7cc38045d..3a49e9ea4 100644 --- a/config/v2/config.go +++ b/config/v2/config.go @@ -80,17 +80,6 @@ func (c *Config) GenerateStamp(fs afero.Fs, configFile string) { c.Stamp = stamp } -// TODO: write out functions to generate tag data -func (c *Config) GenerateStamp(fs afero.Fs, configFile string) { - stamp := Stamp{} - stamp.Date = DateAsTag() - stamp.FilePath = fs.Name() - stamp.FoggUser = "" - stamp.GitRepository = "" - stamp.CommitHash = "" - c.Stamp = stamp -} - func DateAsTag() string { formatLayout := "2006-01-02" currentTime := time.Now() diff --git a/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf index b46373d43..c31c422a0 100644 --- a/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf +++ b/testdata/auth0_provider_yaml/terraform/accounts/foo/fogg.tf @@ -109,11 +109,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foofoo" - env = "accounts" - service = "foo" - owner = "foo@example.com" - managedBy = "terraform" + project = "foofoo" + env = "accounts" + service = "foo" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 8de4c3002..66198acb4 100644 --- a/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf +++ b/testdata/auth0_provider_yaml/terraform/envs/bar/bam/fogg.tf @@ -104,11 +104,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foofoo" - env = "bar" - service = "bam" - owner = "foo@example.com" - managedBy = "terraform" + project = "foofoo" + env = "bar" + service = "bam" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/auth0_provider_yaml/terraform/global/fogg.tf b/testdata/auth0_provider_yaml/terraform/global/fogg.tf index b25702224..1f0b831fa 100644 --- a/testdata/auth0_provider_yaml/terraform/global/fogg.tf +++ b/testdata/auth0_provider_yaml/terraform/global/fogg.tf @@ -104,11 +104,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foofoo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foofoo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf index a9b18ab87..d67f5144e 100644 --- a/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf +++ b/testdata/bless_provider_yaml/terraform/accounts/foo/fogg.tf @@ -122,11 +122,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foofoo" - env = "accounts" - service = "foo" - owner = "foo@example.com" - managedBy = "terraform" + project = "foofoo" + env = "accounts" + service = "foo" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 dbfa7be40..e8e2e475e 100644 --- a/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf +++ b/testdata/bless_provider_yaml/terraform/envs/bar/bam/fogg.tf @@ -117,11 +117,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foofoo" - env = "bar" - service = "bam" - owner = "foo@example.com" - managedBy = "terraform" + project = "foofoo" + env = "bar" + service = "bam" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/bless_provider_yaml/terraform/global/fogg.tf b/testdata/bless_provider_yaml/terraform/global/fogg.tf index 2576e96bf..e8a288454 100644 --- a/testdata/bless_provider_yaml/terraform/global/fogg.tf +++ b/testdata/bless_provider_yaml/terraform/global/fogg.tf @@ -117,11 +117,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foofoo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foofoo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/circleci/terraform/global/fogg.tf b/testdata/circleci/terraform/global/fogg.tf index bf353d734..e0eea7f61 100644 --- a/testdata/circleci/terraform/global/fogg.tf +++ b/testdata/circleci/terraform/global/fogg.tf @@ -93,11 +93,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/github_actions/terraform/global/fogg.tf b/testdata/github_actions/terraform/global/fogg.tf index bf353d734..e0eea7f61 100644 --- a/testdata/github_actions/terraform/global/fogg.tf +++ b/testdata/github_actions/terraform/global/fogg.tf @@ -93,11 +93,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf index 4544e8652..d8f9b670c 100644 --- a/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf +++ b/testdata/github_provider_yaml/terraform/accounts/foo/fogg.tf @@ -110,11 +110,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "accounts" - service = "foo" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "accounts" + service = "foo" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 c54b16285..5ebfecfe5 100644 --- a/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf +++ b/testdata/github_provider_yaml/terraform/envs/bar/bam/fogg.tf @@ -105,11 +105,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "bar" - service = "bam" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "bar" + service = "bam" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/github_provider_yaml/terraform/global/fogg.tf b/testdata/github_provider_yaml/terraform/global/fogg.tf index 7ca61098f..938944edc 100644 --- a/testdata/github_provider_yaml/terraform/global/fogg.tf +++ b/testdata/github_provider_yaml/terraform/global/fogg.tf @@ -105,11 +105,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf index 1685c4e59..b6dd894f3 100644 --- a/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf +++ b/testdata/okta_provider_yaml/terraform/accounts/foo/fogg.tf @@ -110,11 +110,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foofoo" - env = "accounts" - service = "foo" - owner = "foo@example.com" - managedBy = "terraform" + project = "foofoo" + env = "accounts" + service = "foo" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 997522d34..0309be550 100644 --- a/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf +++ b/testdata/okta_provider_yaml/terraform/envs/bar/bam/fogg.tf @@ -105,11 +105,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foofoo" - env = "bar" - service = "bam" - owner = "foo@example.com" - managedBy = "terraform" + project = "foofoo" + env = "bar" + service = "bam" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/okta_provider_yaml/terraform/global/fogg.tf b/testdata/okta_provider_yaml/terraform/global/fogg.tf index 5478aede6..7815cb6d9 100644 --- a/testdata/okta_provider_yaml/terraform/global/fogg.tf +++ b/testdata/okta_provider_yaml/terraform/global/fogg.tf @@ -105,11 +105,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foofoo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foofoo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf b/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf index 7f6c1c426..e9e707a2b 100644 --- a/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf +++ b/testdata/remote_backend_yaml/terraform/accounts/acct1/fogg.tf @@ -96,11 +96,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "accounts" - service = "acct1" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "accounts" + service = "acct1" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/remote_backend_yaml/terraform/global/fogg.tf b/testdata/remote_backend_yaml/terraform/global/fogg.tf index 993b72e1a..06bb31ce6 100644 --- a/testdata/remote_backend_yaml/terraform/global/fogg.tf +++ b/testdata/remote_backend_yaml/terraform/global/fogg.tf @@ -91,11 +91,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf index de075704e..e382ef457 100644 --- a/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf +++ b/testdata/snowflake_provider_yaml/terraform/accounts/foo/fogg.tf @@ -111,11 +111,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "accounts" - service = "foo" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "accounts" + service = "foo" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 881826a5d..f5dd7eef2 100644 --- a/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf +++ b/testdata/snowflake_provider_yaml/terraform/envs/bar/bam/fogg.tf @@ -106,11 +106,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "bar" - service = "bam" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "bar" + service = "bam" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/snowflake_provider_yaml/terraform/global/fogg.tf b/testdata/snowflake_provider_yaml/terraform/global/fogg.tf index 02779039f..ef49e4c54 100644 --- a/testdata/snowflake_provider_yaml/terraform/global/fogg.tf +++ b/testdata/snowflake_provider_yaml/terraform/global/fogg.tf @@ -106,11 +106,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/tfe_config/terraform/accounts/account/fogg.tf b/testdata/tfe_config/terraform/accounts/account/fogg.tf index bd0a10b27..a7c50a032 100644 --- a/testdata/tfe_config/terraform/accounts/account/fogg.tf +++ b/testdata/tfe_config/terraform/accounts/account/fogg.tf @@ -121,11 +121,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "accounts" - service = "account" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "accounts" + service = "account" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/tfe_config/terraform/envs/staging/comp1/fogg.tf b/testdata/tfe_config/terraform/envs/staging/comp1/fogg.tf index 2dadc6b4d..4f0fb8cf2 100644 --- a/testdata/tfe_config/terraform/envs/staging/comp1/fogg.tf +++ b/testdata/tfe_config/terraform/envs/staging/comp1/fogg.tf @@ -118,11 +118,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "staging" - service = "comp1" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "staging" + service = "comp1" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/tfe_config/terraform/global/fogg.tf b/testdata/tfe_config/terraform/global/fogg.tf index d032cd819..d787bfa15 100644 --- a/testdata/tfe_config/terraform/global/fogg.tf +++ b/testdata/tfe_config/terraform/global/fogg.tf @@ -116,11 +116,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/tfe_config/terraform/tfe/fogg.tf b/testdata/tfe_config/terraform/tfe/fogg.tf index 366ad69d8..f15abaae6 100644 --- a/testdata/tfe_config/terraform/tfe/fogg.tf +++ b/testdata/tfe_config/terraform/tfe/fogg.tf @@ -123,11 +123,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "" - service = "" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "" + service = "" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/tfe_config/terraform/tfe/outputs.tf b/testdata/tfe_config/terraform/tfe/outputs.tf index 32cdf9de9..c725e3be5 100644 --- a/testdata/tfe_config/terraform/tfe/outputs.tf +++ b/testdata/tfe_config/terraform/tfe/outputs.tf @@ -1,16 +1,6 @@ # Auto-generated by fogg. Do not edit # Make improvements in fogg, so that everyone can benefit. -output "cluster_id" { - value = module.aws-aurora-postgres.cluster_id - sensitive = false -} - -output "cluster_resource_id" { - value = module.aws-aurora-postgres.cluster_resource_id - sensitive = false -} - output "database_name" { value = module.aws-aurora-postgres.database_name sensitive = false diff --git a/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf b/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf index 4f54e211f..eae42c9c1 100644 --- a/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf +++ b/testdata/tfe_provider_yaml/terraform/accounts/foo/fogg.tf @@ -108,11 +108,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "accounts" - service = "foo" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "accounts" + service = "foo" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 0ea4354ce..4f973a802 100644 --- a/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf +++ b/testdata/tfe_provider_yaml/terraform/envs/bar/bam/fogg.tf @@ -93,11 +93,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "bar" - service = "bam" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "bar" + service = "bam" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/tfe_provider_yaml/terraform/global/fogg.tf b/testdata/tfe_provider_yaml/terraform/global/fogg.tf index 643d2459f..b958cd272 100644 --- a/testdata/tfe_provider_yaml/terraform/global/fogg.tf +++ b/testdata/tfe_provider_yaml/terraform/global/fogg.tf @@ -103,11 +103,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf b/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf index 8935a4300..44a29bea8 100644 --- a/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf +++ b/testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf @@ -265,11 +265,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "accounts" - service = "bar" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "accounts" + service = "bar" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf b/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf index 8a097aa1f..508f74ac2 100644 --- a/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf +++ b/testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf @@ -135,11 +135,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "accounts" - service = "foo" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "accounts" + service = "foo" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 ea7ccf50d..b1c83ce6f 100644 --- a/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf +++ b/testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf @@ -128,11 +128,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "prod" - service = "datadog" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "prod" + service = "datadog" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 4747bb1c7..da80a149f 100644 --- a/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf +++ b/testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf @@ -136,11 +136,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "prod" - service = "hero" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "prod" + service = "hero" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 6e636c652..72fc1af89 100644 --- a/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf +++ b/testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf @@ -131,11 +131,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "prod" - service = "okta" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "prod" + service = "okta" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 cdcf17fb8..0a81b3d18 100644 --- a/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf +++ b/testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf @@ -129,11 +129,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "prod" - service = "sentry" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "prod" + service = "sentry" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 cb60f3ee6..7a006b4d9 100644 --- a/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf +++ b/testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf @@ -119,11 +119,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "prod" - service = "vpc" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "prod" + service = "vpc" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 7a6e287d1..60f4400e2 100644 --- a/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf +++ b/testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf @@ -117,11 +117,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "staging" - service = "comp1" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "staging" + service = "comp1" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 40bdc0c72..bc7195323 100644 --- a/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf +++ b/testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf @@ -117,11 +117,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "staging" - service = "comp2" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "staging" + service = "comp2" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/v2_full_yaml/terraform/envs/staging/k8s-comp/fogg.tf b/testdata/v2_full_yaml/terraform/envs/staging/k8s-comp/fogg.tf index 1a1f5b7e1..dfbd3a9f4 100644 --- a/testdata/v2_full_yaml/terraform/envs/staging/k8s-comp/fogg.tf +++ b/testdata/v2_full_yaml/terraform/envs/staging/k8s-comp/fogg.tf @@ -135,11 +135,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "staging" - service = "k8s-comp" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "staging" + service = "k8s-comp" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 bdf1c6ee9..0d708f722 100644 --- a/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf +++ b/testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf @@ -117,11 +117,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "staging" - service = "vpc" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "staging" + service = "vpc" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/v2_full_yaml/terraform/global/fogg.tf b/testdata/v2_full_yaml/terraform/global/fogg.tf index 03de18300..5da869b8f 100644 --- a/testdata/v2_full_yaml/terraform/global/fogg.tf +++ b/testdata/v2_full_yaml/terraform/global/fogg.tf @@ -119,11 +119,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations diff --git a/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf b/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf index bf353d734..e0eea7f61 100644 --- a/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf +++ b/testdata/v2_minimal_valid_yaml/terraform/global/fogg.tf @@ -93,11 +93,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "foo" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "foo" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 5930a25ad..ab3093f6e 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 @@ -96,11 +96,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "accounts" - service = "bar" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "accounts" + service = "bar" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 135314db4..5900537e0 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 @@ -96,11 +96,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "accounts" - service = "foo" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "accounts" + service = "foo" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 eb99a7036..9ab13c2e3 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 @@ -91,11 +91,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "staging" - service = "comp1" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "staging" + service = "comp1" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 670cf53f7..fe9025236 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 @@ -91,11 +91,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "staging" - service = "comp2" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "staging" + service = "comp2" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 639a161cc..e37ee13d0 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 @@ -91,11 +91,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "staging" - service = "vpc" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "staging" + service = "vpc" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations 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 3a8a61d80..42adfc1db 100644 --- a/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf +++ b/testdata/v2_no_aws_provider_yaml/terraform/global/fogg.tf @@ -91,11 +91,16 @@ variable "owner" { variable "tags" { type = object({ project : string, env : string, service : string, owner : string, managedBy : string }) default = { - project = "proj" - env = "" - service = "global" - owner = "foo@example.com" - managedBy = "terraform" + project = "proj" + env = "" + service = "global" + owner = "foo@example.com" + date = "2023-09-13" + filePath = "BasePathFs" + foggUser = "" + gitRepository = "git@github.com:chanzuckerberg/fogg" + commitHash = "" + managedBy = "terraform" } } # tflint-ignore: terraform_unused_declarations