Difference between revisions of "Terragrunt block: remote state"
Jump to navigation
Jump to search
(18 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#remote_state | + | <code>[[remote_state]]</code> https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#remote_state |
+ | [[encrypt =]] | ||
[[inputs]] | [[inputs]] | ||
+ | |||
+ | [[terraform]] { | ||
+ | |||
+ | } | ||
+ | |||
+ | |||
+ | == Example == | ||
+ | remote_state { | ||
+ | backend = "s3" | ||
+ | config = { | ||
+ | bucket = "mybucket" | ||
+ | key = "path/to/my/key" | ||
+ | region = "us-east-1" | ||
+ | } | ||
+ | } | ||
+ | |||
+ | == Errors == | ||
+ | * <code>[[Error: Unable to find remote state]]</code> | ||
+ | * <code>[[WARN]][0002] - The remote state S3 bucket your-bucket-name [[needs to be updated]]</code> | ||
+ | * <code>[[Remote state S3 bucket]] [[yourbucketname]] [[is out of date]]. [[Would you like Terragrunt to update it?]] (y/n)</code> | ||
+ | * [[WARN 0000 - Bucket Enforced TLS]] | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[terraform init -migrate-state]]</code> | ||
+ | * [[generate]] | ||
+ | * [[Terraform data block]] | ||
== See also == | == See also == | ||
+ | * {{terragrunt.hcl}} | ||
* {{Terragrunt}} | * {{Terragrunt}} | ||
[[Category:Terragrunt]] | [[Category:Terragrunt]] |
Latest revision as of 15:10, 21 December 2023
remote_state
https://terragrunt.gruntwork.io/docs/reference/config-blocks-and-attributes/#remote_state
encrypt =
inputs
terraform { }
Contents
Example[edit]
remote_state { backend = "s3" config = { bucket = "mybucket" key = "path/to/my/key" region = "us-east-1" } }
Errors[edit]
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[edit]
See also[edit]
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: