You must be logged in to view saved presets
Defines a resource policy for an AWS Network Firewall Firewall Policy to manage permissions for operations like creating and updating firewalls.
resource "aws_networkfirewall_resource_policy" "example" {
policy = jsonencode({
Statement = [{
Action = [
"network-firewall:ListFirewallPolicies",
"network-firewall:CreateFirewall",
"network-firewall:UpdateFirewall",
"network-firewall:AssociateFirewallPolicy"
]
Effect = "Allow"
Resource = aws_networkfirewall_firewall_policy.example.arn
Principal = {
AWS = "arn:aws:iam::123456789012:root"
}
}]
Version = "2012-10-17"
})
resource_arn = "aws_networkfirewall_firewall_policy.example.arn"
}