How can I rename the .tfstate while its holding resources? Example as shown below.
terraform {
backend "s3" {
bucket = "px-terraform-state"
region = "ap-southeast-1"
key = "network/transaction-logs.tfstate"
encrypt = true
dynamodb_table = "px-terraform-state"
}
}
to
terraform {
backend "s3" {
bucket = "px-terraform-state"
region = "ap-southeast-1"
key = "network/sftp-logs.tfstate"
encrypt = true
dynamodb_table = "px-terraform-state"
}
}