-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from gruntwork-io/backend-check
Check that a backend is defined if remote_state settings are defined
- Loading branch information
Showing
4 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
test/fixture-download/local-with-missing-backend/terraform.tfvars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name = "World" | ||
|
||
terragrunt = { | ||
terraform { | ||
source = "../hello-world" | ||
} | ||
|
||
# We configure remote state here, but the module in the source parameter does not specify a backend, so we should | ||
# get an error when trying to use this module | ||
remote_state { | ||
backend = "s3" | ||
config { | ||
encrypt = true | ||
bucket = "__FILL_IN_BUCKET_NAME__" | ||
key = "terraform.tfstate" | ||
region = "us-west-2" | ||
lock_table = "__FILL_IN_LOCK_TABLE_NAME__" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters