cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

"Aws Invalid Kms Key State" when trying to start new cluster on AWS

xx123
New Contributor III

Hey,

We just established new environment based on AWS. Our first step was to create Cluster but while doing so, we have encountered an error. We tried different policies, configurations and instance types. All resulted in:

Aws Invalid Kms Key State:
The VM was terminated due to invalid KMS key. [details] Client.InvalidKMSKey.InvalidState: Client.InvalidKMSKey.InvalidState: The KMS key provided is in an incorrect state(OnDemand)

Any clues how to fix it? What part of config I did messed up? 🙂

1 ACCEPTED SOLUTION

Accepted Solutions

xx123
New Contributor III

Yes, I followed this document and that fixed it. Thanks.

View solution in original post

2 REPLIES 2

SP_6721
Contributor III

Hi @xx123 ,

The error indicates that the AWS KMS key used for encryption is either misconfigured or missing required permissions.

  • Make sure the KMS key is enabled
  • Verify that the KMS key and your Databricks workspace are in the same AWS region
  • Update the key policy to include your Databricks cross-account IAM role with the following permissions:
    kms:CreateGrant, kms:Decrypt, kms:GenerateDataKey*, kms:DescribeKey
  • Ensure the IAM role ARN is properly included in the key policy

xx123
New Contributor III

Yes, I followed this document and that fixed it. Thanks.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now