Difference between revisions of "Terraform resource: aws kms key"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
* <code>[[key_id]]</code> | * <code>[[key_id]]</code> | ||
* <code>[[policy]]</code> (optional) https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key#policy | * <code>[[policy]]</code> (optional) https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key#policy | ||
+ | |||
+ | == Errors == | ||
+ | * <code>[[Error: MalformedPolicyDocumentException: Policy contains a statement with one or more invalid principals.]]</code> | ||
+ | * <code>[[Error: "kms_key_id" (arn:::aws) is an invalid ARN: arn: not enough sections]]</code> | ||
+ | |||
== Related == | == Related == | ||
− | |||
* <code>[[aws_kms_alias]]</code> | * <code>[[aws_kms_alias]]</code> | ||
− | |||
* [[Terraform EKS module]] | * [[Terraform EKS module]] | ||
* [[execute_command_configuration]] | * [[execute_command_configuration]] |
Revision as of 19:39, 28 May 2023
aws_kms_key
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key
deletion_window_in_days
: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key#deletion_window_in_days safety measure to delay key deletion, this waiting can be defined between 7 and 30 days
Contents
Official example
resource "aws_kms_key" "a" { description = "KMS key 1" deletion_window_in_days = 10 }
key_id
policy
(optional) https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kms_key#policy
Errors
Error: MalformedPolicyDocumentException: Policy contains a statement with one or more invalid principals.
Error: "kms_key_id" (arn:::aws) is an invalid ARN: arn: not enough sections
Related
See also
Advertising: