You must be logged in to view saved presets
Sets up a resource policy for an AWS Network Firewall Rule Group to handle permissions for operations like creating and updating firewall policies.
resource "aws_networkfirewall_resource_policy" "example" {
policy = jsonencode({
Statement = [{
Action = [
"network-firewall:ListRuleGroups",
"network-firewall:CreateFirewallPolicy",
"network-firewall:UpdateFirewallPolicy"
]
Effect = "Allow"
Resource = aws_networkfirewall_rule_group.example.arn
Principal = {
AWS = "arn:aws:iam::123456789012:root"
}
}]
Version = "2012-10-17"
})
resource_arn = "aws_networkfirewall_rule_group.example.arn"
}