Skip to content

Commit 851257b

Browse files
committed
fix: match upstream Datadog serverless functions and allow kms:Decrypt by default
1 parent 06fe10e commit 851257b

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

examples/complete/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Note that this example may create resources which will incur monetary charges on
3030

3131
| Name | Version |
3232
|------|---------|
33-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 3.51.0 |
34-
| <a name="provider_random"></a> [random](#provider\_random) | 3.1.0 |
33+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.0 |
34+
| <a name="provider_random"></a> [random](#provider\_random) | n/a |
3535

3636
## Modules
3737

modules/log_forwarder/policy.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"Resource": "*",
1515
"Sid": "AnyResourceAccess"
1616
},
17+
{
18+
"Action": "kms:Decrypt",
19+
"Effect": "Allow",
20+
"Resource": "*",
21+
"Sid": "KmsDecrypt"
22+
},
1723
{
1824
"Action": [
1925
"s3:GetObject",

modules/rds_enhanced_monitoring_forwarder/policy.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
"Effect": "Allow",
1313
"Resource": "*",
1414
"Sid": "WriteLogs"
15+
},
16+
{
17+
"Action": "kms:Decrypt",
18+
"Effect": "Allow",
19+
"Resource": "*",
20+
"Sid": "KmsDecrypt"
1521
}%{ if dd_api_key_secret_arn != "" },
1622
{
1723
"Action": "secretsmanager:GetSecretValue",

modules/vpc_flow_log_forwarder/policy.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
"Effect": "Allow",
1919
"Resource": ${s3_log_bucket_arns},
2020
"Sid": "ReadS3Logs"
21-
}%{ endif }%{ if kms_arn != "" },
21+
}%{ endif },
2222
{
2323
"Action": "kms:Decrypt",
2424
"Effect": "Allow",
25-
"Resource": "${kms_arn}",
26-
"Sid": "DecryptKeys"
27-
}%{ endif }
25+
"Resource": "*",
26+
"Sid": "KmsDecrypt"
27+
}
2828
]
2929
}

0 commit comments

Comments
 (0)