Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

aws_kms_key: "key_usage" must be ENCRYPT_DECRYPT or not specified #373

Closed
koooge opened this issue Oct 5, 2017 · 3 comments
Closed

aws_kms_key: "key_usage" must be ENCRYPT_DECRYPT or not specified #373

koooge opened this issue Oct 5, 2017 · 3 comments

Comments

@koooge
Copy link

koooge commented Oct 5, 2017

Hello. :)
terraforming kmsk generated below setting.
But terraform plan with the .tf file shows aws_kms_key: "key_usage" must be ENCRYPT_DECRYPT or not specified error.
Is this intended?

resource "aws_kms_key" "<id>" {
    description             = ""
    key_usage               = "ENCRYPT/DECRYPT"
    is_enabled              = true
    enable_key_rotation     = false

    policy = <<POLICY
...
@dtan4
Copy link
Owner

dtan4 commented Oct 22, 2017

This is a bug appearently, thanks! I'll fix.

@dtan4
Copy link
Owner

dtan4 commented Oct 22, 2017

Fixed at #380 .

@dtan4
Copy link
Owner

dtan4 commented Oct 22, 2017

I sent a document patch to terraform-provider-aws, related to this.
hashicorp/terraform-provider-aws#2006

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants