Difference between revisions of "Terragrunt block: remote state"
Jump to navigation
Jump to search
(→Errors) |
|||
Line 7: | Line 7: | ||
[[terraform]] { | [[terraform]] { | ||
+ | |||
+ | } | ||
− | } | + | |
+ | == Example == | ||
+ | remote_state { | ||
+ | backend = "s3" | ||
+ | config = { | ||
+ | bucket = "mybucket" | ||
+ | key = "path/to/my/key" | ||
+ | region = "us-east-1" | ||
+ | } | ||
+ | } | ||
== Errors == | == Errors == |
Revision as of 15:05, 20 June 2023
remote_state
https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#remote_state
inputs
terraform { }
Contents
Example
remote_state { backend = "s3" config = { bucket = "mybucket" key = "path/to/my/key" region = "us-east-1" } }
Errors
Error: Unable to find remote state
WARN[0002] - The remote state S3 bucket your-bucket-name needs to be updated
Remote state S3 bucket yourbucketname is out of date. Would you like Terragrunt to update it?]] (y/n)
- WARN 0000 - Bucket Enforced TLS
Related
See also
terragrunt.hcl
. blocks:remote_state, include, dependency, generate
- Terragrunt [
show | plan | run-all
|apply
|output
|destroy | terragrunt-info | render-json | graph-dependencies | fmt | hclfmt | validate |aws-provider-patch
], Terragrunt: inputs:,terragrunt --help, terragrunt.hcl
,tfswitch
, Blocks,generate
Advertising: