소스 검색

Makes the "generate provider" section unique

Important to know: If you use
```
generate "provider" {
```
in your local terragrunt.hcl, this overrides the one from
terragrunt.hcl.

HOWEVER, you may not notice right away, because if you've previously run
a `terragrunt init`, the generate clause from the root terragrunt.hcl
will be executed and the `provider.tf` it generated will remain present.
It's not until you reset the cache (`rm -rf .terragrunt-cache`) that the
file will be gone and won't be regenerated.
Fred Damstra 4 년 전
부모
커밋
85dccc584e

+ 1 - 1
prod/aws-us-gov/mdr-prod-c2/165-splunk-legacy-hec/terragrunt.hcl

@@ -16,7 +16,7 @@ terraform {
   source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/splunk_servers/legacy_hec?ref=v1.10.17"
 }
 
-generate "provider" {
+generate "provider-legacy" {
   path      = "provider-legacy.tf"
   if_exists = "overwrite_terragrunt"
   contents  = <<EOF

+ 1 - 1
test/aws-us-gov/mdr-test-c2/165-splunk-legacy-hec/terragrunt.hcl

@@ -16,7 +16,7 @@ terraform {
   source = "git@github.mdr.defpoint.com:mdr-engineering/xdr-terraform-modules.git//base/splunk_servers/legacy_hec?ref=v1.10.2"
 }
 
-generate "provider" {
+generate "provider-legacy" {
   path      = "provider-legacy.tf"
   if_exists = "overwrite_terragrunt"
   contents  = <<EOF