mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-18 01:27:55 +01:00
feat: Deny HTTP on Karpenter SQS policy (#3080)
This commit is contained in:
@@ -464,6 +464,27 @@ data "aws_iam_policy_document" "queue" {
|
||||
]
|
||||
}
|
||||
}
|
||||
statement {
|
||||
sid = "DenyHTTP"
|
||||
effect = "Deny"
|
||||
actions = [
|
||||
"sqs:*"
|
||||
]
|
||||
resources = [aws_sqs_queue.this[0].arn]
|
||||
condition {
|
||||
test = "StringEquals"
|
||||
variable = "aws:SecureTransport"
|
||||
values = [
|
||||
"false"
|
||||
]
|
||||
}
|
||||
principals {
|
||||
type = "*"
|
||||
identifiers = [
|
||||
"*"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_sqs_queue_policy" "this" {
|
||||
|
||||
Reference in New Issue
Block a user