Error during the upgrade to terraform-0.12

I’m trying to move to terraform-0.12 but getting an error while running commands which work with the state:
e.g.

terraform plan
terraform state list

Error:

Error refreshing state: 2 problems:

- Attribute name required: Dot must be followed by attribute name.
- Attribute name required: Dot must be followed by attribute name.

Versions:
Terraform version: 0.12.4
provider aws version 2.19

Even with TRACE logging level, it’s hard to understand the root problem.

Validation:

terraform validate
Success! The configuration is valid.

Does this help to find out what the issue could be?

Would it be possible to share the .tf files with the sensitive information removed ?!?

But looks like it’s the problem with state, not with .tf files.
I think tf-0.12 can’t work with the state.
And the mentioned article doesn’t help.

The problem was in resource name.
I’ve renamed all resources with name which starts with digit. But section depends_on had old name.

"depends_on": [
     "aws_iam_user.42_dns"
]

will share this information here https://github.com/hashicorp/terraform/issues/21435