Issue with the terraform lab - Commands

Hello, I am doing my lab for terraform commands section. I am on question 5 where I need to validate and correct the main.tf file, however after correcting still I am unable to do terraform apply. I get the error as below, I am also attaching screenshot for the question 5 which shows the main.tf content, please advise if this is known issue.

Error: Provider produced inconsistent final plan

When expanding the plan for tls_cert_request.csr to include new values learned
so far during apply, provider “registry.terraform.io/hashicorp/tls” produced
an invalid new value for .private_key_pem: inconsistent values for sensitive
attribute.

This is a bug in the provider, which should be reported in the provider’s own
issue tracker.

Hello, @Sal
In the question already described, do not change the resource “private key” block and you have changed that “RSA” to “ECDSA” that’s why validation is not passed.
You have to make small changes in the resource “tls_cert_request” block, key_algorithm to “RSA” instead of “ECDSA”. Hope it clears your doubt. Please try again.