Difference between revisions of "Terragrunt block: remote state"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 25: | Line 25: | ||
* <code>[[Error: Unable to find remote state]]</code> | * <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>[[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 | + | * <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]] | * [[WARN 0000 - Bucket Enforced TLS]] | ||
Line 31: | Line 31: | ||
* <code>[[terraform init -migrate-state]]</code> | * <code>[[terraform init -migrate-state]]</code> | ||
* [[generate]] | * [[generate]] | ||
+ | * [[Terraform data block]] | ||
== See also == | == See also == |
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: