I am unable to tear down or reinstall the solution in AWS

Please provide the following information when creating a topic:

  • Hardware Platform (GPU model and numbers): AWS
  • System Memory
  • Ubuntu Version
  • NVIDIA GPU Driver Version (valid for GPU only)
  • Issue Type( questions, new requirements, bugs): unable to tear down or reinstall the solution in aws platform. I choose g4e.48xlarge
  • How to reproduce the issue ? (This is for bugs. Including the command line used and other details for reproducing) I got error with the ./envbuild.sh uninstall -f config.yml -c all
  • Requirement details (This is for new requirement. Including the logs for the pods, the description for the pods):
ubuntu@ip-172-31-20-96:~/vss/dist$ ./envbuild.sh uninstall -f config.yml -c all 
preparing artifacts
extracting inventory
cannot extract inventory when there are IaC changes
destroying TF shape
CTRL-C to abort
Acquiring state lock. This may take a few moments...
╷
│ Error: Error acquiring the state lock
│ 
│ Error message: ConditionalCheckFailedException: The conditional request failed
│ Lock Info:
│   ID:        c989f88c-fd2f-443d-435a-de0920513550
│   Path:      vss-s3-us2/via-aws-cns-vss-deployment/terraform.tfstate
│   Operation: OperationTypeApply
│   Who:       ubuntu@ip-172-31-20-96
│   Version:   1.5.7
│   Created:   2025-03-10 06:34:34.064354564 +0000 UTC
│   Info:      
│ 
│ 
│ Terraform acquires a state lock to protect the state from being written
│ by multiple users at the same time. Please resolve the issue above and try
│ again. For most commands, you can disable locking with the "-lock=false"
│ flag, but this is not recommended.

We will analyze this problem as soon as possible.

I got it resolved by deleting all the resources manually, including:

  1. EC2 instance
  2. DynamoDB
  3. S3
  4. VPC
  5. Elastic IPs
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.