Difference between revisions of "Terragrunt block: remote state"
Jump to navigation
Jump to search
(14 intermediate revisions by 2 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 =]] | ||
Line 7: | Line 8: | ||
[[terraform]] { | [[terraform]] { | ||
+ | |||
+ | } | ||
+ | |||
− | } | + | == Example == |
+ | remote_state { | ||
+ | backend = "s3" | ||
+ | config = { | ||
+ | bucket = "mybucket" | ||
+ | key = "path/to/my/key" | ||
+ | region = "us-east-1" | ||
+ | } | ||
+ | } | ||
== Errors == | == Errors == | ||
* <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>[[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 == |
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: