You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Configure terraform state to be stored in S3, in the bucket "my-terraform-state" in us-east-1 under a key that is
and I get a couple of errors.
Steps To Reproduce
I've setup the same folder structure. I have my 'root' /terragrunt.hcl file and I've pasted the example verbatim into the file. Here though I remove the Comments...
I assume that the file /child/terragrunt.hcl should contain the standard boilerplate....
include"root" {
path =find_in_parent_folders()
}
Expected behavior
Running terragrunt plan in the /child folder, I would have expected
But I get the following Error...
$ tg plan
ERRO[0000] Found remote_state settings in /Users/greg/workspace/terragrunt/child/terragrunt.hcl but no backend block in the Terraform code in /Users/greg/workspace/terragrunt/child. You must define a backend block (it can be empty!) in your Terraform code or your remote state settings will have no effect! It should look something like this:
terraform {
backend "s3" {}
}
ERRO[0000] Unable to determine underlying exit code, so Terragrunt will exit with error code 1
It would be nice if the example was complete and noted there needs to be another file.
# This file is not in the sample code, but it is requiredterraform {
backend"s3" {}
}
The text was updated successfully, but these errors were encountered:
DevopsMercenary
changed the title
Documentation: Error trying an example from the docs for Single Includes
Documentation: Error trying an example from the docs for 'Example with S3'
May 10, 2024
Describe the bug
I'm trying to setup and run a simple example from the docs. The example is here
terragrunt/docs/_docs/04_reference/config-blocks-and-attributes.md
Line 427 in 9f5b3f5
and I get a couple of errors.
Steps To Reproduce
I've setup the same folder structure. I have my 'root'
/terragrunt.hcl
file and I've pasted the example verbatim into the file. Here though I remove the Comments...I assume that the file
/child/terragrunt.hcl
should contain the standard boilerplate....Expected behavior
Running
terragrunt plan
in the/child
folder, I would have expectedBut I get the following Error...
It would be nice if the example was complete and noted there needs to be another file.
The text was updated successfully, but these errors were encountered: