Files
dsk-iac/terraform/iam/policies/modules/kms.tf
2024-01-31 14:03:17 +09:00

20 lines
445 B
HCL

resource "aws_iam_policy" "kms_policy" {
name = "DSK_KeyManagementService"
path = "/"
policy = jsonencode({
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"kms:Decrypt",
"kms:GenerateDataKey"
],
"Resource": [
"arn:aws:kms:ap-northeast-2:508259851457:key/a48b1e88-a9bb-4d86-a481-ef54e2f40452"
]
}
]
})
}