Difference between revisions of "Terragrunt block: remote state"

From wikieduonline
Jump to navigation Jump to search
 
(19 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]]
 +
 +
[[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

Advertising: