bitter-planet-74915
10/17/2023, 8:38 AMterraform init previously.
terraform destroy produces me something like
denis@denis-TM1703:~/PycharmProjects/terraform-aws-metaflow$ terraform destroy
╷
│ Error: Module not installed
│
│ on <http://locals.tf|locals.tf> line 1:
│ 1: module "metaflow-common" {
│
│ This module is not yet installed. Run "terraform init" to install all modules
│ required by this configuration.
╵
╷
│ Error: Module not installed
│
│ on <http://main.tf|main.tf> line 1:
│ 1: module "metaflow-datastore" {
│
│ This module is not yet installed. Run "terraform init" to install all modules
Is it possible to delete everything manually in aws? Like force deleting.
I tried my best, but I got in VPC and EC2 that "delete is not allowed".
Thank you so much.bulky-fireman-68939
10/17/2023, 10:51 AMterraform init produce an error?
I'd expect terraform init followed by terraform destroy to do what you want.bitter-planet-74915
10/17/2023, 11:38 AMInterrupt received.
Please wait for Terraform to exit or data loss may occur.
Gracefully shutting down...
╷
│ Error: No value for required variable
│
│ on variables.tf line 123:
│ 123: variable "tags" {
│
│ The root module input variable "tags" is not set, and has no default value. Use a -var or -var-file command line argument to provide a value for this variable.
╵
╷
│ Error: No value for required variable
│
│ on variables.tf line 146:
│ 146: variable "vpc_cidr_blocks" {
│
│ The root module input variable "vpc_cidr_blocks" is not set, and has no default value. Use a -var or -var-file command line argument to provide a value for this variable.
╵
╷
│ Error: No value for required variable
│
│ on variables.tf line 151:
│ 151: variable "vpc_id" {
│
│ The root module input variable "vpc_id" is not set, and has no default value. Use a -var or -var-file command line argument to provide a value for this variable.
╵
╷
│ Error: No value for required variable
│
│ on variables.tf line 180:
│ 180: variable "with_public_ip" {
│
│ The root module input variable "with_public_ip" is not set, and has no default value. Use a -var or -var-file command line argument to provide a value for this variable.bitter-planet-74915
10/17/2023, 11:39 AM-var -var-filebulky-fireman-68939
10/17/2023, 12:05 PM.tfvars file with all the required variables values and pass the path to the file with `-var-file`(or you'd pass the values individually with -var). You need to pass those variables when deploying and also when destroying (the terraform command you run is the same, just change apply to destroy).
https://developer.hashicorp.com/terraform/language/values/variables
https://developer.hashicorp.com/terraform/cli/v1.5.x/commands/apply#apply-options
https://developer.hashicorp.com/terraform/cli/v1.5.x/commands/destroybitter-planet-74915
10/17/2023, 1:14 PMbitter-planet-74915
10/17/2023, 4:18 PMaws eks update-kubeconfig --name <cluster name> configure , and I tried to reinit everything. Maybe afterwards I broke something.
Now I don't have .tfvarsaverage-beach-28850
10/17/2023, 5:46 PM