I'm working on dynamodb , Tried to do an import of all my tables.
terraforming ddb --tfstate > terraform.tfstate
terraform plan ( showed zero changes)
and then did terraform state push terraform.tfstate (i had a backend file s3 bucket configured)
When I ran terraform init, terraform plan command says its deleting all the resources .
provider "aws" {
region = "us-east-1"
version = "~> 2.22"
}
terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
aws_dynamodb_table.dev-vault: Refreshing state... (ID: dev-vault)
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
- destroy
Terraform will perform the following actions:
- aws_dynamodb_table.dev-vault
can someone please help me with this? is it a issue or i'm doing it wrongly?
I'm working on dynamodb , Tried to do an import of all my tables.
terraforming ddb --tfstate > terraform.tfstate terraform plan ( showed zero changes) and then did terraform state push terraform.tfstate (i had a backend file s3 bucket configured) When I ran terraform init, terraform plan command says its deleting all the resources .
my backend.tf
provider.tf
terraform plan
can someone please help me with this? is it a issue or i'm doing it wrongly?