AWS KMS provider not working

Aha @pradeeprajbhar, I think I understand your issue now!

In your main.tf snippet, you defined the version thus:

version = "~> 3.52"

Per the specification (Version Constraints - Configuration Language | Terraform | HashiCorp Developer):

  • ~> : Allows only the rightmost version component to increment. For example, to allow new patch releases within a specific minor release, use the full version number: ~> 1.0.4 will allow installation of 1.0.5 and 1.0.10 but not 1.1.0 . This is usually called the pessimistic constraint operator.

Since your rightmost version number there is the minor, it will still try to resolve to a higher version nonetheless.

In our case, we simple pinned the version without constraint operations:

version = "3.52"

Try planning/applying to see if these changes can help ya. Good luck!