Difference between revisions of ".terraform/terraform.tfstate"
Jump to navigation
Jump to search
(13 intermediate revisions by 5 users not shown) | |||
Line 3: | Line 3: | ||
<code>terraform.tfstate</code> | <code>terraform.tfstate</code> | ||
+ | |||
+ | * <code>cat [[.terraform/terraform.tfstate]] | [[jq -c]] '.backend.config.bucket' | [[tr -d]] '"' | [[grep -c]] "$(echo $AWS_ENV)"</code> | ||
== Related terms == | == Related terms == | ||
− | * <code>[[.tf]]</code>, [[.terraform.lock.hcl]] | + | * <code>[[.tf]]</code>, <code>[[.terraform.lock.hcl]]</code> |
− | * [[Terraform state files]] | + | * [[Terraform state files]]: <code>[[terraform.tfstate]]</code> |
* [[Remote state backends to manage Terraform state]]: <code>[[backend]]</code> | * [[Remote state backends to manage Terraform state]]: <code>[[backend]]</code> | ||
* <code>[[terraform show]]</code>, <code>[[terraform plan]]</code> | * <code>[[terraform show]]</code>, <code>[[terraform plan]]</code> | ||
− | |||
* [[Terraform data source]]: <code>[[Terraform data source: terraform remote state|terraform remote state]]</code> | * [[Terraform data source]]: <code>[[Terraform data source: terraform remote state|terraform remote state]]</code> | ||
+ | * [[Terraform S3 backend]] | ||
+ | |||
+ | == Activities == | ||
+ | * [[By default, where does Terraform CLI store its state?]] | ||
== See also == | == See also == | ||
+ | * {{terraform state}} | ||
* {{tf files}} | * {{tf files}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 11:06, 29 August 2024
https://www.terraform.io/docs/language/state/index.html
terraform.tfstate
cat .terraform/terraform.tfstate | jq -c '.backend.config.bucket' | tr -d '"' | grep -c "$(echo $AWS_ENV)"
Related terms[edit]
.tf
,.terraform.lock.hcl
- Terraform state files:
terraform.tfstate
- Remote state backends to manage Terraform state:
backend
terraform show
,terraform plan
- Terraform data source:
terraform remote state
- Terraform S3 backend
Activities[edit]
See also[edit]
- Terraform state:
terraform [ state | replace-provider | mv ]
,backend.tf
, Remote state backends to manage Terraform state, State locking,terraform force-unlock
- Terraform configuration files, Terraform state files:
.tf
,.tfvars
,main.tf, outputs.tf
,variables.tf
,.terraform.d/
,terraform init
,providers.tf
,.terraform/
,terraform.tfstate
,.terraform.lock.hcl
,terraform.tfstate.d, override.tf, versions.tf
Advertising: