@@ -10,6 +10,14 @@ module "kms_key" {
1010 standard_key_type = var.standard_key_type
1111 force_delete = var.force_delete
1212 network_access_allowed = var.network_access_allowed
13+ policies = {
14+ rotation = {
15+ interval_month = 1
16+ }
17+ dual_auth_delete = {
18+ enabled = false
19+ }
20+ }
1321}
1422
1523```
@@ -28,6 +36,25 @@ module "kms_key" {
2836| encrypted_nonce | Encrypted Nonce. Only for imported root key. | ` string ` | n/a | no |
2937| iv_value | IV Value. Only for imported root key. | ` string ` | n/a | no |
3038| expiration_date | Expination Date. | ` string ` | n/a | no |
39+ | policies | Set policies for a key. | ` list(map) ` | n/a | no |
40+
41+ ## policies Inputs
42+
43+ | Name | Description | Type | Default | Required |
44+ | --------------------------| -------------------------------------------------------| :-------| :--------| :--------|
45+ | rotation | Specifies the key rotation time interval in months | ` map(string) ` | n/a| Atleast one of rotation/dual_auth_delete|
46+ | dual_auth_delete | Data associated with the dual authorization delete policy.| ` map(string) ` | n/a | Atleast one of rotation/dual_auth_delete|
47+
48+ ## rotation Inputs
49+
50+ | Name | Description | Type | Default | Required |
51+ | --------------------------| ----------------------------------------------------------------| :-------| :--------| :--------|
52+ | interval_month | Specifies the key rotation time interval in months | ` int ` | n/a | yes |
53+ ## dual_auth_delete Inputs
54+
55+ | Name | Description | Type | Default | Required |
56+ | --------------------------| ----------------------------------------------------------------| :-------| :--------| :--------|
57+ | enabled | If set to true, Key Protect enables a dual authorization policy on a single key. | ` bool ` | n/a | yes |
3158
3259Note:
3360* If the following attributes [ ` standard_key_type ` , ` force_delete ` ,` network_access_allowed ` ] are set to null then default values will be taken..
3966
4067<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
4168
69+ ## NOTE: If we want to make use of a particular version of module, then set the argument "version" to respective module version.
4270## Usage
4371
4472To run this example you need to execute:
0 commit comments