You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by lh...@apache.org on 2025/04/14 07:18:55 UTC

(pulsar-site) branch main updated: Add command to navigate terraform-inventory format error bug (#1000)

This is an automated email from the ASF dual-hosted git repository.

lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 3a14c2470a0 Add command to navigate terraform-inventory format error bug (#1000)
3a14c2470a0 is described below

commit 3a14c2470a033d55d625529b338ec2e216e19f05
Author: Jeremy <42...@users.noreply.github.com>
AuthorDate: Mon Apr 14 14:18:50 2025 +0700

    Add command to navigate terraform-inventory format error bug (#1000)
    
    * Add command to navigate terraform-inventory format error bug
    
    * Apply changes to docs directory too
    
    * Apply changes to 3.0.x docs
    
    ---------
    
    Co-authored-by: Lari Hotari <lh...@users.noreply.github.com>
---
 docs/deploy-aws.md                         | 10 ++++++++++
 versioned_docs/version-3.0.x/deploy-aws.md | 10 ++++++++++
 versioned_docs/version-4.0.x/deploy-aws.md | 10 ++++++++++
 3 files changed, 30 insertions(+)

diff --git a/docs/deploy-aws.md b/docs/deploy-aws.md
index a0767576148..30d9dfa395a 100644
--- a/docs/deploy-aws.md
+++ b/docs/deploy-aws.md
@@ -173,6 +173,16 @@ ansible-playbook \
 setup-disk.yaml
 ```
 
+When using Terraform version >= 0.12, and `terraform-inventory` throws an error: "Error reading tfstate file", add `TF_STATE=./` before the `ansible-playbook` command.
+
+```bash
+TF_STATE=./ \
+ansible-playbook \
+--user='ec2-user' \
+--inventory=`which terraform-inventory` \
+setup-disk.yaml
+```
+
 After that, the disks are mounted under `/mnt/journal` as journal disk, and `/mnt/storage` as ledger disk.
 Remember to enter this command just only once. If you attempt to enter this command again after you have run the Pulsar playbook, your disks might potentially be erased again, causing the bookies to fail to start up.
 
diff --git a/versioned_docs/version-3.0.x/deploy-aws.md b/versioned_docs/version-3.0.x/deploy-aws.md
index 0994114269a..25569159641 100644
--- a/versioned_docs/version-3.0.x/deploy-aws.md
+++ b/versioned_docs/version-3.0.x/deploy-aws.md
@@ -170,6 +170,16 @@ ansible-playbook \
 setup-disk.yaml
 ```
 
+When using Terraform version >= 0.12, and `terraform-inventory` throws an error: "Error reading tfstate file", add `TF_STATE=./` before the `ansible-playbook` command.
+
+```bash
+TF_STATE=./ \
+ansible-playbook \
+--user='ec2-user' \
+--inventory=`which terraform-inventory` \
+setup-disk.yaml
+```
+
 After that, the disks are mounted under `/mnt/journal` as journal disk, and `/mnt/storage` as ledger disk.
 Remember to enter this command just only once. If you attempt to enter this command again after you have run the Pulsar playbook, your disks might potentially be erased again, causing the bookies to fail to start up.
 
diff --git a/versioned_docs/version-4.0.x/deploy-aws.md b/versioned_docs/version-4.0.x/deploy-aws.md
index a0767576148..30d9dfa395a 100644
--- a/versioned_docs/version-4.0.x/deploy-aws.md
+++ b/versioned_docs/version-4.0.x/deploy-aws.md
@@ -173,6 +173,16 @@ ansible-playbook \
 setup-disk.yaml
 ```
 
+When using Terraform version >= 0.12, and `terraform-inventory` throws an error: "Error reading tfstate file", add `TF_STATE=./` before the `ansible-playbook` command.
+
+```bash
+TF_STATE=./ \
+ansible-playbook \
+--user='ec2-user' \
+--inventory=`which terraform-inventory` \
+setup-disk.yaml
+```
+
 After that, the disks are mounted under `/mnt/journal` as journal disk, and `/mnt/storage` as ledger disk.
 Remember to enter this command just only once. If you attempt to enter this command again after you have run the Pulsar playbook, your disks might potentially be erased again, causing the bookies to fail to start up.